@zauru-sdk/types 6.28.0 → 6.30.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.
@@ -439,6 +439,7 @@ export type UpdatePurchaseOrderBody = {
439
439
  id?: string | number;
440
440
  unit_cost?: string | number;
441
441
  item_id: string | number;
442
+ cost?: string | number;
442
443
  };
443
444
  };
444
445
  };
@@ -598,17 +599,32 @@ export type WebAppTableBody<T> = {
598
599
  data: T;
599
600
  };
600
601
  };
601
- export type WebAppTableUpdateResponse = {
602
+ export type WebAppTableUpdateResponse<T = {
603
+ Nombre: string;
604
+ }> = {
602
605
  id: number;
603
606
  webapp_table_id: number;
604
- data: {
605
- Nombre: string;
606
- };
607
+ data: T;
607
608
  creator_id: number;
608
609
  updater_id: number | null;
609
610
  created_at: string;
610
611
  updated_at: string;
611
612
  };
613
+ export type WebAppTableBulkCreateBody<T> = {
614
+ webapp_rows: Array<{
615
+ data: T;
616
+ }>;
617
+ };
618
+ export type WebAppTableBulkUpdateBody<T> = {
619
+ webapp_rows: Array<{
620
+ id: number | string;
621
+ data: Partial<T>;
622
+ }>;
623
+ };
624
+ export type WebAppTableBulkResponse<T> = {
625
+ webapp_rows: WebAppTableUpdateResponse<T>[];
626
+ count: number;
627
+ };
612
628
  export type WebAppTableCreateBody = {
613
629
  name: string;
614
630
  rows_structure: string[];
@@ -766,6 +782,8 @@ export type PurchaseOrderCosto = {
766
782
  }[];
767
783
  };
768
784
  export type PurchaseOrderFinancialDetail = {
785
+ id?: number | string | null;
786
+ item_id?: number | string | null;
769
787
  booked_quantity?: number | string | null;
770
788
  delivered_quantity?: number | string | null;
771
789
  booked?: number | string | null;
@@ -773,6 +791,12 @@ export type PurchaseOrderFinancialDetail = {
773
791
  quantity?: number | string | null;
774
792
  unit_cost?: number | string | null;
775
793
  };
794
+ export type PurchaseOrderDetailCostAttribute = {
795
+ id: number;
796
+ item_id: number;
797
+ unit_cost: number;
798
+ cost: number;
799
+ };
776
800
  export type CalculatePurchaseOrderFinancialsInput = {
777
801
  details?: PurchaseOrderFinancialDetail[] | null;
778
802
  /** % de rechazo de origen, o el % final ya guardado en el memo */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "6.28.0",
3
+ "version": "6.30.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": "2fda4a18e3f62d22c38fbb91052869db9ebc16f4"
25
+ "gitHead": "dc5f6e04a2c4254710cbd86cb7016beefd84b9be"
26
26
  }