@zauru-sdk/types 1.0.10 → 1.0.13

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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.13](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.12...v1.0.13) (2024-03-21)
7
+
8
+ **Note:** Version bump only for package @zauru-sdk/types
9
+
10
+
11
+
12
+
13
+
6
14
  ## [1.0.10](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.9...v1.0.10) (2024-03-17)
7
15
 
8
16
  **Note:** Version bump only for package @zauru-sdk/types
@@ -606,10 +606,6 @@ export type ReceptionType = {
606
606
  Codigo: string;
607
607
  Nombre: string;
608
608
  };
609
- export type RowDataType = {
610
- id: any;
611
- [key: string]: any;
612
- };
613
609
  export type QueueFormReceptionWebAppTable = {
614
610
  creadoPor: string;
615
611
  fechaCreacion: string;
@@ -618,3 +614,19 @@ export type QueueFormReceptionWebAppTable = {
618
614
  agency_id: number;
619
615
  description: string;
620
616
  };
617
+ export type RowDataType = {
618
+ id: any;
619
+ [key: string]: any;
620
+ };
621
+ export type GenericDynamicTableColumn = {
622
+ name: string;
623
+ label: string;
624
+ type: "checkbox" | "textField" | "selectField" | "label";
625
+ integer?: boolean;
626
+ options?: SelectFieldOption[];
627
+ loadingOptions?: boolean;
628
+ textFieldType?: "number";
629
+ width?: number;
630
+ disabled?: boolean;
631
+ onChange?: (row: RowDataType, value: any, setTableValue: (columnName: string, newValue: any) => void) => void;
632
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/types",
3
- "version": "1.0.10",
3
+ "version": "1.0.13",
4
4
  "description": "Estructuras de Zauru, tipado de modelos y modelos personalizados.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -19,5 +19,5 @@
19
19
  "engines": {
20
20
  "node": ">=18.0.0"
21
21
  },
22
- "gitHead": "92bcefbeded758ac406e0436dc5c1894390a319d"
22
+ "gitHead": "9bca61fddd7c538e7f95a489d59436b5557c61cc"
23
23
  }
@@ -687,11 +687,6 @@ export type RejectionWebAppTableObject = {
687
687
 
688
688
  export type ReceptionType = { Codigo: string; Nombre: string };
689
689
 
690
- export type RowDataType = {
691
- id: any;
692
- [key: string]: any;
693
- };
694
-
695
690
  //Modelo con el cuál responde el backend
696
691
  export type QueueFormReceptionWebAppTable = {
697
692
  creadoPor: string;
@@ -701,3 +696,25 @@ export type QueueFormReceptionWebAppTable = {
701
696
  agency_id: number;
702
697
  description: string;
703
698
  };
699
+
700
+ export type RowDataType = {
701
+ id: any;
702
+ [key: string]: any;
703
+ };
704
+
705
+ export type GenericDynamicTableColumn = {
706
+ name: string;
707
+ label: string;
708
+ type: "checkbox" | "textField" | "selectField" | "label";
709
+ integer?: boolean;
710
+ options?: SelectFieldOption[];
711
+ loadingOptions?: boolean;
712
+ textFieldType?: "number";
713
+ width?: number;
714
+ disabled?: boolean;
715
+ onChange?: (
716
+ row: RowDataType,
717
+ value: any,
718
+ setTableValue: (columnName: string, newValue: any) => void
719
+ ) => void;
720
+ };