@experts_hub/shared 1.0.33 → 1.0.34

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/index.d.mts CHANGED
@@ -38,12 +38,15 @@ declare const SUBADMIN_PATTERN: {
38
38
  deleteSubAdmin: string;
39
39
  };
40
40
 
41
- declare class SubAdminDto {
41
+ declare class CreateSubAdminDto {
42
+ uniqueId: string;
43
+ userName: string;
42
44
  firstName: string;
43
45
  lastName: string;
44
46
  email: string;
45
47
  mobile: string;
46
- isActive: boolean;
48
+ accountType: string;
49
+ accountStatus: string;
47
50
  }
48
51
 
49
52
  declare class ToggleSubAdminVisibilityDto {
@@ -51,11 +54,14 @@ declare class ToggleSubAdminVisibilityDto {
51
54
  }
52
55
 
53
56
  declare class UpdateSubAdminDto {
57
+ uniqueId: string;
58
+ userName: string;
54
59
  firstName: string;
55
60
  lastName: string;
56
61
  email: string;
57
62
  mobile: string;
58
- isActive: boolean;
63
+ accountType: string;
64
+ accountStatus: string;
59
65
  }
60
66
 
61
67
  interface IFetchSubAdminQuery {
@@ -189,4 +195,4 @@ declare class User extends BaseEntity {
189
195
  refreshTokens: RefreshToken[];
190
196
  }
191
197
 
192
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, SUBADMIN_PATTERN, SubAdminDto, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
198
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -38,12 +38,15 @@ declare const SUBADMIN_PATTERN: {
38
38
  deleteSubAdmin: string;
39
39
  };
40
40
 
41
- declare class SubAdminDto {
41
+ declare class CreateSubAdminDto {
42
+ uniqueId: string;
43
+ userName: string;
42
44
  firstName: string;
43
45
  lastName: string;
44
46
  email: string;
45
47
  mobile: string;
46
- isActive: boolean;
48
+ accountType: string;
49
+ accountStatus: string;
47
50
  }
48
51
 
49
52
  declare class ToggleSubAdminVisibilityDto {
@@ -51,11 +54,14 @@ declare class ToggleSubAdminVisibilityDto {
51
54
  }
52
55
 
53
56
  declare class UpdateSubAdminDto {
57
+ uniqueId: string;
58
+ userName: string;
54
59
  firstName: string;
55
60
  lastName: string;
56
61
  email: string;
57
62
  mobile: string;
58
- isActive: boolean;
63
+ accountType: string;
64
+ accountStatus: string;
59
65
  }
60
66
 
61
67
  interface IFetchSubAdminQuery {
@@ -189,4 +195,4 @@ declare class User extends BaseEntity {
189
195
  refreshTokens: RefreshToken[];
190
196
  }
191
197
 
192
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, SUBADMIN_PATTERN, SubAdminDto, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
198
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -31,6 +31,7 @@ __export(index_exports, {
31
31
  AccountStatus: () => AccountStatus,
32
32
  AccountType: () => AccountType,
33
33
  BaseEntity: () => BaseEntity,
34
+ CreateSubAdminDto: () => CreateSubAdminDto,
34
35
  JobRMQAdapter: () => JobRMQAdapter,
35
36
  JobTCPAdapter: () => JobTCPAdapter,
36
37
  LoginDto: () => LoginDto,
@@ -39,7 +40,6 @@ __export(index_exports, {
39
40
  RefreshDto: () => RefreshDto,
40
41
  RefreshToken: () => RefreshToken,
41
42
  SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
42
- SubAdminDto: () => SubAdminDto,
43
43
  ToggleSubAdminVisibilityDto: () => ToggleSubAdminVisibilityDto,
44
44
  UpdateSubAdminDto: () => UpdateSubAdminDto,
45
45
  User: () => User,
@@ -105,24 +105,32 @@ var SUBADMIN_PATTERN = {
105
105
 
106
106
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
107
107
  var import_class_validator4 = require("class-validator");
108
- var SubAdminDto = class {
108
+ var CreateSubAdminDto = class {
109
109
  };
110
+ __decorateClass([
111
+ (0, import_class_validator4.IsNotEmpty)({ message: "Please enter unique id." })
112
+ ], CreateSubAdminDto.prototype, "uniqueId", 2);
113
+ __decorateClass([
114
+ (0, import_class_validator4.IsNotEmpty)({ message: "Please enter username." })
115
+ ], CreateSubAdminDto.prototype, "userName", 2);
110
116
  __decorateClass([
111
117
  (0, import_class_validator4.IsNotEmpty)({ message: "Please enter first name." })
112
- ], SubAdminDto.prototype, "firstName", 2);
118
+ ], CreateSubAdminDto.prototype, "firstName", 2);
113
119
  __decorateClass([
114
120
  (0, import_class_validator4.IsNotEmpty)({ message: "Please enter last name." })
115
- ], SubAdminDto.prototype, "lastName", 2);
121
+ ], CreateSubAdminDto.prototype, "lastName", 2);
116
122
  __decorateClass([
117
123
  (0, import_class_validator4.IsNotEmpty)({ message: "Please enter email." })
118
- ], SubAdminDto.prototype, "email", 2);
124
+ ], CreateSubAdminDto.prototype, "email", 2);
119
125
  __decorateClass([
120
126
  (0, import_class_validator4.IsNotEmpty)({ message: "Please enter mobile number." })
121
- ], SubAdminDto.prototype, "mobile", 2);
127
+ ], CreateSubAdminDto.prototype, "mobile", 2);
128
+ __decorateClass([
129
+ (0, import_class_validator4.IsNotEmpty)({ message: "Please enter acoount type." })
130
+ ], CreateSubAdminDto.prototype, "accountType", 2);
122
131
  __decorateClass([
123
- (0, import_class_validator4.IsOptional)(),
124
- (0, import_class_validator4.IsBoolean)({ message: "Is active must be a boolean value" })
125
- ], SubAdminDto.prototype, "isActive", 2);
132
+ (0, import_class_validator4.IsNotEmpty)({ message: "Please enter account status." })
133
+ ], CreateSubAdminDto.prototype, "accountStatus", 2);
126
134
 
127
135
  // src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
128
136
  var import_class_validator5 = require("class-validator");
@@ -136,6 +144,12 @@ __decorateClass([
136
144
  var import_class_validator6 = require("class-validator");
137
145
  var UpdateSubAdminDto = class {
138
146
  };
147
+ __decorateClass([
148
+ (0, import_class_validator6.IsNotEmpty)({ message: "Please enter unique id." })
149
+ ], UpdateSubAdminDto.prototype, "uniqueId", 2);
150
+ __decorateClass([
151
+ (0, import_class_validator6.IsNotEmpty)({ message: "Please enter username." })
152
+ ], UpdateSubAdminDto.prototype, "userName", 2);
139
153
  __decorateClass([
140
154
  (0, import_class_validator6.IsNotEmpty)({ message: "Please enter first name." })
141
155
  ], UpdateSubAdminDto.prototype, "firstName", 2);
@@ -149,9 +163,11 @@ __decorateClass([
149
163
  (0, import_class_validator6.IsNotEmpty)({ message: "Please enter mobile number." })
150
164
  ], UpdateSubAdminDto.prototype, "mobile", 2);
151
165
  __decorateClass([
152
- (0, import_class_validator6.IsOptional)(),
153
- (0, import_class_validator6.IsBoolean)({ message: "Is active must be a boolean value" })
154
- ], UpdateSubAdminDto.prototype, "isActive", 2);
166
+ (0, import_class_validator6.IsNotEmpty)({ message: "Please enter acoount type." })
167
+ ], UpdateSubAdminDto.prototype, "accountType", 2);
168
+ __decorateClass([
169
+ (0, import_class_validator6.IsNotEmpty)({ message: "Please enter account status." })
170
+ ], UpdateSubAdminDto.prototype, "accountStatus", 2);
155
171
 
156
172
  // src/adapters/tcp/user.tcp.adapter.ts
157
173
  var import_dotenv = require("dotenv");
@@ -460,6 +476,7 @@ User = __decorateClass([
460
476
  AccountStatus,
461
477
  AccountType,
462
478
  BaseEntity,
479
+ CreateSubAdminDto,
463
480
  JobRMQAdapter,
464
481
  JobTCPAdapter,
465
482
  LoginDto,
@@ -468,7 +485,6 @@ User = __decorateClass([
468
485
  RefreshDto,
469
486
  RefreshToken,
470
487
  SUBADMIN_PATTERN,
471
- SubAdminDto,
472
488
  ToggleSubAdminVisibilityDto,
473
489
  UpdateSubAdminDto,
474
490
  User,
package/dist/index.mjs CHANGED
@@ -72,28 +72,34 @@ var SUBADMIN_PATTERN = {
72
72
 
73
73
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
74
74
  import {
75
- IsNotEmpty as IsNotEmpty4,
76
- IsOptional,
77
- IsBoolean
75
+ IsNotEmpty as IsNotEmpty4
78
76
  } from "class-validator";
79
- var SubAdminDto = class {
77
+ var CreateSubAdminDto = class {
80
78
  };
79
+ __decorateClass([
80
+ IsNotEmpty4({ message: "Please enter unique id." })
81
+ ], CreateSubAdminDto.prototype, "uniqueId", 2);
82
+ __decorateClass([
83
+ IsNotEmpty4({ message: "Please enter username." })
84
+ ], CreateSubAdminDto.prototype, "userName", 2);
81
85
  __decorateClass([
82
86
  IsNotEmpty4({ message: "Please enter first name." })
83
- ], SubAdminDto.prototype, "firstName", 2);
87
+ ], CreateSubAdminDto.prototype, "firstName", 2);
84
88
  __decorateClass([
85
89
  IsNotEmpty4({ message: "Please enter last name." })
86
- ], SubAdminDto.prototype, "lastName", 2);
90
+ ], CreateSubAdminDto.prototype, "lastName", 2);
87
91
  __decorateClass([
88
92
  IsNotEmpty4({ message: "Please enter email." })
89
- ], SubAdminDto.prototype, "email", 2);
93
+ ], CreateSubAdminDto.prototype, "email", 2);
90
94
  __decorateClass([
91
95
  IsNotEmpty4({ message: "Please enter mobile number." })
92
- ], SubAdminDto.prototype, "mobile", 2);
96
+ ], CreateSubAdminDto.prototype, "mobile", 2);
97
+ __decorateClass([
98
+ IsNotEmpty4({ message: "Please enter acoount type." })
99
+ ], CreateSubAdminDto.prototype, "accountType", 2);
93
100
  __decorateClass([
94
- IsOptional(),
95
- IsBoolean({ message: "Is active must be a boolean value" })
96
- ], SubAdminDto.prototype, "isActive", 2);
101
+ IsNotEmpty4({ message: "Please enter account status." })
102
+ ], CreateSubAdminDto.prototype, "accountStatus", 2);
97
103
 
98
104
  // src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
99
105
  import { IsBoolean as IsBoolean2 } from "class-validator";
@@ -104,9 +110,15 @@ __decorateClass([
104
110
  ], ToggleSubAdminVisibilityDto.prototype, "isActive", 2);
105
111
 
106
112
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
107
- import { IsBoolean as IsBoolean3, IsNotEmpty as IsNotEmpty5, IsOptional as IsOptional2 } from "class-validator";
113
+ import { IsNotEmpty as IsNotEmpty5 } from "class-validator";
108
114
  var UpdateSubAdminDto = class {
109
115
  };
116
+ __decorateClass([
117
+ IsNotEmpty5({ message: "Please enter unique id." })
118
+ ], UpdateSubAdminDto.prototype, "uniqueId", 2);
119
+ __decorateClass([
120
+ IsNotEmpty5({ message: "Please enter username." })
121
+ ], UpdateSubAdminDto.prototype, "userName", 2);
110
122
  __decorateClass([
111
123
  IsNotEmpty5({ message: "Please enter first name." })
112
124
  ], UpdateSubAdminDto.prototype, "firstName", 2);
@@ -120,9 +132,11 @@ __decorateClass([
120
132
  IsNotEmpty5({ message: "Please enter mobile number." })
121
133
  ], UpdateSubAdminDto.prototype, "mobile", 2);
122
134
  __decorateClass([
123
- IsOptional2(),
124
- IsBoolean3({ message: "Is active must be a boolean value" })
125
- ], UpdateSubAdminDto.prototype, "isActive", 2);
135
+ IsNotEmpty5({ message: "Please enter acoount type." })
136
+ ], UpdateSubAdminDto.prototype, "accountType", 2);
137
+ __decorateClass([
138
+ IsNotEmpty5({ message: "Please enter account status." })
139
+ ], UpdateSubAdminDto.prototype, "accountStatus", 2);
126
140
 
127
141
  // src/adapters/tcp/user.tcp.adapter.ts
128
142
  import { config } from "dotenv";
@@ -445,6 +459,7 @@ export {
445
459
  AccountStatus,
446
460
  AccountType,
447
461
  BaseEntity,
462
+ CreateSubAdminDto,
448
463
  JobRMQAdapter,
449
464
  JobTCPAdapter,
450
465
  LoginDto,
@@ -453,7 +468,6 @@ export {
453
468
  RefreshDto,
454
469
  RefreshToken,
455
470
  SUBADMIN_PATTERN,
456
- SubAdminDto,
457
471
  ToggleSubAdminVisibilityDto,
458
472
  UpdateSubAdminDto,
459
473
  User,
@@ -1,7 +1,10 @@
1
- export declare class SubAdminDto {
1
+ export declare class CreateSubAdminDto {
2
+ uniqueId: string;
3
+ userName: string;
2
4
  firstName: string;
3
5
  lastName: string;
4
6
  email: string;
5
7
  mobile: string;
6
- isActive: boolean;
8
+ accountType: string;
9
+ accountStatus: string;
7
10
  }
@@ -1,7 +1,10 @@
1
1
  export declare class UpdateSubAdminDto {
2
+ uniqueId: string;
3
+ userName: string;
2
4
  firstName: string;
3
5
  lastName: string;
4
6
  email: string;
5
7
  mobile: string;
6
- isActive: boolean;
8
+ accountType: string;
9
+ accountStatus: string;
7
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",