hvp-shared 3.5.1 → 3.5.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.
|
@@ -40,6 +40,23 @@ 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>;
|
|
43
60
|
/**
|
|
44
61
|
* SyncStatus - Status of sync with QVET
|
|
45
62
|
*/
|
|
@@ -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.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,27 @@ 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
|
+
};
|
|
54
75
|
/**
|
|
55
76
|
* SyncStatus - Status of sync with QVET
|
|
56
77
|
*/
|
|
@@ -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;
|