@zauru-sdk/types 6.22.0 → 6.24.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.
@@ -83,6 +83,20 @@ export type CertificationPenaltyHistoryEntry = {
83
83
  createdAt: string;
84
84
  bitacoraId?: number;
85
85
  };
86
+ export type UnitCostPenaltyHistoryEntry = {
87
+ id: string;
88
+ detailId: number;
89
+ itemId: number;
90
+ amount: number;
91
+ reason: string;
92
+ previousUnitCost: number;
93
+ finalUnitCost: number;
94
+ employeeId: number;
95
+ employeeName: string;
96
+ agencyId: number;
97
+ createdAt: string;
98
+ bitacoraId: number;
99
+ };
86
100
  export type PriceAdjustmentReversalMatch = {
87
101
  sourceRuleId: number;
88
102
  sourceRuleName: string;
@@ -619,9 +633,12 @@ export type POHistoryMassive = {
619
633
  memo?: string | object | null;
620
634
  };
621
635
  export type BitacoraPOMassive = {
636
+ operationType?: "rejection_adjustment" | "certification_penalty" | "unit_cost_penalty";
622
637
  accion: string;
623
638
  discount?: number | string;
624
639
  other_charges?: number | string;
640
+ penaltyAmount?: number;
641
+ penaltyReason?: string;
625
642
  payeeCategoryId?: number | string;
626
643
  itemId?: number | string;
627
644
  fechaDesde?: string;
@@ -988,6 +1005,7 @@ export type JsonMemoType = {
988
1005
  rejectionLayers?: RejectionPercentageLayers;
989
1006
  costCalculations?: CostCalculationMemo[];
990
1007
  certificationPenaltyHistory?: CertificationPenaltyHistoryEntry[];
1008
+ unitCostPenaltyHistory?: UnitCostPenaltyHistoryEntry[];
991
1009
  rejectionCalculations?: RejectionCalculationMemo;
992
1010
  };
993
1011
  export type CloseOpenWorkOrderDetailInput = {
@@ -1049,8 +1067,6 @@ export type WebappRole = {
1049
1067
  export type WebappEmployeeRole = {
1050
1068
  employee_id: number;
1051
1069
  role_id: number;
1052
- allowed_item_ids?: number[];
1053
- allowed_payee_ids?: number[];
1054
1070
  fechaEliminacion?: string;
1055
1071
  };
1056
1072
  export type WebappAccessContext = {
@@ -1060,9 +1076,8 @@ export type WebappAccessContext = {
1060
1076
  roleId: number | null;
1061
1077
  roleName: string | null;
1062
1078
  assignmentId: number | null;
1079
+ assignment: WebappEmployeeRole | null;
1063
1080
  permissionKeys: string[];
1064
- allowedItemIds: number[];
1065
- allowedPayeeIds: number[];
1066
1081
  };
1067
1082
  export type WebappRbacConfig = {
1068
1083
  rolesTableVar: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "6.22.0",
3
+ "version": "6.24.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": "800600a8cdb22f1c49293fbc3a48d26aa03771c9"
25
+ "gitHead": "d1667a29d9fabc9980d171fed30796c232de358d"
26
26
  }