@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.
@@ -79,6 +79,10 @@ export declare enum ServicesFor {
79
79
  WOMEN = "Pre \u017Eeny",
80
80
  COUPLES = "Pre p\u00E1ry"
81
81
  }
82
+ export declare enum UserRole {
83
+ MODEL = 0,
84
+ CLIENT = 1
85
+ }
82
86
  export declare enum Practise {
83
87
  MASSAGE = 0,
84
88
  HANDJOB = 1,
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.4.1",
3
+ "version": "1.4.5",
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",
@@ -99,6 +99,11 @@ export enum ServicesFor {
99
99
  COUPLES = "Pre páry",
100
100
  }
101
101
 
102
+ export enum UserRole {
103
+ MODEL,
104
+ CLIENT,
105
+ }
106
+
102
107
  export enum Practise {
103
108
  MASSAGE,
104
109
  HANDJOB,
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, OtherPractise, Practise,
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