@zauru-sdk/types 6.11.0 → 6.13.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 +26 -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;
|
|
@@ -577,11 +577,14 @@ export type PurchaseOrderCosto = {
|
|
|
577
577
|
msgResultado?: string;
|
|
578
578
|
fecha: string;
|
|
579
579
|
memo?: string;
|
|
580
|
+
payee_id?: number;
|
|
581
|
+
reference?: string;
|
|
580
582
|
purchase_order_details: {
|
|
581
583
|
id: number;
|
|
582
584
|
item_id: number;
|
|
583
585
|
unit_cost: number;
|
|
584
586
|
calculo?: string;
|
|
587
|
+
precioBase?: number;
|
|
585
588
|
}[];
|
|
586
589
|
};
|
|
587
590
|
export type CostoSemanal = {
|
|
@@ -608,6 +611,28 @@ export type BitacoraCostosItems = {
|
|
|
608
611
|
modificadoPor: string;
|
|
609
612
|
fechaCreacion: string;
|
|
610
613
|
};
|
|
614
|
+
export type WeeklyCostPeriod = "lunMar" | "mieJue" | "vieSabDom";
|
|
615
|
+
export type WeeklyCostMatrixSource = "especial" | "general" | "fallback";
|
|
616
|
+
export type WeeklyCostMatrix = {
|
|
617
|
+
costos: CostoSemanal[];
|
|
618
|
+
costosEspeciales: CostoSemanalSpecialItem[];
|
|
619
|
+
fechas: BitacoraCostosItems["fechas"];
|
|
620
|
+
};
|
|
621
|
+
export type CalculateItemPriceFromWeeklyMatrixInput = {
|
|
622
|
+
itemId: number;
|
|
623
|
+
date: string;
|
|
624
|
+
region?: string;
|
|
625
|
+
tipo?: string;
|
|
626
|
+
providerCategoryId?: number;
|
|
627
|
+
matrix?: WeeklyCostMatrix | null;
|
|
628
|
+
specialItems?: Array<SpecialItem | WebAppRowGraphQL<SpecialItem>>;
|
|
629
|
+
rules?: Array<PriceAdjustmentRule | WebAppRowGraphQL<PriceAdjustmentRule>>;
|
|
630
|
+
};
|
|
631
|
+
export type CalculateItemPriceFromWeeklyMatrixResult = PriceAdjustmentResult & {
|
|
632
|
+
source: WeeklyCostMatrixSource;
|
|
633
|
+
period: WeeklyCostPeriod;
|
|
634
|
+
specialItemId?: number;
|
|
635
|
+
};
|
|
611
636
|
export type DischargeHistory = {
|
|
612
637
|
creadoPor: string;
|
|
613
638
|
fechaCreacion: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/types",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.13.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": "9d36380b88d7e251132cf68af896afecab65569f"
|
|
26
26
|
}
|