hvp-shared 3.5.0 → 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.
- package/dist/constants/catalog-item.constants.d.ts +17 -0
- package/dist/constants/catalog-item.constants.js +22 -1
- package/dist/constants.d.ts +5 -2
- package/dist/constants.js +7 -14
- package/dist/contracts/catalog-item/responses.d.ts +2 -0
- package/dist/types/catalog-item.types.d.ts +3 -0
- package/dist/types.d.ts +5 -5
- package/dist/types.js +8 -17
- package/package.json +1 -1
|
@@ -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
|
*/
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared constants for HVP2021
|
|
3
|
+
* Re-exports from constants/index.ts for backward compatibility.
|
|
4
|
+
*
|
|
5
|
+
* Note: This file exists for module resolution. TypeScript resolves
|
|
6
|
+
* `import from './constants'` to this file instead of constants/index.ts.
|
|
3
7
|
*/
|
|
4
8
|
export declare const APP_NAME = "HVP2021";
|
|
5
9
|
export declare const VERSION = "1.0.0";
|
|
6
10
|
export declare const UMA_2024_DAILY = 108.57;
|
|
7
|
-
export * from './constants/
|
|
8
|
-
export * from './constants/sat-catalogs';
|
|
11
|
+
export * from './constants/index';
|
package/dist/constants.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
3
|
* Shared constants for HVP2021
|
|
4
|
+
* Re-exports from constants/index.ts for backward compatibility.
|
|
5
|
+
*
|
|
6
|
+
* Note: This file exists for module resolution. TypeScript resolves
|
|
7
|
+
* `import from './constants'` to this file instead of constants/index.ts.
|
|
4
8
|
*/
|
|
5
9
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
@@ -18,20 +22,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
22
|
};
|
|
19
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
24
|
exports.UMA_2024_DAILY = exports.VERSION = exports.APP_NAME = void 0;
|
|
21
|
-
//
|
|
22
|
-
// Application Constants
|
|
23
|
-
// ============================================================================
|
|
25
|
+
// Application Constants (kept here for backward compatibility)
|
|
24
26
|
exports.APP_NAME = 'HVP2021';
|
|
25
27
|
exports.VERSION = '1.0.0';
|
|
26
|
-
// ============================================================================
|
|
27
|
-
// Mexican Tax Constants (updated annually)
|
|
28
|
-
// ============================================================================
|
|
29
28
|
exports.UMA_2024_DAILY = 108.57;
|
|
30
|
-
//
|
|
31
|
-
|
|
32
|
-
// ============================================================================
|
|
33
|
-
__exportStar(require("./constants/mexican-states"), exports);
|
|
34
|
-
// ============================================================================
|
|
35
|
-
// SAT Catalogs (CFDI Nómina)
|
|
36
|
-
// ============================================================================
|
|
37
|
-
__exportStar(require("./constants/sat-catalogs"), exports);
|
|
29
|
+
// Re-export everything from constants folder
|
|
30
|
+
__exportStar(require("./constants/index"), exports);
|
|
@@ -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/dist/types.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared types for HVP2021
|
|
3
|
-
*
|
|
3
|
+
* Re-exports from types/index.ts for backward compatibility.
|
|
4
|
+
*
|
|
5
|
+
* Note: This file exists for module resolution. TypeScript resolves
|
|
6
|
+
* `import from './types'` to this file instead of types/index.ts.
|
|
4
7
|
*/
|
|
5
|
-
export * from './types/
|
|
6
|
-
export * from './types/error-codes.types';
|
|
7
|
-
export * from './types/company-settings.types';
|
|
8
|
-
export * from './types/collaborator-fiscal.types';
|
|
8
|
+
export * from './types/index';
|
package/dist/types.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Shared types for HVP2021
|
|
4
|
-
* Used by both backend and frontend for type consistency
|
|
5
|
-
*/
|
|
6
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
3
|
if (k2 === undefined) k2 = k;
|
|
8
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -18,16 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
15
|
};
|
|
20
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
__exportStar(require("./types/
|
|
29
|
-
// ============================================================================
|
|
30
|
-
// Domain Types - Business entities and DTOs
|
|
31
|
-
// ============================================================================
|
|
32
|
-
__exportStar(require("./types/company-settings.types"), exports);
|
|
33
|
-
__exportStar(require("./types/collaborator-fiscal.types"), exports);
|
|
17
|
+
/**
|
|
18
|
+
* Shared types for HVP2021
|
|
19
|
+
* Re-exports from types/index.ts for backward compatibility.
|
|
20
|
+
*
|
|
21
|
+
* Note: This file exists for module resolution. TypeScript resolves
|
|
22
|
+
* `import from './types'` to this file instead of types/index.ts.
|
|
23
|
+
*/
|
|
24
|
+
__exportStar(require("./types/index"), exports);
|