@zauru-sdk/types 6.20.0 → 6.22.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 +85 -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 = {
|
|
@@ -985,3 +1031,42 @@ export type OpenWorkOrdersDataTableResponse = {
|
|
|
985
1031
|
recordsFiltered: number;
|
|
986
1032
|
data: OpenWorkOrdersDataTableRow[];
|
|
987
1033
|
};
|
|
1034
|
+
export type PermissionAction = {
|
|
1035
|
+
key: string;
|
|
1036
|
+
label: string;
|
|
1037
|
+
};
|
|
1038
|
+
export type PermissionGroup = {
|
|
1039
|
+
id: string;
|
|
1040
|
+
label: string;
|
|
1041
|
+
actions: PermissionAction[];
|
|
1042
|
+
};
|
|
1043
|
+
export type WebappRole = {
|
|
1044
|
+
name: string;
|
|
1045
|
+
description?: string;
|
|
1046
|
+
permission_keys: string[];
|
|
1047
|
+
fechaEliminacion?: string;
|
|
1048
|
+
};
|
|
1049
|
+
export type WebappEmployeeRole = {
|
|
1050
|
+
employee_id: number;
|
|
1051
|
+
role_id: number;
|
|
1052
|
+
allowed_item_ids?: number[];
|
|
1053
|
+
allowed_payee_ids?: number[];
|
|
1054
|
+
fechaEliminacion?: string;
|
|
1055
|
+
};
|
|
1056
|
+
export type WebappAccessContext = {
|
|
1057
|
+
employeeId: number;
|
|
1058
|
+
email: string;
|
|
1059
|
+
superAdmin: boolean;
|
|
1060
|
+
roleId: number | null;
|
|
1061
|
+
roleName: string | null;
|
|
1062
|
+
assignmentId: number | null;
|
|
1063
|
+
permissionKeys: string[];
|
|
1064
|
+
allowedItemIds: number[];
|
|
1065
|
+
allowedPayeeIds: number[];
|
|
1066
|
+
};
|
|
1067
|
+
export type WebappRbacConfig = {
|
|
1068
|
+
rolesTableVar: string;
|
|
1069
|
+
employeeRolesTableVar: string;
|
|
1070
|
+
allPermissionKeys: readonly string[];
|
|
1071
|
+
superAdminEmailSuffixes?: readonly string[];
|
|
1072
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.22.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": "800600a8cdb22f1c49293fbc3a48d26aa03771c9"
|
|
26
26
|
}
|