@experts_hub/shared 1.0.27 → 1.0.29
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/entities/index.d.ts +1 -0
- package/dist/index.d.mts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +19 -3
- package/dist/index.mjs +20 -3
- package/dist/modules/authentication/dto/index.d.ts +1 -0
- package/dist/modules/authentication/dto/login.dto.d.ts +4 -0
- package/dist/modules/authentication/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
package/dist/index.d.mts
CHANGED
|
@@ -10,6 +10,11 @@ declare const AUTHENTICATION_PATTERN: {
|
|
|
10
10
|
revokeSession: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
declare class LoginDto {
|
|
14
|
+
email: string;
|
|
15
|
+
password: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
14
19
|
|
|
15
20
|
declare const UserRMQAdapter: (mode?: string) => MicroserviceOptions;
|
|
@@ -70,4 +75,4 @@ declare class User extends BaseEntity {
|
|
|
70
75
|
refreshTokens: RefreshToken[];
|
|
71
76
|
}
|
|
72
77
|
|
|
73
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, RefreshToken, User, UserRMQAdapter, UserTCPAdapter };
|
|
78
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, LoginDto, RefreshToken, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,11 @@ declare const AUTHENTICATION_PATTERN: {
|
|
|
10
10
|
revokeSession: string;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
+
declare class LoginDto {
|
|
14
|
+
email: string;
|
|
15
|
+
password: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
13
18
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
14
19
|
|
|
15
20
|
declare const UserRMQAdapter: (mode?: string) => MicroserviceOptions;
|
|
@@ -70,4 +75,4 @@ declare class User extends BaseEntity {
|
|
|
70
75
|
refreshTokens: RefreshToken[];
|
|
71
76
|
}
|
|
72
77
|
|
|
73
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, RefreshToken, User, UserRMQAdapter, UserTCPAdapter };
|
|
78
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, LoginDto, RefreshToken, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -30,6 +30,8 @@ __export(index_exports, {
|
|
|
30
30
|
AUTHENTICATION_PATTERN: () => AUTHENTICATION_PATTERN,
|
|
31
31
|
AccountStatus: () => AccountStatus,
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
|
+
BaseEntity: () => BaseEntity,
|
|
34
|
+
LoginDto: () => LoginDto,
|
|
33
35
|
RefreshToken: () => RefreshToken,
|
|
34
36
|
User: () => User,
|
|
35
37
|
UserRMQAdapter: () => UserRMQAdapter,
|
|
@@ -48,6 +50,18 @@ var AUTHENTICATION_PATTERN = {
|
|
|
48
50
|
revokeSession: "revoke.session"
|
|
49
51
|
};
|
|
50
52
|
|
|
53
|
+
// src/modules/authentication/dto/login.dto.ts
|
|
54
|
+
var import_class_validator = require("class-validator");
|
|
55
|
+
var LoginDto = class {
|
|
56
|
+
};
|
|
57
|
+
__decorateClass([
|
|
58
|
+
(0, import_class_validator.IsNotEmpty)({ message: "Please enter email." }),
|
|
59
|
+
(0, import_class_validator.IsString)({ message: "Please enter valid email." })
|
|
60
|
+
], LoginDto.prototype, "email", 2);
|
|
61
|
+
__decorateClass([
|
|
62
|
+
(0, import_class_validator.IsNotEmpty)({ message: "Please enter password." })
|
|
63
|
+
], LoginDto.prototype, "password", 2);
|
|
64
|
+
|
|
51
65
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
52
66
|
var import_dotenv = require("dotenv");
|
|
53
67
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -120,9 +134,6 @@ var UserRMQAdapter = (mode = "microservice") => {
|
|
|
120
134
|
return config3;
|
|
121
135
|
};
|
|
122
136
|
|
|
123
|
-
// src/entities/user.entity.ts
|
|
124
|
-
var import_typeorm3 = require("typeorm");
|
|
125
|
-
|
|
126
137
|
// src/entities/base.entity.ts
|
|
127
138
|
var import_typeorm = require("typeorm");
|
|
128
139
|
var BaseEntity = class {
|
|
@@ -160,6 +171,9 @@ __decorateClass([
|
|
|
160
171
|
})
|
|
161
172
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
162
173
|
|
|
174
|
+
// src/entities/user.entity.ts
|
|
175
|
+
var import_typeorm3 = require("typeorm");
|
|
176
|
+
|
|
163
177
|
// src/entities/refresh-token.entity.ts
|
|
164
178
|
var import_typeorm2 = require("typeorm");
|
|
165
179
|
var RefreshToken = class {
|
|
@@ -282,6 +296,8 @@ User = __decorateClass([
|
|
|
282
296
|
AUTHENTICATION_PATTERN,
|
|
283
297
|
AccountStatus,
|
|
284
298
|
AccountType,
|
|
299
|
+
BaseEntity,
|
|
300
|
+
LoginDto,
|
|
285
301
|
RefreshToken,
|
|
286
302
|
User,
|
|
287
303
|
UserRMQAdapter,
|
package/dist/index.mjs
CHANGED
|
@@ -20,6 +20,21 @@ var AUTHENTICATION_PATTERN = {
|
|
|
20
20
|
revokeSession: "revoke.session"
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
+
// src/modules/authentication/dto/login.dto.ts
|
|
24
|
+
import {
|
|
25
|
+
IsString,
|
|
26
|
+
IsNotEmpty
|
|
27
|
+
} from "class-validator";
|
|
28
|
+
var LoginDto = class {
|
|
29
|
+
};
|
|
30
|
+
__decorateClass([
|
|
31
|
+
IsNotEmpty({ message: "Please enter email." }),
|
|
32
|
+
IsString({ message: "Please enter valid email." })
|
|
33
|
+
], LoginDto.prototype, "email", 2);
|
|
34
|
+
__decorateClass([
|
|
35
|
+
IsNotEmpty({ message: "Please enter password." })
|
|
36
|
+
], LoginDto.prototype, "password", 2);
|
|
37
|
+
|
|
23
38
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
24
39
|
import { config } from "dotenv";
|
|
25
40
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -92,9 +107,6 @@ var UserRMQAdapter = (mode = "microservice") => {
|
|
|
92
107
|
return config3;
|
|
93
108
|
};
|
|
94
109
|
|
|
95
|
-
// src/entities/user.entity.ts
|
|
96
|
-
import { Entity as Entity2, Column as Column3, OneToMany } from "typeorm";
|
|
97
|
-
|
|
98
110
|
// src/entities/base.entity.ts
|
|
99
111
|
import {
|
|
100
112
|
CreateDateColumn,
|
|
@@ -139,6 +151,9 @@ __decorateClass([
|
|
|
139
151
|
})
|
|
140
152
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
141
153
|
|
|
154
|
+
// src/entities/user.entity.ts
|
|
155
|
+
import { Entity as Entity2, Column as Column3, OneToMany } from "typeorm";
|
|
156
|
+
|
|
142
157
|
// src/entities/refresh-token.entity.ts
|
|
143
158
|
import {
|
|
144
159
|
Entity,
|
|
@@ -268,6 +283,8 @@ export {
|
|
|
268
283
|
AUTHENTICATION_PATTERN,
|
|
269
284
|
AccountStatus,
|
|
270
285
|
AccountType,
|
|
286
|
+
BaseEntity,
|
|
287
|
+
LoginDto,
|
|
271
288
|
RefreshToken,
|
|
272
289
|
User,
|
|
273
290
|
UserRMQAdapter,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './login.dto';
|