evo360-types 1.3.40 → 1.3.41

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.
@@ -43,10 +43,13 @@ export declare const zTagCounterSchema: z.ZodObject<{
43
43
  export declare const zTagCollectionIndexSchema: z.ZodObject<{
44
44
  collection: z.ZodString;
45
45
  tags: z.ZodArray<z.ZodString, "many">;
46
+ tagColors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
46
47
  }, "strip", z.ZodTypeAny, {
47
48
  tags: string[];
48
49
  collection: string;
50
+ tagColors?: Record<string, string> | undefined;
49
51
  }, {
50
52
  tags: string[];
51
53
  collection: string;
54
+ tagColors?: Record<string, string> | undefined;
52
55
  }>;
@@ -27,4 +27,7 @@ exports.zTagCounterSchema = zod_1.z.object({
27
27
  exports.zTagCollectionIndexSchema = zod_1.z.object({
28
28
  collection: zod_1.z.string().min(1).max(50), // Nome da coleção (obrigatório, 1-50 caracteres)
29
29
  tags: zod_1.z.array(zod_1.z.string().min(1).max(100)).max(1000), // Array de tags (máximo 1000 tags por coleção)
30
+ tagColors: zod_1.z
31
+ .record(zod_1.z.string(), zod_1.z.string().regex(/^#[0-9A-Fa-f]{6}$/))
32
+ .optional(), // Mapeamento tag -> cor (formato hex)
30
33
  });
@@ -28,4 +28,7 @@ export const zTagCounterSchema = z.object({
28
28
  export const zTagCollectionIndexSchema = z.object({
29
29
  collection: z.string().min(1).max(50), // Nome da coleção (obrigatório, 1-50 caracteres)
30
30
  tags: z.array(z.string().min(1).max(100)).max(1000), // Array de tags (máximo 1000 tags por coleção)
31
+ tagColors: z
32
+ .record(z.string(), z.string().regex(/^#[0-9A-Fa-f]{6}$/))
33
+ .optional(), // Mapeamento tag -> cor (formato hex)
31
34
  });
@@ -27,4 +27,5 @@ export interface ITagCounter extends IFireDoc {
27
27
  export interface ITagCollectionIndex extends IFireDoc {
28
28
  collection: string;
29
29
  tags: string[];
30
+ tagColors: Record<string, string>;
30
31
  }
@@ -32,4 +32,5 @@ export interface ITagCounter extends IFireDoc {
32
32
  export interface ITagCollectionIndex extends IFireDoc {
33
33
  collection: string; // Nome da coleção
34
34
  tags: string[]; // Array com as tags já utilizadas nesta coleção
35
+ tagColors: Record<string, string>; // Mapeamento de tag -> cor (ex: { "novo cliente": "#ff0000" })
35
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.40",
3
+ "version": "1.3.41",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",