@meago/core 0.3.5 → 0.3.6

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/dist/index.d.mts CHANGED
@@ -172,12 +172,13 @@ declare namespace index$8 {
172
172
  export type { index$8_IBaseModel as IBaseModel, index$8_IBaseQuery as IBaseQuery, index$8_IBaseResponse as IBaseResponse, index$8_ICursorPaginatedResult as ICursorPaginatedResult, index$8_IErrorResponse as IErrorResponse, index$8_IPaginatedResult as IPaginatedResult, index$8_ITrackingModel as ITrackingModel };
173
173
  }
174
174
 
175
- /** User trả về từ GET /auth/me — kèm tập permission đã resolve. */
175
+ /** User trả về từ GET /auth/me — kèm tên role và tập permission đã resolve. */
176
176
  interface ICurrentUser {
177
177
  id: string;
178
178
  email: string;
179
179
  displayName: string;
180
180
  status: EUserStatus | string;
181
+ roles: string[];
181
182
  permissions: string[];
182
183
  }
183
184
  interface IUser extends IBaseModel {
package/dist/index.d.ts CHANGED
@@ -172,12 +172,13 @@ declare namespace index$8 {
172
172
  export type { index$8_IBaseModel as IBaseModel, index$8_IBaseQuery as IBaseQuery, index$8_IBaseResponse as IBaseResponse, index$8_ICursorPaginatedResult as ICursorPaginatedResult, index$8_IErrorResponse as IErrorResponse, index$8_IPaginatedResult as IPaginatedResult, index$8_ITrackingModel as ITrackingModel };
173
173
  }
174
174
 
175
- /** User trả về từ GET /auth/me — kèm tập permission đã resolve. */
175
+ /** User trả về từ GET /auth/me — kèm tên role và tập permission đã resolve. */
176
176
  interface ICurrentUser {
177
177
  id: string;
178
178
  email: string;
179
179
  displayName: string;
180
180
  status: EUserStatus | string;
181
+ roles: string[];
181
182
  permissions: string[];
182
183
  }
183
184
  interface IUser extends IBaseModel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meago/core",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Framework-neutral contracts and core primitives for Meago applications",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",