hvp-shared 3.5.1 → 3.5.3

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.
@@ -40,6 +40,71 @@ export declare enum ArticleType {
40
40
  * All ArticleType values as array
41
41
  */
42
42
  export declare const ARTICLE_TYPE_VALUES: ArticleType[];
43
+ /**
44
+ * TariffType - Type of pricing tariff in QVET
45
+ */
46
+ export declare enum TariffType {
47
+ /** Normal sale price */
48
+ ORDINARIA = "ORDINARIA",
49
+ /** Minimum price */
50
+ MINIMA = "MINIMA"
51
+ }
52
+ /**
53
+ * All TariffType values as array
54
+ */
55
+ export declare const TARIFF_TYPE_VALUES: TariffType[];
56
+ /**
57
+ * TariffType labels in Spanish (for UI)
58
+ */
59
+ export declare const TARIFF_TYPE_LABELS: Record<TariffType, string>;
60
+ /**
61
+ * Brand - Product brands in QVET catalog
62
+ *
63
+ * Values from QVET system.
64
+ */
65
+ export declare enum Brand {
66
+ ALBOTT = "ALBOTT",
67
+ ALCON = "ALCON",
68
+ ALPHACEM = "ALPHACEM",
69
+ AMSA = "AMSA",
70
+ ARANDA_PETS = "ARANDA PETS",
71
+ BAYER = "BAYER",
72
+ BIONOTE = "BIONOTE",
73
+ BOEHRINGER_INGELHEIM = "BOEHRINGER INGELHEIM",
74
+ BROVEL = "BROVEL",
75
+ CHINOIN = "CHINOIN",
76
+ DECHRA = "DECHRA",
77
+ DESEGO = "DESEGO",
78
+ DIPROFAQ = "DIPROFAQ",
79
+ FORT_DODGE = "FORT DODGE",
80
+ HALVET = "HALVET",
81
+ HEMPETS = "HEMPETS",
82
+ HISTOVET = "HISTOVET",
83
+ HOLLAND = "HOLLAND",
84
+ HOLLIDAY = "HOLLIDAY",
85
+ HVP = "HOSPITAL VETERINARIO PENINSULAR",
86
+ INNOPHARMA = "INNOPHARMA",
87
+ KIRON = "KIRON",
88
+ LABYES = "LABYES",
89
+ LAPISA = "LAPISA",
90
+ MEDERILAB = "MEDERILAB",
91
+ MSD = "MSD",
92
+ NORVET = "NORVET",
93
+ NUTRACEUTICALS = "NUTRACEUTICALS",
94
+ OTROS = "OTROS",
95
+ PETS_PHARMA = "PETS PHARMA",
96
+ PFIZER = "PFIZER",
97
+ PISA = "PISA",
98
+ SANTGAR = "SANTGAR",
99
+ TORNEL = "TORNEL",
100
+ VETOQUINOL = "VETOQUINOL",
101
+ VIRBAC = "VIRBAC",
102
+ ZOETIS = "ZOETIS"
103
+ }
104
+ /**
105
+ * All Brand values as array (for dropdowns)
106
+ */
107
+ export declare const BRAND_VALUES: Brand[];
43
108
  /**
44
109
  * SyncStatus - Status of sync with QVET
45
110
  */
@@ -5,7 +5,7 @@
5
5
  * Enums and constants for catalog items (products/services from QVET).
6
6
  */
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.SYNC_STATUS_LABELS = exports.SYNC_STATUS_VALUES = exports.SyncStatus = exports.ARTICLE_TYPE_VALUES = exports.ArticleType = exports.USAGE_TYPE_LABELS = exports.USAGE_TYPE_VALUES = exports.UsageType = void 0;
8
+ exports.SYNC_STATUS_LABELS = exports.SYNC_STATUS_VALUES = exports.SyncStatus = exports.BRAND_VALUES = exports.Brand = exports.TARIFF_TYPE_LABELS = exports.TARIFF_TYPE_VALUES = exports.TariffType = exports.ARTICLE_TYPE_VALUES = exports.ArticleType = exports.USAGE_TYPE_LABELS = exports.USAGE_TYPE_VALUES = exports.UsageType = void 0;
9
9
  /**
10
10
  * UsageType - How the item is used in HVP
11
11
  *
@@ -51,6 +51,76 @@ var ArticleType;
51
51
  * All ArticleType values as array
52
52
  */
53
53
  exports.ARTICLE_TYPE_VALUES = Object.values(ArticleType);
54
+ /**
55
+ * TariffType - Type of pricing tariff in QVET
56
+ */
57
+ var TariffType;
58
+ (function (TariffType) {
59
+ /** Normal sale price */
60
+ TariffType["ORDINARIA"] = "ORDINARIA";
61
+ /** Minimum price */
62
+ TariffType["MINIMA"] = "MINIMA";
63
+ })(TariffType || (exports.TariffType = TariffType = {}));
64
+ /**
65
+ * All TariffType values as array
66
+ */
67
+ exports.TARIFF_TYPE_VALUES = Object.values(TariffType);
68
+ /**
69
+ * TariffType labels in Spanish (for UI)
70
+ */
71
+ exports.TARIFF_TYPE_LABELS = {
72
+ [TariffType.ORDINARIA]: 'Tarifa Ordinaria',
73
+ [TariffType.MINIMA]: 'Tarifa Mínima',
74
+ };
75
+ /**
76
+ * Brand - Product brands in QVET catalog
77
+ *
78
+ * Values from QVET system.
79
+ */
80
+ var Brand;
81
+ (function (Brand) {
82
+ Brand["ALBOTT"] = "ALBOTT";
83
+ Brand["ALCON"] = "ALCON";
84
+ Brand["ALPHACEM"] = "ALPHACEM";
85
+ Brand["AMSA"] = "AMSA";
86
+ Brand["ARANDA_PETS"] = "ARANDA PETS";
87
+ Brand["BAYER"] = "BAYER";
88
+ Brand["BIONOTE"] = "BIONOTE";
89
+ Brand["BOEHRINGER_INGELHEIM"] = "BOEHRINGER INGELHEIM";
90
+ Brand["BROVEL"] = "BROVEL";
91
+ Brand["CHINOIN"] = "CHINOIN";
92
+ Brand["DECHRA"] = "DECHRA";
93
+ Brand["DESEGO"] = "DESEGO";
94
+ Brand["DIPROFAQ"] = "DIPROFAQ";
95
+ Brand["FORT_DODGE"] = "FORT DODGE";
96
+ Brand["HALVET"] = "HALVET";
97
+ Brand["HEMPETS"] = "HEMPETS";
98
+ Brand["HISTOVET"] = "HISTOVET";
99
+ Brand["HOLLAND"] = "HOLLAND";
100
+ Brand["HOLLIDAY"] = "HOLLIDAY";
101
+ Brand["HVP"] = "HOSPITAL VETERINARIO PENINSULAR";
102
+ Brand["INNOPHARMA"] = "INNOPHARMA";
103
+ Brand["KIRON"] = "KIRON";
104
+ Brand["LABYES"] = "LABYES";
105
+ Brand["LAPISA"] = "LAPISA";
106
+ Brand["MEDERILAB"] = "MEDERILAB";
107
+ Brand["MSD"] = "MSD";
108
+ Brand["NORVET"] = "NORVET";
109
+ Brand["NUTRACEUTICALS"] = "NUTRACEUTICALS";
110
+ Brand["OTROS"] = "OTROS";
111
+ Brand["PETS_PHARMA"] = "PETS PHARMA";
112
+ Brand["PFIZER"] = "PFIZER";
113
+ Brand["PISA"] = "PISA";
114
+ Brand["SANTGAR"] = "SANTGAR";
115
+ Brand["TORNEL"] = "TORNEL";
116
+ Brand["VETOQUINOL"] = "VETOQUINOL";
117
+ Brand["VIRBAC"] = "VIRBAC";
118
+ Brand["ZOETIS"] = "ZOETIS";
119
+ })(Brand || (exports.Brand = Brand = {}));
120
+ /**
121
+ * All Brand values as array (for dropdowns)
122
+ */
123
+ exports.BRAND_VALUES = Object.values(Brand);
54
124
  /**
55
125
  * SyncStatus - Status of sync with QVET
56
126
  */
@@ -29,6 +29,7 @@ export interface CatalogItemListResponse {
29
29
  section: string;
30
30
  family: string;
31
31
  salePrice: number;
32
+ minimumPrice: number;
32
33
  isActive: boolean;
33
34
  usageType: UsageType;
34
35
  hasPendingChanges: boolean;
@@ -57,6 +58,7 @@ export interface CatalogItemDetailResponse {
57
58
  brand: SyncField<string>;
58
59
  purchasePrice: SyncField<number>;
59
60
  salePrice: SyncField<number>;
61
+ minimumPrice: SyncField<number>;
60
62
  purchaseMargin: SyncField<number>;
61
63
  saleMargin: SyncField<number>;
62
64
  vatSale: SyncField<number>;
@@ -35,6 +35,8 @@ export interface CatalogItemQvetSync {
35
35
  brand: SyncField<string>;
36
36
  purchasePrice: SyncField<number>;
37
37
  salePrice: SyncField<number>;
38
+ /** Minimum price (MINIMA tariff from QVET) */
39
+ minimumPrice: SyncField<number>;
38
40
  purchaseMargin: SyncField<number>;
39
41
  saleMargin: SyncField<number>;
40
42
  vatSale: SyncField<number>;
@@ -97,6 +99,7 @@ export interface CatalogItemListItem {
97
99
  section: string;
98
100
  family: string;
99
101
  salePrice: number;
102
+ minimumPrice: number;
100
103
  isActive: boolean;
101
104
  usageType: UsageType;
102
105
  hasPendingChanges: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "3.5.1",
3
+ "version": "3.5.3",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",