@exclusive-website/types 1.4.0 → 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.
@@ -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;
@@ -31,6 +31,12 @@ export interface ModelWriteDto {
31
31
  featuredImage: number;
32
32
  media: number[];
33
33
  }
34
+ export interface ModelListReadDto {
35
+ models: ModelShortReadDto[];
36
+ currentPage: number;
37
+ pageSize: number;
38
+ lastPage: number;
39
+ }
34
40
  export interface ModelShortReadDto {
35
41
  nickname: string;
36
42
  age: number;
@@ -81,6 +87,11 @@ export interface ModelReadDto {
81
87
  seenCounter: number;
82
88
  created: Date;
83
89
  }
90
+ export interface UserInfoReadDto {
91
+ id: number;
92
+ email: string;
93
+ role: UserRole;
94
+ }
84
95
  export type SupportedCurrency = "EUR" | "CZK" | null;
85
96
  export interface RegisterUserDto {
86
97
  email: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exclusive-website/types",
3
- "version": "1.4.0",
3
+ "version": "1.4.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",
@@ -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
@@ -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 {
@@ -49,6 +49,13 @@ export interface ModelWriteDto {
49
49
  media: number[]
50
50
  }
51
51
 
52
+ export interface ModelListReadDto {
53
+ models: ModelShortReadDto[];
54
+ currentPage: number;
55
+ pageSize: number;
56
+ lastPage: number;
57
+ }
58
+
52
59
  export interface ModelShortReadDto {
53
60
  nickname: string
54
61
  age: number
@@ -102,6 +109,12 @@ export interface ModelReadDto {
102
109
  created: Date
103
110
  }
104
111
 
112
+ export interface UserInfoReadDto {
113
+ id: number;
114
+ email: string;
115
+ role: UserRole;
116
+ }
117
+
105
118
  export type SupportedCurrency = "EUR" | "CZK" | null;
106
119
 
107
120
  //SECURITY