@exclusive-website/types 1.4.1 → 1.4.5
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 +10 -3
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
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AgeRange,
|
|
3
|
-
BreastSize,
|
|
4
2
|
ContactMethod,
|
|
5
3
|
DayStatus,
|
|
6
4
|
ExperienceLevel,
|
|
@@ -8,11 +6,14 @@ import {
|
|
|
8
6
|
HairLength,
|
|
9
7
|
Language,
|
|
10
8
|
Location,
|
|
11
|
-
NationalityOption,
|
|
9
|
+
NationalityOption,
|
|
10
|
+
OtherPractise,
|
|
11
|
+
Practise,
|
|
12
12
|
ServicesFor,
|
|
13
13
|
ServiceType,
|
|
14
14
|
SexualOrientation,
|
|
15
15
|
ShaveStatus,
|
|
16
|
+
UserRole,
|
|
16
17
|
} from "./filterEnums";
|
|
17
18
|
|
|
18
19
|
export interface ModelWriteDto {
|
|
@@ -109,6 +110,12 @@ export interface ModelReadDto {
|
|
|
109
110
|
created: Date
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
export interface UserInfoReadDto {
|
|
114
|
+
id: number;
|
|
115
|
+
email: string;
|
|
116
|
+
role: UserRole;
|
|
117
|
+
}
|
|
118
|
+
|
|
112
119
|
export type SupportedCurrency = "EUR" | "CZK" | null;
|
|
113
120
|
|
|
114
121
|
//SECURITY
|