@blackcode_sa/metaestetics-api 1.12.42 → 1.12.43
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 +93 -0
- package/dist/backoffice/index.d.ts +93 -0
- package/dist/backoffice/index.js +500 -0
- package/dist/backoffice/index.mjs +514 -13
- package/dist/index.d.mts +81 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.js +441 -0
- package/dist/index.mjs +441 -0
- package/package.json +1 -1
- package/src/backoffice/services/brand.service.ts +86 -0
- package/src/backoffice/services/category.service.ts +84 -0
- package/src/backoffice/services/constants.service.ts +77 -0
- package/src/backoffice/services/product.service.ts +100 -0
- package/src/backoffice/services/requirement.service.ts +76 -0
- package/src/backoffice/services/subcategory.service.ts +87 -0
- package/src/backoffice/services/technology.service.ts +120 -0
|
@@ -98,6 +98,18 @@ declare class BrandService extends BaseService {
|
|
|
98
98
|
* Gets a brand by ID
|
|
99
99
|
*/
|
|
100
100
|
getById(brandId: string): Promise<Brand | null>;
|
|
101
|
+
/**
|
|
102
|
+
* Exports brands to CSV string, suitable for Excel/Sheets.
|
|
103
|
+
* Includes headers and optional UTF-8 BOM.
|
|
104
|
+
* By default exports only active brands (set includeInactive to true to export all).
|
|
105
|
+
*/
|
|
106
|
+
exportToCsv(options?: {
|
|
107
|
+
includeInactive?: boolean;
|
|
108
|
+
includeBom?: boolean;
|
|
109
|
+
}): Promise<string>;
|
|
110
|
+
private brandToCsvRow;
|
|
111
|
+
private formatDateIso;
|
|
112
|
+
private formatCsvValue;
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
/**
|
|
@@ -277,6 +289,18 @@ declare class CategoryService extends BaseService implements ICategoryService {
|
|
|
277
289
|
* @returns Kategorija ili null ako ne postoji
|
|
278
290
|
*/
|
|
279
291
|
getById(id: string): Promise<Category | null>;
|
|
292
|
+
/**
|
|
293
|
+
* Exports categories to CSV string, suitable for Excel/Sheets.
|
|
294
|
+
* Includes headers and optional UTF-8 BOM.
|
|
295
|
+
* By default exports only active categories (set includeInactive to true to export all).
|
|
296
|
+
*/
|
|
297
|
+
exportToCsv(options?: {
|
|
298
|
+
includeInactive?: boolean;
|
|
299
|
+
includeBom?: boolean;
|
|
300
|
+
}): Promise<string>;
|
|
301
|
+
private categoryToCsvRow;
|
|
302
|
+
private formatDateIso;
|
|
303
|
+
private formatCsvValue;
|
|
280
304
|
}
|
|
281
305
|
|
|
282
306
|
/**
|
|
@@ -1660,6 +1684,18 @@ declare class ProductService extends BaseService implements IProductService {
|
|
|
1660
1684
|
* Gets all products for a brand (from top-level collection)
|
|
1661
1685
|
*/
|
|
1662
1686
|
getByBrand(brandId: string): Promise<Product[]>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Exports products to CSV string, suitable for Excel/Sheets.
|
|
1689
|
+
* Includes headers and optional UTF-8 BOM.
|
|
1690
|
+
* By default exports only active products (set includeInactive to true to export all).
|
|
1691
|
+
*/
|
|
1692
|
+
exportToCsv(options?: {
|
|
1693
|
+
includeInactive?: boolean;
|
|
1694
|
+
includeBom?: boolean;
|
|
1695
|
+
}): Promise<string>;
|
|
1696
|
+
private productToCsvRow;
|
|
1697
|
+
private formatDateIso;
|
|
1698
|
+
private formatCsvValue;
|
|
1663
1699
|
}
|
|
1664
1700
|
|
|
1665
1701
|
/**
|
|
@@ -1740,6 +1776,18 @@ declare class RequirementService extends BaseService {
|
|
|
1740
1776
|
* @returns Zahtev ili null ako ne postoji
|
|
1741
1777
|
*/
|
|
1742
1778
|
getById(id: string): Promise<Requirement | null>;
|
|
1779
|
+
/**
|
|
1780
|
+
* Exports requirements to CSV string, suitable for Excel/Sheets.
|
|
1781
|
+
* Includes headers and optional UTF-8 BOM.
|
|
1782
|
+
* By default exports only active requirements (set includeInactive to true to export all).
|
|
1783
|
+
*/
|
|
1784
|
+
exportToCsv(options?: {
|
|
1785
|
+
includeInactive?: boolean;
|
|
1786
|
+
includeBom?: boolean;
|
|
1787
|
+
}): Promise<string>;
|
|
1788
|
+
private requirementToCsvRow;
|
|
1789
|
+
private formatDateIso;
|
|
1790
|
+
private formatCsvValue;
|
|
1743
1791
|
}
|
|
1744
1792
|
|
|
1745
1793
|
/**
|
|
@@ -1850,6 +1898,18 @@ declare class SubcategoryService extends BaseService {
|
|
|
1850
1898
|
* @returns Podkategorija ili null ako ne postoji
|
|
1851
1899
|
*/
|
|
1852
1900
|
getById(categoryId: string, subcategoryId: string): Promise<Subcategory | null>;
|
|
1901
|
+
/**
|
|
1902
|
+
* Exports subcategories to CSV string, suitable for Excel/Sheets.
|
|
1903
|
+
* Includes headers and optional UTF-8 BOM.
|
|
1904
|
+
* By default exports only active subcategories (set includeInactive to true to export all).
|
|
1905
|
+
*/
|
|
1906
|
+
exportToCsv(options?: {
|
|
1907
|
+
includeInactive?: boolean;
|
|
1908
|
+
includeBom?: boolean;
|
|
1909
|
+
}): Promise<string>;
|
|
1910
|
+
private subcategoryToCsvRow;
|
|
1911
|
+
private formatDateIso;
|
|
1912
|
+
private formatCsvValue;
|
|
1853
1913
|
}
|
|
1854
1914
|
|
|
1855
1915
|
/**
|
|
@@ -2176,6 +2236,22 @@ declare class TechnologyService extends BaseService implements ITechnologyServic
|
|
|
2176
2236
|
* @param updates - Fields to update (categoryId, subcategoryId, technologyName)
|
|
2177
2237
|
*/
|
|
2178
2238
|
private updateProductsInSubcollection;
|
|
2239
|
+
/**
|
|
2240
|
+
* Exports technologies to CSV string, suitable for Excel/Sheets.
|
|
2241
|
+
* Includes headers and optional UTF-8 BOM.
|
|
2242
|
+
* By default exports only active technologies (set includeInactive to true to export all).
|
|
2243
|
+
* Includes product names from subcollections.
|
|
2244
|
+
*/
|
|
2245
|
+
exportToCsv(options?: {
|
|
2246
|
+
includeInactive?: boolean;
|
|
2247
|
+
includeBom?: boolean;
|
|
2248
|
+
}): Promise<string>;
|
|
2249
|
+
/**
|
|
2250
|
+
* Gets product names from the technology's product subcollection
|
|
2251
|
+
*/
|
|
2252
|
+
private getProductNamesForTechnology;
|
|
2253
|
+
private technologyToCsvRow;
|
|
2254
|
+
private formatCsvValue;
|
|
2179
2255
|
}
|
|
2180
2256
|
|
|
2181
2257
|
/**
|
|
@@ -2295,6 +2371,23 @@ declare class ConstantsService extends BaseService {
|
|
|
2295
2371
|
* @returns {Promise<void>}
|
|
2296
2372
|
*/
|
|
2297
2373
|
deleteContraindication(contraindicationId: string): Promise<void>;
|
|
2374
|
+
/**
|
|
2375
|
+
* Exports treatment benefits to CSV string, suitable for Excel/Sheets.
|
|
2376
|
+
* Includes headers and optional UTF-8 BOM.
|
|
2377
|
+
*/
|
|
2378
|
+
exportBenefitsToCsv(options?: {
|
|
2379
|
+
includeBom?: boolean;
|
|
2380
|
+
}): Promise<string>;
|
|
2381
|
+
/**
|
|
2382
|
+
* Exports contraindications to CSV string, suitable for Excel/Sheets.
|
|
2383
|
+
* Includes headers and optional UTF-8 BOM.
|
|
2384
|
+
*/
|
|
2385
|
+
exportContraindicationsToCsv(options?: {
|
|
2386
|
+
includeBom?: boolean;
|
|
2387
|
+
}): Promise<string>;
|
|
2388
|
+
private benefitToCsvRow;
|
|
2389
|
+
private contraindicationToCsvRow;
|
|
2390
|
+
private formatCsvValue;
|
|
2298
2391
|
}
|
|
2299
2392
|
|
|
2300
2393
|
declare const documentElementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -98,6 +98,18 @@ declare class BrandService extends BaseService {
|
|
|
98
98
|
* Gets a brand by ID
|
|
99
99
|
*/
|
|
100
100
|
getById(brandId: string): Promise<Brand | null>;
|
|
101
|
+
/**
|
|
102
|
+
* Exports brands to CSV string, suitable for Excel/Sheets.
|
|
103
|
+
* Includes headers and optional UTF-8 BOM.
|
|
104
|
+
* By default exports only active brands (set includeInactive to true to export all).
|
|
105
|
+
*/
|
|
106
|
+
exportToCsv(options?: {
|
|
107
|
+
includeInactive?: boolean;
|
|
108
|
+
includeBom?: boolean;
|
|
109
|
+
}): Promise<string>;
|
|
110
|
+
private brandToCsvRow;
|
|
111
|
+
private formatDateIso;
|
|
112
|
+
private formatCsvValue;
|
|
101
113
|
}
|
|
102
114
|
|
|
103
115
|
/**
|
|
@@ -277,6 +289,18 @@ declare class CategoryService extends BaseService implements ICategoryService {
|
|
|
277
289
|
* @returns Kategorija ili null ako ne postoji
|
|
278
290
|
*/
|
|
279
291
|
getById(id: string): Promise<Category | null>;
|
|
292
|
+
/**
|
|
293
|
+
* Exports categories to CSV string, suitable for Excel/Sheets.
|
|
294
|
+
* Includes headers and optional UTF-8 BOM.
|
|
295
|
+
* By default exports only active categories (set includeInactive to true to export all).
|
|
296
|
+
*/
|
|
297
|
+
exportToCsv(options?: {
|
|
298
|
+
includeInactive?: boolean;
|
|
299
|
+
includeBom?: boolean;
|
|
300
|
+
}): Promise<string>;
|
|
301
|
+
private categoryToCsvRow;
|
|
302
|
+
private formatDateIso;
|
|
303
|
+
private formatCsvValue;
|
|
280
304
|
}
|
|
281
305
|
|
|
282
306
|
/**
|
|
@@ -1660,6 +1684,18 @@ declare class ProductService extends BaseService implements IProductService {
|
|
|
1660
1684
|
* Gets all products for a brand (from top-level collection)
|
|
1661
1685
|
*/
|
|
1662
1686
|
getByBrand(brandId: string): Promise<Product[]>;
|
|
1687
|
+
/**
|
|
1688
|
+
* Exports products to CSV string, suitable for Excel/Sheets.
|
|
1689
|
+
* Includes headers and optional UTF-8 BOM.
|
|
1690
|
+
* By default exports only active products (set includeInactive to true to export all).
|
|
1691
|
+
*/
|
|
1692
|
+
exportToCsv(options?: {
|
|
1693
|
+
includeInactive?: boolean;
|
|
1694
|
+
includeBom?: boolean;
|
|
1695
|
+
}): Promise<string>;
|
|
1696
|
+
private productToCsvRow;
|
|
1697
|
+
private formatDateIso;
|
|
1698
|
+
private formatCsvValue;
|
|
1663
1699
|
}
|
|
1664
1700
|
|
|
1665
1701
|
/**
|
|
@@ -1740,6 +1776,18 @@ declare class RequirementService extends BaseService {
|
|
|
1740
1776
|
* @returns Zahtev ili null ako ne postoji
|
|
1741
1777
|
*/
|
|
1742
1778
|
getById(id: string): Promise<Requirement | null>;
|
|
1779
|
+
/**
|
|
1780
|
+
* Exports requirements to CSV string, suitable for Excel/Sheets.
|
|
1781
|
+
* Includes headers and optional UTF-8 BOM.
|
|
1782
|
+
* By default exports only active requirements (set includeInactive to true to export all).
|
|
1783
|
+
*/
|
|
1784
|
+
exportToCsv(options?: {
|
|
1785
|
+
includeInactive?: boolean;
|
|
1786
|
+
includeBom?: boolean;
|
|
1787
|
+
}): Promise<string>;
|
|
1788
|
+
private requirementToCsvRow;
|
|
1789
|
+
private formatDateIso;
|
|
1790
|
+
private formatCsvValue;
|
|
1743
1791
|
}
|
|
1744
1792
|
|
|
1745
1793
|
/**
|
|
@@ -1850,6 +1898,18 @@ declare class SubcategoryService extends BaseService {
|
|
|
1850
1898
|
* @returns Podkategorija ili null ako ne postoji
|
|
1851
1899
|
*/
|
|
1852
1900
|
getById(categoryId: string, subcategoryId: string): Promise<Subcategory | null>;
|
|
1901
|
+
/**
|
|
1902
|
+
* Exports subcategories to CSV string, suitable for Excel/Sheets.
|
|
1903
|
+
* Includes headers and optional UTF-8 BOM.
|
|
1904
|
+
* By default exports only active subcategories (set includeInactive to true to export all).
|
|
1905
|
+
*/
|
|
1906
|
+
exportToCsv(options?: {
|
|
1907
|
+
includeInactive?: boolean;
|
|
1908
|
+
includeBom?: boolean;
|
|
1909
|
+
}): Promise<string>;
|
|
1910
|
+
private subcategoryToCsvRow;
|
|
1911
|
+
private formatDateIso;
|
|
1912
|
+
private formatCsvValue;
|
|
1853
1913
|
}
|
|
1854
1914
|
|
|
1855
1915
|
/**
|
|
@@ -2176,6 +2236,22 @@ declare class TechnologyService extends BaseService implements ITechnologyServic
|
|
|
2176
2236
|
* @param updates - Fields to update (categoryId, subcategoryId, technologyName)
|
|
2177
2237
|
*/
|
|
2178
2238
|
private updateProductsInSubcollection;
|
|
2239
|
+
/**
|
|
2240
|
+
* Exports technologies to CSV string, suitable for Excel/Sheets.
|
|
2241
|
+
* Includes headers and optional UTF-8 BOM.
|
|
2242
|
+
* By default exports only active technologies (set includeInactive to true to export all).
|
|
2243
|
+
* Includes product names from subcollections.
|
|
2244
|
+
*/
|
|
2245
|
+
exportToCsv(options?: {
|
|
2246
|
+
includeInactive?: boolean;
|
|
2247
|
+
includeBom?: boolean;
|
|
2248
|
+
}): Promise<string>;
|
|
2249
|
+
/**
|
|
2250
|
+
* Gets product names from the technology's product subcollection
|
|
2251
|
+
*/
|
|
2252
|
+
private getProductNamesForTechnology;
|
|
2253
|
+
private technologyToCsvRow;
|
|
2254
|
+
private formatCsvValue;
|
|
2179
2255
|
}
|
|
2180
2256
|
|
|
2181
2257
|
/**
|
|
@@ -2295,6 +2371,23 @@ declare class ConstantsService extends BaseService {
|
|
|
2295
2371
|
* @returns {Promise<void>}
|
|
2296
2372
|
*/
|
|
2297
2373
|
deleteContraindication(contraindicationId: string): Promise<void>;
|
|
2374
|
+
/**
|
|
2375
|
+
* Exports treatment benefits to CSV string, suitable for Excel/Sheets.
|
|
2376
|
+
* Includes headers and optional UTF-8 BOM.
|
|
2377
|
+
*/
|
|
2378
|
+
exportBenefitsToCsv(options?: {
|
|
2379
|
+
includeBom?: boolean;
|
|
2380
|
+
}): Promise<string>;
|
|
2381
|
+
/**
|
|
2382
|
+
* Exports contraindications to CSV string, suitable for Excel/Sheets.
|
|
2383
|
+
* Includes headers and optional UTF-8 BOM.
|
|
2384
|
+
*/
|
|
2385
|
+
exportContraindicationsToCsv(options?: {
|
|
2386
|
+
includeBom?: boolean;
|
|
2387
|
+
}): Promise<string>;
|
|
2388
|
+
private benefitToCsvRow;
|
|
2389
|
+
private contraindicationToCsvRow;
|
|
2390
|
+
private formatCsvValue;
|
|
2298
2391
|
}
|
|
2299
2392
|
|
|
2300
2393
|
declare const documentElementSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|