@hed-hog/tag 0.0.274 → 0.0.275

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.
Files changed (2) hide show
  1. package/README.md +19 -7
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,3 +1,4 @@
1
+ ```markdown
1
2
  # @hed-hog/tag
2
3
 
3
4
  ## 1. Visão geral do módulo
@@ -20,7 +21,7 @@ O módulo `@hed-hog/tag` é responsável pela gestão de tags dentro do ecossist
20
21
  - **Método:** GET
21
22
  - **Path:** `/tag`
22
23
  - **Autenticação:** Requer role `admin` ou `admin-tag`
23
- - **Descrição:** Retorna uma lista paginada de tags, com opção de busca por slug.
24
+ - **Descrição:** Retorna uma lista paginada de tags, com opção de busca parcial e case-insensitive por slug.
24
25
  - **Query Parameters:**
25
26
  - `skip` (number): quantidade de registros a pular (para paginação)
26
27
  - `take` (number): quantidade de registros a retornar
@@ -28,12 +29,22 @@ O módulo `@hed-hog/tag` é responsável pela gestão de tags dentro do ecossist
28
29
  - **Resposta:**
29
30
  ```json
30
31
  {
31
- "data": [ { "id": number, "slug": string, "color": string, "status": "active"|"inactive", "created_at": string, "updated_at": string }, ... ],
32
+ "data": [
33
+ {
34
+ "id": number,
35
+ "slug": string,
36
+ "color": string,
37
+ "status": "active" | "inactive",
38
+ "created_at": string,
39
+ "updated_at": string
40
+ },
41
+ ...
42
+ ],
32
43
  "total": number,
33
44
  "page": number,
34
45
  "pageSize": number,
35
- "prev": number|null,
36
- "next": number|null,
46
+ "prev": number | null,
47
+ "next": number | null,
37
48
  "lastPage": number
38
49
  }
39
50
  ```
@@ -75,7 +86,7 @@ O módulo `@hed-hog/tag` é responsável pela gestão de tags dentro do ecossist
75
86
  "id": number,
76
87
  "slug": string,
77
88
  "color": string,
78
- "status": "active"|"inactive",
89
+ "status": "active" | "inactive",
79
90
  "created_at": string,
80
91
  "updated_at": string
81
92
  }
@@ -97,7 +108,7 @@ O módulo `@hed-hog/tag` é responsável pela gestão de tags dentro do ecossist
97
108
  {
98
109
  "slug": "string",
99
110
  "color": "#RRGGBB ou #RGB",
100
- "status": "active"|"inactive" (opcional, padrão "active")
111
+ "status": "active" | "inactive" (opcional, padrão "active")
101
112
  }
102
113
  ```
103
114
  - **Resposta:**
@@ -121,7 +132,7 @@ O módulo `@hed-hog/tag` é responsável pela gestão de tags dentro do ecossist
121
132
  {
122
133
  "slug"?: "string",
123
134
  "color"?: "#RRGGBB ou #RGB",
124
- "status"?: "active"|"inactive"
135
+ "status"?: "active" | "inactive"
125
136
  }
126
137
  ```
127
138
  - **Resposta:**
@@ -340,3 +351,4 @@ Resposta:
340
351
  ---
341
352
 
342
353
  Este módulo é parte integrante do monorepo HedHog e deve ser utilizado conforme as regras de autenticação e autorização definidas.
354
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hed-hog/tag",
3
- "version": "0.0.274",
3
+ "version": "0.0.275",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -11,8 +11,8 @@
11
11
  "@nestjs/mapped-types": "*",
12
12
  "@hed-hog/api-prisma": "0.0.5",
13
13
  "@hed-hog/api-pagination": "0.0.6",
14
- "@hed-hog/core": "0.0.274",
15
14
  "@hed-hog/api": "0.0.4",
15
+ "@hed-hog/core": "0.0.275",
16
16
  "@hed-hog/api-locale": "0.0.13"
17
17
  },
18
18
  "exports": {