@exclusive-website/types 1.9.0 → 1.9.2

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/types.d.ts CHANGED
@@ -133,13 +133,14 @@ export interface ModelReadDto {
133
133
  export interface UserInfoReadDto {
134
134
  id: number;
135
135
  email: string;
136
- role: UserRole;
136
+ roles: UserRole[];
137
137
  }
138
138
  export interface MediaDto {
139
139
  url: string;
140
140
  }
141
141
  export interface AuthJwtDto {
142
142
  email: string;
143
+ roles: UserRole[];
143
144
  }
144
145
  export type SupportedCurrency = "EUR" | "CZK" | null;
145
146
  export interface RegisterUserDto {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.9.0",
3
+ "version": "1.9.2",
4
4
  "description": "A collection of shared types (DTOs and DBEs) for the organization",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/types.ts CHANGED
@@ -164,7 +164,7 @@ export interface ModelReadDto {
164
164
  export interface UserInfoReadDto {
165
165
  id: number;
166
166
  email: string;
167
- role: UserRole;
167
+ roles: UserRole[];
168
168
  }
169
169
 
170
170
  export interface MediaDto {
@@ -173,6 +173,7 @@ export interface MediaDto {
173
173
 
174
174
  export interface AuthJwtDto {
175
175
  email : string;
176
+ roles : UserRole[]
176
177
  }
177
178
 
178
179