@griddo/api-types 1.0.0 → 1.0.3

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/README.md ADDED
@@ -0,0 +1,38 @@
1
+ # @griddo/api-types
2
+
3
+ > Tipos TypeScript compartidos entre proyectos del ecosistema Griddo.
4
+
5
+ Este paquete contiene definiciones de tipos reutilizables como DTOs, enums, filtros y estructuras de paginación que se
6
+ usan tanto en la API como en otros servicios o clientes.
7
+
8
+ ---
9
+
10
+ ## 📦 Instalación
11
+
12
+ ```bash
13
+ npm install @griddo/api-types
14
+ # o
15
+ yarn add @griddo/api-types
16
+ # o
17
+ pnpm add @griddo/api-types
18
+ ```
19
+
20
+ ---
21
+
22
+ ## 📚 Estructura del paquete
23
+
24
+ > EN CONSTRUCCIÓN
25
+
26
+
27
+ ## 🛡️ Buenas prácticas
28
+
29
+ > EN CONSTRUCCIÓN
30
+
31
+ ---
32
+
33
+ ## 👥 Contribución
34
+
35
+ > EN CONSTRUCCIÓN
36
+
37
+ ---
38
+
@@ -82,4 +82,10 @@ export type LogActivityGroupedUserDTO<TLogActivity = LogActivityDTO[]> = Omit<Ba
82
82
  export type LogActivityUserGroupedLogDTO = LogActivityUserDTO & {
83
83
  LogActivityFormatDTO: Omit<LogActivityDTO, 'user'>[];
84
84
  };
85
+ export interface LogActivityExportRequest {
86
+ format: ('csv' | 'json' | 'xml')[];
87
+ dateRange: string;
88
+ startTime?: string | null;
89
+ maxEvents?: number | null;
90
+ }
85
91
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ContentType = exports.LogActivityEventEnum = void 0;
4
- const LogActivityEvents_1 = require("src/logs/LogActivityEvents");
4
+ const LogActivityEvents_1 = require("./LogActivityEvents");
5
5
  exports.LogActivityEventEnum = Object.keys(LogActivityEvents_1.LogActivityEvent).reduce((acc, key) => {
6
6
  acc[key] = key;
7
7
  return acc;
@@ -0,0 +1,5 @@
1
+ export interface LogActivityEventDTO {
2
+ id?: number;
3
+ title: string;
4
+ description: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@griddo/api-types",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Tipos públicos de la API de Griddo",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,10 +13,12 @@
13
13
  "scripts": {
14
14
  "build": "tsc -p tsconfig.json",
15
15
  "clean": "rm -rf dist",
16
- "prepare": "npm run build"
16
+ "prepare": "npm run build",
17
+ "publish": "release-it && npm publish --access public"
17
18
  },
18
19
  "license": "MIT",
19
20
  "devDependencies": {
20
- "@types/minimatch": "^6.0.0"
21
+ "@types/minimatch": "^6.0.0",
22
+ "release-it": "^18.1.2"
21
23
  }
22
24
  }