@exclusive-website/types 1.4.1 → 1.4.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/filterEnums.d.ts +4 -0
- package/dist/filterEnums.js +5 -0
- package/dist/types.d.ts +6 -1
- package/package.json +1 -1
- package/src/filterEnums.ts +5 -0
- package/src/types.ts +7 -1
package/dist/filterEnums.d.ts
CHANGED
package/dist/filterEnums.js
CHANGED
|
@@ -99,6 +99,11 @@ export var ServicesFor;
|
|
|
99
99
|
ServicesFor["WOMEN"] = "Pre \u017Eeny";
|
|
100
100
|
ServicesFor["COUPLES"] = "Pre p\u00E1ry";
|
|
101
101
|
})(ServicesFor || (ServicesFor = {}));
|
|
102
|
+
export var UserRole;
|
|
103
|
+
(function (UserRole) {
|
|
104
|
+
UserRole[UserRole["MODEL"] = 0] = "MODEL";
|
|
105
|
+
UserRole[UserRole["CLIENT"] = 1] = "CLIENT";
|
|
106
|
+
})(UserRole || (UserRole = {}));
|
|
102
107
|
export var Practise;
|
|
103
108
|
(function (Practise) {
|
|
104
109
|
Practise[Practise["MASSAGE"] = 0] = "MASSAGE";
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, Location, NationalityOption, OtherPractise, Practise, ServicesFor, ServiceType, SexualOrientation, ShaveStatus } from "./filterEnums";
|
|
1
|
+
import { ContactMethod, DayStatus, ExperienceLevel, HairColor, HairLength, Language, Location, NationalityOption, OtherPractise, Practise, ServicesFor, ServiceType, SexualOrientation, ShaveStatus, UserRole } from "./filterEnums";
|
|
2
2
|
export interface ModelWriteDto {
|
|
3
3
|
nickname: string;
|
|
4
4
|
phoneNumber: string;
|
|
@@ -87,6 +87,11 @@ export interface ModelReadDto {
|
|
|
87
87
|
seenCounter: number;
|
|
88
88
|
created: Date;
|
|
89
89
|
}
|
|
90
|
+
export interface UserInfoReadDto {
|
|
91
|
+
id: number;
|
|
92
|
+
email: string;
|
|
93
|
+
role: UserRole;
|
|
94
|
+
}
|
|
90
95
|
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
91
96
|
export interface RegisterUserDto {
|
|
92
97
|
email: string;
|
package/package.json
CHANGED
package/src/filterEnums.ts
CHANGED
package/src/types.ts
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
ServicesFor,
|
|
13
13
|
ServiceType,
|
|
14
14
|
SexualOrientation,
|
|
15
|
-
ShaveStatus,
|
|
15
|
+
ShaveStatus, UserRole,
|
|
16
16
|
} from "./filterEnums";
|
|
17
17
|
|
|
18
18
|
export interface ModelWriteDto {
|
|
@@ -109,6 +109,12 @@ export interface ModelReadDto {
|
|
|
109
109
|
created: Date
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
export interface UserInfoReadDto {
|
|
113
|
+
id: number;
|
|
114
|
+
email: string;
|
|
115
|
+
role: UserRole;
|
|
116
|
+
}
|
|
117
|
+
|
|
112
118
|
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
113
119
|
|
|
114
120
|
//SECURITY
|