@zauru-sdk/types 6.14.0 → 6.15.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 +34 -0
- package/package.json +2 -2
package/dist/Custom.types.d.ts
CHANGED
|
@@ -56,6 +56,39 @@ export type CostCalculationMemo = {
|
|
|
56
56
|
description: string;
|
|
57
57
|
steps: PriceAdjustmentStep[];
|
|
58
58
|
};
|
|
59
|
+
export type RejectionPercentageAdjustmentRule = {
|
|
60
|
+
nombre: string;
|
|
61
|
+
prioridad: number;
|
|
62
|
+
activa: boolean;
|
|
63
|
+
operacion: PriceAdjustmentOperation;
|
|
64
|
+
valor: number;
|
|
65
|
+
filtros: PriceAdjustmentFilters;
|
|
66
|
+
fechaEliminacion: string;
|
|
67
|
+
};
|
|
68
|
+
export type RejectionPercentageAdjustmentContext = {
|
|
69
|
+
itemIds: number[];
|
|
70
|
+
tipo?: string;
|
|
71
|
+
providerCategoryId?: number;
|
|
72
|
+
};
|
|
73
|
+
export type RejectionPercentageAdjustmentStep = {
|
|
74
|
+
ruleName: string;
|
|
75
|
+
operation: PriceAdjustmentOperation;
|
|
76
|
+
value: number;
|
|
77
|
+
appliedAmount: number;
|
|
78
|
+
runningTotal: number;
|
|
79
|
+
};
|
|
80
|
+
export type RejectionPercentageAdjustmentResult = {
|
|
81
|
+
basePercentage: number;
|
|
82
|
+
finalPercentage: number;
|
|
83
|
+
description: string;
|
|
84
|
+
steps: RejectionPercentageAdjustmentStep[];
|
|
85
|
+
};
|
|
86
|
+
export type RejectionCalculationMemo = {
|
|
87
|
+
basePercentage: number;
|
|
88
|
+
finalPercentage: number;
|
|
89
|
+
description: string;
|
|
90
|
+
steps: RejectionPercentageAdjustmentStep[];
|
|
91
|
+
};
|
|
59
92
|
export type ExtendedInsertBookingBody = {
|
|
60
93
|
movements: Partial<MovementGraphQL>[];
|
|
61
94
|
};
|
|
@@ -867,6 +900,7 @@ export type JsonMemoType = {
|
|
|
867
900
|
confirmed?: boolean;
|
|
868
901
|
rejectionPercentage?: number;
|
|
869
902
|
costCalculations?: CostCalculationMemo[];
|
|
903
|
+
rejectionCalculations?: RejectionCalculationMemo;
|
|
870
904
|
};
|
|
871
905
|
export type CloseOpenWorkOrderDetailInput = {
|
|
872
906
|
id: number | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.15.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": "ab1ff7197a4688c0e887942b4e7a1f6b729a510e"
|
|
26
26
|
}
|