evo360-types 1.3.159 → 1.3.161

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.
@@ -19,7 +19,7 @@ export type UserTenantIndexStatus = "active" | "invited" | "disabled";
19
19
  * Membership document representing a user's access to a tenant.
20
20
  * This is the PRIMARY authorization document for the system.
21
21
  *
22
- * Path: /tenants/{tenantId}/users/{userId}
22
+ * Path: /tenants/{tenant}/users/{userId}
23
23
  */
24
24
  export interface ITenantUser extends IFireDoc {
25
25
  status: TenantUserStatus;
@@ -50,7 +50,7 @@ export interface ITenantUser extends IFireDoc {
50
50
  * Inverted index for listing tenants accessible by a user.
51
51
  * Used exclusively for performant listing without expensive queries.
52
52
  *
53
- * Path: /users/{userId}/tenants/{tenantId}
53
+ * Path: /users/{userId}/tenants/{tenant}
54
54
  */
55
55
  export interface IUserTenantIndex extends IFireDoc {
56
56
  status: UserTenantIndexStatus;
@@ -22,17 +22,17 @@ export type TenantUserStatus = "active" | "invited" | "disabled" | "removed";
22
22
  export type UserTenantIndexStatus = "active" | "invited" | "disabled";
23
23
 
24
24
  // ----- Tenant User Membership (AUTORIZAÇÃO PRINCIPAL)
25
- // Path: /tenants/{tenantId}/users/{userId}
25
+ // Path: /tenants/{tenant}/users/{userId}
26
26
 
27
27
  /**
28
28
  * Membership document representing a user's access to a tenant.
29
29
  * This is the PRIMARY authorization document for the system.
30
30
  *
31
- * Path: /tenants/{tenantId}/users/{userId}
31
+ * Path: /tenants/{tenant}/users/{userId}
32
32
  */
33
33
  export interface ITenantUser extends IFireDoc {
34
34
  status: TenantUserStatus;
35
- // tenant field from IFireDoc represents the tenantId
35
+ // tenant field from IFireDoc represents the tenant
36
36
 
37
37
  /**
38
38
  * Array of role IDs assigned to the user in this tenant.
@@ -60,17 +60,17 @@ export interface ITenantUser extends IFireDoc {
60
60
  }
61
61
 
62
62
  // ----- User Tenant Index (ÍNDICE INVERTIDO)
63
- // Path: /users/{userId}/tenants/{tenantId}
63
+ // Path: /users/{userId}/tenants/{tenant}
64
64
 
65
65
  /**
66
66
  * Inverted index for listing tenants accessible by a user.
67
67
  * Used exclusively for performant listing without expensive queries.
68
68
  *
69
- * Path: /users/{userId}/tenants/{tenantId}
69
+ * Path: /users/{userId}/tenants/{tenant}
70
70
  */
71
71
  export interface IUserTenantIndex extends IFireDoc {
72
72
  status: UserTenantIndexStatus;
73
- // tenant field from IFireDoc represents the tenantId
73
+ // tenant field from IFireDoc represents the tenant
74
74
 
75
75
  /**
76
76
  * Tenant name for display purposes.
@@ -1,6 +1,14 @@
1
1
  export * from "../../evo-people/fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
3
  import type { IAppointmentCounters } from "../people";
4
+ export declare const EvoMedCalendarPermissions: {
5
+ readonly List: "evo_med_calendar_read";
6
+ readonly Get: "evo_med_calendar_read";
7
+ readonly Create: "evo_med_calendar_write";
8
+ readonly Update: "evo_med_calendar_write";
9
+ readonly Delete: "evo_med_calendar_write";
10
+ };
11
+ export type EvoMedCalendarPermissions = (typeof EvoMedCalendarPermissions)[keyof typeof EvoMedCalendarPermissions];
4
12
  export interface IMedCalendar extends IFireDoc {
5
13
  calendarId: string;
6
14
  color?: string;
@@ -14,4 +14,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.EvoMedCalendarPermissions = void 0;
17
18
  __exportStar(require("../../evo-people/fb_collections"), exports);
19
+ // Permissões para o calendário
20
+ exports.EvoMedCalendarPermissions = {
21
+ List: "evo_med_calendar_read",
22
+ Get: "evo_med_calendar_read",
23
+ Create: "evo_med_calendar_write",
24
+ Update: "evo_med_calendar_write",
25
+ Delete: "evo_med_calendar_write",
26
+ };
@@ -2,8 +2,19 @@ export * from "../../evo-people/fb_collections";
2
2
  import type { FirestoreDocumentReference, IFireDoc, ITag } from "../../shared";
3
3
  import type { IAppointmentCounters } from "../people";
4
4
 
5
- // ----- MedCalendarTypes
5
+ // Permissões para o calendário
6
+ export const EvoMedCalendarPermissions = {
7
+ List: "evo_med_calendar_read",
8
+ Get: "evo_med_calendar_read",
9
+ Create: "evo_med_calendar_write",
10
+ Update: "evo_med_calendar_write",
11
+ Delete: "evo_med_calendar_write",
12
+ } as const;
13
+
14
+ export type EvoMedCalendarPermissions =
15
+ (typeof EvoMedCalendarPermissions)[keyof typeof EvoMedCalendarPermissions];
6
16
 
17
+ // ----- MedCalendarTypes
7
18
  export interface IMedCalendar extends IFireDoc {
8
19
  calendarId: string;
9
20
  color?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "evo360-types",
3
- "version": "1.3.159",
3
+ "version": "1.3.161",
4
4
  "description": "HREVO360 Shared Types",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",