evo360-types 1.3.175 → 1.3.176

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.
@@ -84,6 +84,7 @@ export declare const zUserTenantIndexSchema: z.ZodObject<z.objectUtil.extendShap
84
84
  status: z.ZodEnum<["active", "invited", "disabled"]>;
85
85
  tenant_name: z.ZodString;
86
86
  tenant_deleted_at: z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>;
87
+ tenant_status: z.ZodNullable<z.ZodEnum<["draft", "published", "archived"]>>;
87
88
  }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
88
89
  id: z.ZodString;
89
90
  ref: z.ZodAny;
@@ -96,6 +97,7 @@ export declare const zUserTenantIndexSchema: z.ZodObject<z.objectUtil.extendShap
96
97
  status: z.ZodEnum<["active", "invited", "disabled"]>;
97
98
  tenant_name: z.ZodString;
98
99
  tenant_deleted_at: z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>;
100
+ tenant_status: z.ZodNullable<z.ZodEnum<["draft", "published", "archived"]>>;
99
101
  }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
100
102
  id: z.ZodString;
101
103
  ref: z.ZodAny;
@@ -108,6 +110,7 @@ export declare const zUserTenantIndexSchema: z.ZodObject<z.objectUtil.extendShap
108
110
  status: z.ZodEnum<["active", "invited", "disabled"]>;
109
111
  tenant_name: z.ZodString;
110
112
  tenant_deleted_at: z.ZodNullable<z.ZodEffects<z.ZodDate, Date, unknown>>;
113
+ tenant_status: z.ZodNullable<z.ZodEnum<["draft", "published", "archived"]>>;
111
114
  }>, z.ZodTypeAny, "passthrough">>;
112
115
  /**
113
116
  * Schema for role permission mapping in IRbacGroup
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.zRbacGroupSchema = exports.zRbacPermissionMetadataSchema = exports.zRbacRoleSchema = exports.zRbacRolePermsSchema = exports.zUserTenantIndexSchema = exports.zTenantUserSchema = exports.zUserTenantIndexStatusSchema = exports.zTenantUserStatusSchema = exports.zRbacPermValueSchema = exports.zActionArgsSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const zod_schemas_1 = require("../shared/zod-schemas");
6
+ const zod_schemas_2 = require("../evo-tenant/zod-schemas");
6
7
  exports.zActionArgsSchema = zod_1.z.object({
7
8
  old_values: zod_1.z.record(zod_1.z.any()).optional(),
8
9
  new_values: zod_1.z.record(zod_1.z.any()).optional(),
@@ -51,6 +52,7 @@ exports.zUserTenantIndexSchema = zod_schemas_1.zFireDocSchema
51
52
  status: exports.zUserTenantIndexStatusSchema,
52
53
  tenant_name: zod_1.z.string(),
53
54
  tenant_deleted_at: zod_schemas_1.zFirestoreDateSchema.nullable(),
55
+ tenant_status: zod_schemas_2.zTenantStatusSchema.nullable(),
54
56
  })
55
57
  .passthrough();
56
58
  /**
@@ -1,5 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import { zFireDocSchema, zFirestoreDateSchema } from "../shared/zod-schemas";
3
+ import { zTenantStatusSchema } from "../evo-tenant/zod-schemas";
3
4
 
4
5
  export const zActionArgsSchema = z.object({
5
6
  old_values: z.record(z.any()).optional(),
@@ -55,6 +56,7 @@ export const zUserTenantIndexSchema = zFireDocSchema
55
56
  status: zUserTenantIndexStatusSchema,
56
57
  tenant_name: z.string(),
57
58
  tenant_deleted_at: zFirestoreDateSchema.nullable(),
59
+ tenant_status: zTenantStatusSchema.nullable(),
58
60
  })
59
61
  .passthrough();
60
62
 
@@ -26,8 +26,8 @@ export declare const zTenantSchema: z.ZodObject<z.objectUtil.extendShape<{
26
26
  id: string;
27
27
  tenant: string;
28
28
  model_ver: number;
29
- status: "draft" | "published" | "archived";
30
29
  url_alias: string;
30
+ status: "draft" | "published" | "archived";
31
31
  ref?: any;
32
32
  created_at?: Date | null | undefined;
33
33
  updated_at?: Date | null | undefined;
@@ -43,8 +43,8 @@ export declare const zTenantSchema: z.ZodObject<z.objectUtil.extendShape<{
43
43
  name: string;
44
44
  id: string;
45
45
  tenant: string;
46
- status: "draft" | "published" | "archived";
47
46
  url_alias: string;
47
+ status: "draft" | "published" | "archived";
48
48
  ref?: any;
49
49
  model_ver?: number | undefined;
50
50
  created_at?: Date | null | undefined;
@@ -1,4 +1,5 @@
1
1
  export * from "./fb_collections";
2
+ import { TenantStatus } from "../../evo-tenant";
2
3
  import type { IFireDoc } from "../../shared";
3
4
  export declare const CoreRbacPermissions: {
4
5
  readonly List: "core_rbac_read";
@@ -88,6 +89,10 @@ export interface IUserTenantIndex extends IFireDoc {
88
89
  * null if tenant is active.
89
90
  */
90
91
  tenant_deleted_at: Date | null;
92
+ /**
93
+ * Tenant status.
94
+ */
95
+ tenant_status: TenantStatus;
91
96
  }
92
97
  /**
93
98
  * RBAC group definition (catalog).
@@ -1,4 +1,5 @@
1
1
  export * from "./fb_collections";
2
+ import { TenantStatus } from "../../evo-tenant";
2
3
  import type { IFireDoc } from "../../shared";
3
4
 
4
5
  // Permissões para o core rbac
@@ -114,6 +115,11 @@ export interface IUserTenantIndex extends IFireDoc {
114
115
  * null if tenant is active.
115
116
  */
116
117
  tenant_deleted_at: Date | null;
118
+
119
+ /**
120
+ * Tenant status.
121
+ */
122
+ tenant_status: TenantStatus;
117
123
  }
118
124
 
119
125
  // ----- RBAC Group (DICIONÁRIO RBAC GLOBAL)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.175",
3
+ "version": "1.3.176",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",