@zauru-sdk/types 6.11.0 → 6.12.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 +24 -1
- package/package.json +2 -2
package/dist/Custom.types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EmployeeGraphQL, ItemGraphQL, LotGraphQL, LotStockGraphQL, MembershipGraphQL, MovementGraphQL, PriceListGraphQL, ProfileGraphQL, PurchaseOrderGraphQL, ShipmentGraphQL, SuggestedPriceGraphQL } from "./GraphQL.types";
|
|
1
|
+
import { EmployeeGraphQL, ItemGraphQL, LotGraphQL, LotStockGraphQL, MembershipGraphQL, MovementGraphQL, PriceListGraphQL, ProfileGraphQL, PurchaseOrderGraphQL, ShipmentGraphQL, SuggestedPriceGraphQL, WebAppRowGraphQL } from "./GraphQL.types";
|
|
2
2
|
export type SpecialItem = {
|
|
3
3
|
item: number;
|
|
4
4
|
provider: number;
|
|
@@ -582,6 +582,7 @@ export type PurchaseOrderCosto = {
|
|
|
582
582
|
item_id: number;
|
|
583
583
|
unit_cost: number;
|
|
584
584
|
calculo?: string;
|
|
585
|
+
precioBase?: number;
|
|
585
586
|
}[];
|
|
586
587
|
};
|
|
587
588
|
export type CostoSemanal = {
|
|
@@ -608,6 +609,28 @@ export type BitacoraCostosItems = {
|
|
|
608
609
|
modificadoPor: string;
|
|
609
610
|
fechaCreacion: string;
|
|
610
611
|
};
|
|
612
|
+
export type WeeklyCostPeriod = "lunMar" | "mieJue" | "vieSabDom";
|
|
613
|
+
export type WeeklyCostMatrixSource = "especial" | "general" | "fallback";
|
|
614
|
+
export type WeeklyCostMatrix = {
|
|
615
|
+
costos: CostoSemanal[];
|
|
616
|
+
costosEspeciales: CostoSemanalSpecialItem[];
|
|
617
|
+
fechas: BitacoraCostosItems["fechas"];
|
|
618
|
+
};
|
|
619
|
+
export type CalculateItemPriceFromWeeklyMatrixInput = {
|
|
620
|
+
itemId: number;
|
|
621
|
+
date: string;
|
|
622
|
+
region?: string;
|
|
623
|
+
tipo?: string;
|
|
624
|
+
providerCategoryId?: number;
|
|
625
|
+
matrix?: WeeklyCostMatrix | null;
|
|
626
|
+
specialItems?: Array<SpecialItem | WebAppRowGraphQL<SpecialItem>>;
|
|
627
|
+
rules?: Array<PriceAdjustmentRule | WebAppRowGraphQL<PriceAdjustmentRule>>;
|
|
628
|
+
};
|
|
629
|
+
export type CalculateItemPriceFromWeeklyMatrixResult = PriceAdjustmentResult & {
|
|
630
|
+
source: WeeklyCostMatrixSource;
|
|
631
|
+
period: WeeklyCostPeriod;
|
|
632
|
+
specialItemId?: number;
|
|
633
|
+
};
|
|
611
634
|
export type DischargeHistory = {
|
|
612
635
|
creadoPor: string;
|
|
613
636
|
fechaCreacion: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.12.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": "7cec8a73384a6d1da9d612201b3ca2d233d6ce6e"
|
|
26
26
|
}
|