@experts_hub/shared 1.0.37 → 1.0.38

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
@@ -33,7 +33,7 @@ declare const SUBADMIN_PATTERN: {
33
33
  fetchSubAdminDropdown: string;
34
34
  findSubAdminById: string;
35
35
  createSubAdmin: string;
36
- toggleSubAdminStatus: string;
36
+ updateSubAdminAccountStatus: string;
37
37
  updateSubAdmin: string;
38
38
  deleteSubAdmin: string;
39
39
  };
@@ -45,12 +45,13 @@ declare class CreateSubAdminDto {
45
45
  lastName: string;
46
46
  email: string;
47
47
  mobile: string;
48
+ password: string;
48
49
  accountType: string;
49
50
  accountStatus: string;
50
51
  }
51
52
 
52
- declare class ToggleSubAdminVisibilityDto {
53
- isActive: boolean;
53
+ declare class UpdateSubAdminAccountStatusDto {
54
+ accountStatus: string;
54
55
  }
55
56
 
56
57
  declare class UpdateSubAdminDto {
@@ -60,6 +61,7 @@ declare class UpdateSubAdminDto {
60
61
  lastName: string;
61
62
  email: string;
62
63
  mobile: string;
64
+ password: string;
63
65
  accountType: string;
64
66
  accountStatus: string;
65
67
  }
@@ -95,6 +97,7 @@ interface ICreateSubAdminPayload {
95
97
  lastName: string;
96
98
  email: string;
97
99
  mobile: string;
100
+ password: string;
98
101
  accountType: string;
99
102
  accountStatus: string;
100
103
  }
@@ -110,6 +113,7 @@ interface IUpdateSubAdminPayload {
110
113
  lastName: string;
111
114
  email: string;
112
115
  mobile: string;
116
+ password: string;
113
117
  accountType: string;
114
118
  accountStatus: string;
115
119
  }
@@ -118,10 +122,10 @@ interface IUpdateSubAdminResponse {
118
122
  status: boolean;
119
123
  message: string;
120
124
  }
121
- interface IToggleSubAdminVisibilityPayload {
122
- isActive: boolean;
125
+ interface IUpdateSubAdminAccountStatusPayload {
126
+ accountSatus: string;
123
127
  }
124
- interface IToggleSubAdminVisibilityResponse {
128
+ interface IUpdateSubAdminAccountStatusResponse {
125
129
  statusCode: number;
126
130
  status: boolean;
127
131
  message: string;
@@ -214,4 +218,4 @@ declare class User extends BaseEntity {
214
218
  resumeParserLogs: ResumeParserLog[];
215
219
  }
216
220
 
217
- 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, ResumeParserLog, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
221
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -33,7 +33,7 @@ declare const SUBADMIN_PATTERN: {
33
33
  fetchSubAdminDropdown: string;
34
34
  findSubAdminById: string;
35
35
  createSubAdmin: string;
36
- toggleSubAdminStatus: string;
36
+ updateSubAdminAccountStatus: string;
37
37
  updateSubAdmin: string;
38
38
  deleteSubAdmin: string;
39
39
  };
@@ -45,12 +45,13 @@ declare class CreateSubAdminDto {
45
45
  lastName: string;
46
46
  email: string;
47
47
  mobile: string;
48
+ password: string;
48
49
  accountType: string;
49
50
  accountStatus: string;
50
51
  }
51
52
 
52
- declare class ToggleSubAdminVisibilityDto {
53
- isActive: boolean;
53
+ declare class UpdateSubAdminAccountStatusDto {
54
+ accountStatus: string;
54
55
  }
55
56
 
56
57
  declare class UpdateSubAdminDto {
@@ -60,6 +61,7 @@ declare class UpdateSubAdminDto {
60
61
  lastName: string;
61
62
  email: string;
62
63
  mobile: string;
64
+ password: string;
63
65
  accountType: string;
64
66
  accountStatus: string;
65
67
  }
@@ -95,6 +97,7 @@ interface ICreateSubAdminPayload {
95
97
  lastName: string;
96
98
  email: string;
97
99
  mobile: string;
100
+ password: string;
98
101
  accountType: string;
99
102
  accountStatus: string;
100
103
  }
@@ -110,6 +113,7 @@ interface IUpdateSubAdminPayload {
110
113
  lastName: string;
111
114
  email: string;
112
115
  mobile: string;
116
+ password: string;
113
117
  accountType: string;
114
118
  accountStatus: string;
115
119
  }
@@ -118,10 +122,10 @@ interface IUpdateSubAdminResponse {
118
122
  status: boolean;
119
123
  message: string;
120
124
  }
121
- interface IToggleSubAdminVisibilityPayload {
122
- isActive: boolean;
125
+ interface IUpdateSubAdminAccountStatusPayload {
126
+ accountSatus: string;
123
127
  }
124
- interface IToggleSubAdminVisibilityResponse {
128
+ interface IUpdateSubAdminAccountStatusResponse {
125
129
  statusCode: number;
126
130
  status: boolean;
127
131
  message: string;
@@ -214,4 +218,4 @@ declare class User extends BaseEntity {
214
218
  resumeParserLogs: ResumeParserLog[];
215
219
  }
216
220
 
217
- 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, ResumeParserLog, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
221
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -41,7 +41,7 @@ __export(index_exports, {
41
41
  RefreshToken: () => RefreshToken,
42
42
  ResumeParserLog: () => ResumeParserLog,
43
43
  SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
44
- ToggleSubAdminVisibilityDto: () => ToggleSubAdminVisibilityDto,
44
+ UpdateSubAdminAccountStatusDto: () => UpdateSubAdminAccountStatusDto,
45
45
  UpdateSubAdminDto: () => UpdateSubAdminDto,
46
46
  User: () => User,
47
47
  UserRMQAdapter: () => UserRMQAdapter,
@@ -99,7 +99,7 @@ var SUBADMIN_PATTERN = {
99
99
  fetchSubAdminDropdown: "fetch.subadmin.dropdown",
100
100
  findSubAdminById: "fetch.subadmin.by.id",
101
101
  createSubAdmin: "create.subadmin",
102
- toggleSubAdminStatus: "toggle.subadmin.status",
102
+ updateSubAdminAccountStatus: "update.subadmin.account.status",
103
103
  updateSubAdmin: "update.subadmin",
104
104
  deleteSubAdmin: "delete.subadmin"
105
105
  };
@@ -127,19 +127,22 @@ __decorateClass([
127
127
  (0, import_class_validator4.IsNotEmpty)({ message: "Please enter mobile number." })
128
128
  ], CreateSubAdminDto.prototype, "mobile", 2);
129
129
  __decorateClass([
130
- (0, import_class_validator4.IsNotEmpty)({ message: "Please enter acoount type." })
130
+ (0, import_class_validator4.IsNotEmpty)({ message: "Please enter the password." })
131
+ ], CreateSubAdminDto.prototype, "password", 2);
132
+ __decorateClass([
133
+ (0, import_class_validator4.IsNotEmpty)({ message: "Please enter account type." })
131
134
  ], CreateSubAdminDto.prototype, "accountType", 2);
132
135
  __decorateClass([
133
136
  (0, import_class_validator4.IsNotEmpty)({ message: "Please enter account status." })
134
137
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
135
138
 
136
- // src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
139
+ // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
137
140
  var import_class_validator5 = require("class-validator");
138
- var ToggleSubAdminVisibilityDto = class {
141
+ var UpdateSubAdminAccountStatusDto = class {
139
142
  };
140
143
  __decorateClass([
141
- (0, import_class_validator5.IsBoolean)()
142
- ], ToggleSubAdminVisibilityDto.prototype, "isActive", 2);
144
+ (0, import_class_validator5.IsString)()
145
+ ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
143
146
 
144
147
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
145
148
  var import_class_validator6 = require("class-validator");
@@ -164,7 +167,10 @@ __decorateClass([
164
167
  (0, import_class_validator6.IsNotEmpty)({ message: "Please enter mobile number." })
165
168
  ], UpdateSubAdminDto.prototype, "mobile", 2);
166
169
  __decorateClass([
167
- (0, import_class_validator6.IsNotEmpty)({ message: "Please enter acoount type." })
170
+ (0, import_class_validator6.IsNotEmpty)({ message: "Please enter the password." })
171
+ ], UpdateSubAdminDto.prototype, "password", 2);
172
+ __decorateClass([
173
+ (0, import_class_validator6.IsNotEmpty)({ message: "Please enter account type." })
168
174
  ], UpdateSubAdminDto.prototype, "accountType", 2);
169
175
  __decorateClass([
170
176
  (0, import_class_validator6.IsNotEmpty)({ message: "Please enter account status." })
@@ -526,7 +532,7 @@ User = __decorateClass([
526
532
  RefreshToken,
527
533
  ResumeParserLog,
528
534
  SUBADMIN_PATTERN,
529
- ToggleSubAdminVisibilityDto,
535
+ UpdateSubAdminAccountStatusDto,
530
536
  UpdateSubAdminDto,
531
537
  User,
532
538
  UserRMQAdapter,
package/dist/index.mjs CHANGED
@@ -65,7 +65,7 @@ var SUBADMIN_PATTERN = {
65
65
  fetchSubAdminDropdown: "fetch.subadmin.dropdown",
66
66
  findSubAdminById: "fetch.subadmin.by.id",
67
67
  createSubAdmin: "create.subadmin",
68
- toggleSubAdminStatus: "toggle.subadmin.status",
68
+ updateSubAdminAccountStatus: "update.subadmin.account.status",
69
69
  updateSubAdmin: "update.subadmin",
70
70
  deleteSubAdmin: "delete.subadmin"
71
71
  };
@@ -95,19 +95,22 @@ __decorateClass([
95
95
  IsNotEmpty4({ message: "Please enter mobile number." })
96
96
  ], CreateSubAdminDto.prototype, "mobile", 2);
97
97
  __decorateClass([
98
- IsNotEmpty4({ message: "Please enter acoount type." })
98
+ IsNotEmpty4({ message: "Please enter the password." })
99
+ ], CreateSubAdminDto.prototype, "password", 2);
100
+ __decorateClass([
101
+ IsNotEmpty4({ message: "Please enter account type." })
99
102
  ], CreateSubAdminDto.prototype, "accountType", 2);
100
103
  __decorateClass([
101
104
  IsNotEmpty4({ message: "Please enter account status." })
102
105
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
103
106
 
104
- // src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
105
- import { IsBoolean as IsBoolean2 } from "class-validator";
106
- var ToggleSubAdminVisibilityDto = class {
107
+ // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
108
+ import { IsString } from "class-validator";
109
+ var UpdateSubAdminAccountStatusDto = class {
107
110
  };
108
111
  __decorateClass([
109
- IsBoolean2()
110
- ], ToggleSubAdminVisibilityDto.prototype, "isActive", 2);
112
+ IsString()
113
+ ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
111
114
 
112
115
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
113
116
  import { IsNotEmpty as IsNotEmpty5 } from "class-validator";
@@ -132,7 +135,10 @@ __decorateClass([
132
135
  IsNotEmpty5({ message: "Please enter mobile number." })
133
136
  ], UpdateSubAdminDto.prototype, "mobile", 2);
134
137
  __decorateClass([
135
- IsNotEmpty5({ message: "Please enter acoount type." })
138
+ IsNotEmpty5({ message: "Please enter the password." })
139
+ ], UpdateSubAdminDto.prototype, "password", 2);
140
+ __decorateClass([
141
+ IsNotEmpty5({ message: "Please enter account type." })
136
142
  ], UpdateSubAdminDto.prototype, "accountType", 2);
137
143
  __decorateClass([
138
144
  IsNotEmpty5({ message: "Please enter account status." })
@@ -515,7 +521,7 @@ export {
515
521
  RefreshToken,
516
522
  ResumeParserLog,
517
523
  SUBADMIN_PATTERN,
518
- ToggleSubAdminVisibilityDto,
524
+ UpdateSubAdminAccountStatusDto,
519
525
  UpdateSubAdminDto,
520
526
  User,
521
527
  UserRMQAdapter,
@@ -5,6 +5,7 @@ export declare class CreateSubAdminDto {
5
5
  lastName: string;
6
6
  email: string;
7
7
  mobile: string;
8
+ password: string;
8
9
  accountType: string;
9
10
  accountStatus: string;
10
11
  }
@@ -1,3 +1,3 @@
1
1
  export * from '../dto/create-subadmin.dto';
2
- export * from '../dto/toggle-subadmin-visibility.dto';
2
+ export * from './update-subadmin-status.dto';
3
3
  export * from '../dto/update-subadmin.dto';
@@ -0,0 +1,3 @@
1
+ export declare class UpdateSubAdminAccountStatusDto {
2
+ accountStatus: string;
3
+ }
@@ -5,6 +5,7 @@ export declare class UpdateSubAdminDto {
5
5
  lastName: string;
6
6
  email: string;
7
7
  mobile: string;
8
+ password: string;
8
9
  accountType: string;
9
10
  accountStatus: string;
10
11
  }
@@ -4,7 +4,7 @@ export declare const SUBADMIN_PATTERN: {
4
4
  fetchSubAdminDropdown: string;
5
5
  findSubAdminById: string;
6
6
  createSubAdmin: string;
7
- toggleSubAdminStatus: string;
7
+ updateSubAdminAccountStatus: string;
8
8
  updateSubAdmin: string;
9
9
  deleteSubAdmin: string;
10
10
  };
@@ -29,6 +29,7 @@ export interface ICreateSubAdminPayload {
29
29
  lastName: string;
30
30
  email: string;
31
31
  mobile: string;
32
+ password: string;
32
33
  accountType: string;
33
34
  accountStatus: string;
34
35
  }
@@ -44,6 +45,7 @@ export interface IUpdateSubAdminPayload {
44
45
  lastName: string;
45
46
  email: string;
46
47
  mobile: string;
48
+ password: string;
47
49
  accountType: string;
48
50
  accountStatus: string;
49
51
  }
@@ -52,10 +54,10 @@ export interface IUpdateSubAdminResponse {
52
54
  status: boolean;
53
55
  message: string;
54
56
  }
55
- export interface IToggleSubAdminVisibilityPayload {
56
- isActive: boolean;
57
+ export interface IUpdateSubAdminAccountStatusPayload {
58
+ accountSatus: string;
57
59
  }
58
- export interface IToggleSubAdminVisibilityResponse {
60
+ export interface IUpdateSubAdminAccountStatusResponse {
59
61
  statusCode: number;
60
62
  status: boolean;
61
63
  message: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -1,3 +0,0 @@
1
- export declare class ToggleSubAdminVisibilityDto {
2
- isActive: boolean;
3
- }