@zauru-sdk/types 6.20.0 → 6.21.0
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/Custom.types.d.ts +46 -0
- package/package.json +2 -2
package/dist/Custom.types.d.ts
CHANGED
|
@@ -30,12 +30,19 @@ export type PriceAdjustmentRule = {
|
|
|
30
30
|
filtros: PriceAdjustmentFilters;
|
|
31
31
|
fechaEliminacion: string;
|
|
32
32
|
};
|
|
33
|
+
export type PriceAdjustmentReversalRule = {
|
|
34
|
+
nombre: string;
|
|
35
|
+
activa: boolean;
|
|
36
|
+
sourceRuleId: number;
|
|
37
|
+
fechaEliminacion: string;
|
|
38
|
+
};
|
|
33
39
|
export type PriceAdjustmentContext = {
|
|
34
40
|
itemId: number;
|
|
35
41
|
tipo?: string;
|
|
36
42
|
providerCategoryId?: number;
|
|
37
43
|
};
|
|
38
44
|
export type PriceAdjustmentStep = {
|
|
45
|
+
ruleId?: number;
|
|
39
46
|
ruleName: string;
|
|
40
47
|
operation: PriceAdjustmentOperation;
|
|
41
48
|
valueType: PriceAdjustmentValueType;
|
|
@@ -50,12 +57,50 @@ export type PriceAdjustmentResult = {
|
|
|
50
57
|
steps: PriceAdjustmentStep[];
|
|
51
58
|
};
|
|
52
59
|
export type CostCalculationMemo = {
|
|
60
|
+
calculationId?: string;
|
|
61
|
+
detailId?: number;
|
|
53
62
|
itemId: number;
|
|
54
63
|
basePrice: number;
|
|
55
64
|
finalPrice: number;
|
|
56
65
|
description: string;
|
|
57
66
|
steps: PriceAdjustmentStep[];
|
|
58
67
|
};
|
|
68
|
+
export type CertificationPenaltyHistoryEntry = {
|
|
69
|
+
id: string;
|
|
70
|
+
calculationId: string;
|
|
71
|
+
detailId: number;
|
|
72
|
+
itemId: number;
|
|
73
|
+
sourceRuleId: number;
|
|
74
|
+
sourceRuleName: string;
|
|
75
|
+
reversalRuleId: number;
|
|
76
|
+
reversalRuleName: string;
|
|
77
|
+
amount: number;
|
|
78
|
+
previousPrice: number;
|
|
79
|
+
finalPrice: number;
|
|
80
|
+
employeeId: number;
|
|
81
|
+
employeeName: string;
|
|
82
|
+
agencyId: number;
|
|
83
|
+
createdAt: string;
|
|
84
|
+
bitacoraId?: number;
|
|
85
|
+
};
|
|
86
|
+
export type PriceAdjustmentReversalMatch = {
|
|
87
|
+
sourceRuleId: number;
|
|
88
|
+
sourceRuleName: string;
|
|
89
|
+
reversalRuleId: number;
|
|
90
|
+
reversalRuleName: string;
|
|
91
|
+
appliedAmount: number;
|
|
92
|
+
};
|
|
93
|
+
export type PriceAdjustmentReversalPlan = {
|
|
94
|
+
status: "eligible" | "ineligible" | "already_applied" | "price_changed";
|
|
95
|
+
reason?: string;
|
|
96
|
+
calculationId?: string;
|
|
97
|
+
detailId?: number;
|
|
98
|
+
itemId: number;
|
|
99
|
+
previousPrice: number;
|
|
100
|
+
finalPrice: number;
|
|
101
|
+
penaltyAmount: number;
|
|
102
|
+
matches: PriceAdjustmentReversalMatch[];
|
|
103
|
+
};
|
|
59
104
|
export type RejectionPercentageAdjustmentRule = {
|
|
60
105
|
nombre: string;
|
|
61
106
|
prioridad: number;
|
|
@@ -942,6 +987,7 @@ export type JsonMemoType = {
|
|
|
942
987
|
rejectionPercentage?: number;
|
|
943
988
|
rejectionLayers?: RejectionPercentageLayers;
|
|
944
989
|
costCalculations?: CostCalculationMemo[];
|
|
990
|
+
certificationPenaltyHistory?: CertificationPenaltyHistoryEntry[];
|
|
945
991
|
rejectionCalculations?: RejectionCalculationMemo;
|
|
946
992
|
};
|
|
947
993
|
export type CloseOpenWorkOrderDetailInput = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.21.0",
|
|
4
4
|
"description": "Estructuras de Zauru, tipado de modelos y modelos personalizados.",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.1.6"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "7d373b9f5c25ab0198e72590c661bc9eb17cf80f"
|
|
26
26
|
}
|