@experts_hub/shared 1.0.59 → 1.0.61
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 +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +67 -42
- package/dist/index.mjs +63 -34
- package/dist/modules/onboarding/dto/client-profile-question.dto.d.ts +5 -0
- package/dist/modules/onboarding/dto/client.create-accout.dto.d.ts +7 -0
- package/dist/modules/onboarding/dto/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -62,6 +62,12 @@ declare class FreelancerProfileQuestionDto {
|
|
|
62
62
|
answer: any;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
declare class ClientProfileQuestionDto {
|
|
66
|
+
uuid: string;
|
|
67
|
+
question_slug: string;
|
|
68
|
+
answer: any;
|
|
69
|
+
}
|
|
70
|
+
|
|
65
71
|
declare class FreelancerWorkShowcaseDto {
|
|
66
72
|
uuid: string;
|
|
67
73
|
linkedinProfileLink: string;
|
|
@@ -385,4 +391,4 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
385
391
|
foundUsOn: FromUsOn;
|
|
386
392
|
}
|
|
387
393
|
|
|
388
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
394
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -62,6 +62,12 @@ declare class FreelancerProfileQuestionDto {
|
|
|
62
62
|
answer: any;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
declare class ClientProfileQuestionDto {
|
|
66
|
+
uuid: string;
|
|
67
|
+
question_slug: string;
|
|
68
|
+
answer: any;
|
|
69
|
+
}
|
|
70
|
+
|
|
65
71
|
declare class FreelancerWorkShowcaseDto {
|
|
66
72
|
uuid: string;
|
|
67
73
|
linkedinProfileLink: string;
|
|
@@ -385,4 +391,4 @@ declare class CompanyProfile extends BaseEntity {
|
|
|
385
391
|
foundUsOn: FromUsOn;
|
|
386
392
|
}
|
|
387
393
|
|
|
388
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
394
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, ClientProfileQuestionDto, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerCreateAccountDto, FreelancerDevelopmentPreferenceDto, FreelancerProfile, FreelancerProfileQuestionDto, FreelancerUploadResumeDto, FreelancerWorkShowcaseDto, FromUsOn, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, KindOfHire, LoginDto, LogoutDto, ModeOfHire, ModeOfWork, NatureOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, 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
|
+
ClientProfileQuestionDto: () => ClientProfileQuestionDto,
|
|
34
35
|
CompanyProfile: () => CompanyProfile,
|
|
35
36
|
CreateQuestionDto: () => CreateQuestionDto,
|
|
36
37
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
@@ -228,34 +229,57 @@ __decorateClass([
|
|
|
228
229
|
(0, import_class_validator8.IsNotEmpty)({ message: "Please enter answer." })
|
|
229
230
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
230
231
|
|
|
231
|
-
// src/modules/onboarding/dto/
|
|
232
|
+
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
232
233
|
var import_class_validator9 = require("class-validator");
|
|
233
|
-
var
|
|
234
|
+
var ClientProfileQuestionDto = class {
|
|
234
235
|
};
|
|
235
236
|
__decorateClass([
|
|
236
237
|
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
237
238
|
(0, import_class_validator9.IsUUID)()
|
|
238
|
-
],
|
|
239
|
+
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
239
240
|
__decorateClass([
|
|
240
|
-
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter
|
|
241
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter question slug." }),
|
|
241
242
|
(0, import_class_validator9.IsString)(),
|
|
242
|
-
(0, import_class_validator9.
|
|
243
|
+
(0, import_class_validator9.IsIn)([
|
|
244
|
+
"skills",
|
|
245
|
+
"requiredFreelancer",
|
|
246
|
+
"kindOfHiring",
|
|
247
|
+
"modeOfHire",
|
|
248
|
+
"foundUsOn"
|
|
249
|
+
])
|
|
250
|
+
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
251
|
+
__decorateClass([
|
|
252
|
+
(0, import_class_validator9.IsNotEmpty)({ message: "Please enter answer." })
|
|
253
|
+
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
254
|
+
|
|
255
|
+
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
256
|
+
var import_class_validator10 = require("class-validator");
|
|
257
|
+
var FreelancerWorkShowcaseDto = class {
|
|
258
|
+
};
|
|
259
|
+
__decorateClass([
|
|
260
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter uuid." }),
|
|
261
|
+
(0, import_class_validator10.IsUUID)()
|
|
262
|
+
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
263
|
+
__decorateClass([
|
|
264
|
+
(0, import_class_validator10.IsNotEmpty)({ message: "Please enter likedin profile url." }),
|
|
265
|
+
(0, import_class_validator10.IsString)(),
|
|
266
|
+
(0, import_class_validator10.IsUrl)({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
243
267
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
244
268
|
__decorateClass([
|
|
245
|
-
(0,
|
|
246
|
-
(0,
|
|
269
|
+
(0, import_class_validator10.IsOptional)(),
|
|
270
|
+
(0, import_class_validator10.IsUrl)({ require_protocol: true }, { message: "kaggleProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
247
271
|
], FreelancerWorkShowcaseDto.prototype, "kaggleProfileLink", 2);
|
|
248
272
|
__decorateClass([
|
|
249
|
-
(0,
|
|
250
|
-
(0,
|
|
273
|
+
(0, import_class_validator10.IsOptional)(),
|
|
274
|
+
(0, import_class_validator10.IsUrl)({ require_protocol: true }, { message: "githubProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
251
275
|
], FreelancerWorkShowcaseDto.prototype, "githubProfileLink", 2);
|
|
252
276
|
__decorateClass([
|
|
253
|
-
(0,
|
|
254
|
-
(0,
|
|
277
|
+
(0, import_class_validator10.IsOptional)(),
|
|
278
|
+
(0, import_class_validator10.IsUrl)({ require_protocol: true }, { message: "stackOverflowProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
255
279
|
], FreelancerWorkShowcaseDto.prototype, "stackOverflowProfileLink", 2);
|
|
256
280
|
__decorateClass([
|
|
257
|
-
(0,
|
|
258
|
-
(0,
|
|
281
|
+
(0, import_class_validator10.IsOptional)(),
|
|
282
|
+
(0, import_class_validator10.IsUrl)({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
|
|
259
283
|
], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
|
|
260
284
|
|
|
261
285
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
@@ -276,75 +300,75 @@ var SUBADMIN_PATTERN = {
|
|
|
276
300
|
};
|
|
277
301
|
|
|
278
302
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
279
|
-
var
|
|
303
|
+
var import_class_validator11 = require("class-validator");
|
|
280
304
|
var CreateSubAdminDto = class {
|
|
281
305
|
};
|
|
282
306
|
__decorateClass([
|
|
283
|
-
(0,
|
|
307
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter unique id." })
|
|
284
308
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
285
309
|
__decorateClass([
|
|
286
|
-
(0,
|
|
310
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter username." })
|
|
287
311
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
288
312
|
__decorateClass([
|
|
289
|
-
(0,
|
|
313
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter first name." })
|
|
290
314
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
291
315
|
__decorateClass([
|
|
292
|
-
(0,
|
|
316
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter last name." })
|
|
293
317
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
294
318
|
__decorateClass([
|
|
295
|
-
(0,
|
|
319
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter email." })
|
|
296
320
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
297
321
|
__decorateClass([
|
|
298
|
-
(0,
|
|
322
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
299
323
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
300
324
|
__decorateClass([
|
|
301
|
-
(0,
|
|
325
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter the password." })
|
|
302
326
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
303
327
|
__decorateClass([
|
|
304
|
-
(0,
|
|
328
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter account type." })
|
|
305
329
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
306
330
|
__decorateClass([
|
|
307
|
-
(0,
|
|
331
|
+
(0, import_class_validator11.IsNotEmpty)({ message: "Please enter account status." })
|
|
308
332
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
309
333
|
|
|
310
334
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
311
|
-
var
|
|
335
|
+
var import_class_validator12 = require("class-validator");
|
|
312
336
|
var UpdateSubAdminAccountStatusDto = class {
|
|
313
337
|
};
|
|
314
338
|
__decorateClass([
|
|
315
|
-
(0,
|
|
339
|
+
(0, import_class_validator12.IsString)()
|
|
316
340
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
317
341
|
|
|
318
342
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
319
|
-
var
|
|
343
|
+
var import_class_validator13 = require("class-validator");
|
|
320
344
|
var UpdateSubAdminDto = class {
|
|
321
345
|
};
|
|
322
346
|
__decorateClass([
|
|
323
|
-
(0,
|
|
347
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter unique id." })
|
|
324
348
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
325
349
|
__decorateClass([
|
|
326
|
-
(0,
|
|
350
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter username." })
|
|
327
351
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
328
352
|
__decorateClass([
|
|
329
|
-
(0,
|
|
353
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter first name." })
|
|
330
354
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
331
355
|
__decorateClass([
|
|
332
|
-
(0,
|
|
356
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter last name." })
|
|
333
357
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
334
358
|
__decorateClass([
|
|
335
|
-
(0,
|
|
359
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter email." })
|
|
336
360
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
337
361
|
__decorateClass([
|
|
338
|
-
(0,
|
|
362
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
339
363
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
340
364
|
__decorateClass([
|
|
341
|
-
(0,
|
|
365
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter the password." })
|
|
342
366
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
343
367
|
__decorateClass([
|
|
344
|
-
(0,
|
|
368
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter account type." })
|
|
345
369
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
346
370
|
__decorateClass([
|
|
347
|
-
(0,
|
|
371
|
+
(0, import_class_validator13.IsNotEmpty)({ message: "Please enter account status." })
|
|
348
372
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
349
373
|
|
|
350
374
|
// src/modules/question/pattern/pattern.ts
|
|
@@ -353,24 +377,24 @@ var QUESTION_PATTERN = {
|
|
|
353
377
|
};
|
|
354
378
|
|
|
355
379
|
// src/modules/question/dto/create-question.dto.ts
|
|
356
|
-
var
|
|
380
|
+
var import_class_validator14 = require("class-validator");
|
|
357
381
|
var CreateQuestionDto = class {
|
|
358
382
|
};
|
|
359
383
|
__decorateClass([
|
|
360
|
-
(0,
|
|
384
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter unique id." })
|
|
361
385
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
362
386
|
__decorateClass([
|
|
363
|
-
(0,
|
|
387
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter question." })
|
|
364
388
|
], CreateQuestionDto.prototype, "question", 2);
|
|
365
389
|
__decorateClass([
|
|
366
|
-
(0,
|
|
390
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter for whom the question is." })
|
|
367
391
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
368
392
|
__decorateClass([
|
|
369
|
-
(0,
|
|
393
|
+
(0, import_class_validator14.IsNotEmpty)({ message: "Please enter options." })
|
|
370
394
|
], CreateQuestionDto.prototype, "options", 2);
|
|
371
395
|
__decorateClass([
|
|
372
|
-
(0,
|
|
373
|
-
(0,
|
|
396
|
+
(0, import_class_validator14.IsOptional)(),
|
|
397
|
+
(0, import_class_validator14.IsBoolean)({ message: "Whether the question status active" })
|
|
374
398
|
], CreateQuestionDto.prototype, "isActive", 2);
|
|
375
399
|
|
|
376
400
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
@@ -977,6 +1001,7 @@ CompanyProfile = __decorateClass([
|
|
|
977
1001
|
AccountStatus,
|
|
978
1002
|
AccountType,
|
|
979
1003
|
BaseEntity,
|
|
1004
|
+
ClientProfileQuestionDto,
|
|
980
1005
|
CompanyProfile,
|
|
981
1006
|
CreateQuestionDto,
|
|
982
1007
|
CreateSubAdminDto,
|
package/dist/index.mjs
CHANGED
|
@@ -189,23 +189,51 @@ __decorateClass([
|
|
|
189
189
|
IsNotEmpty7({ message: "Please enter answer." })
|
|
190
190
|
], FreelancerProfileQuestionDto.prototype, "answer", 2);
|
|
191
191
|
|
|
192
|
-
// src/modules/onboarding/dto/
|
|
192
|
+
// src/modules/onboarding/dto/client-profile-question.dto.ts
|
|
193
193
|
import {
|
|
194
|
+
IsUUID as IsUUID4,
|
|
195
|
+
IsString as IsString3,
|
|
194
196
|
IsNotEmpty as IsNotEmpty8,
|
|
197
|
+
IsIn as IsIn2
|
|
198
|
+
} from "class-validator";
|
|
199
|
+
var ClientProfileQuestionDto = class {
|
|
200
|
+
};
|
|
201
|
+
__decorateClass([
|
|
202
|
+
IsNotEmpty8({ message: "Please enter uuid." }),
|
|
203
|
+
IsUUID4()
|
|
204
|
+
], ClientProfileQuestionDto.prototype, "uuid", 2);
|
|
205
|
+
__decorateClass([
|
|
206
|
+
IsNotEmpty8({ message: "Please enter question slug." }),
|
|
207
|
+
IsString3(),
|
|
208
|
+
IsIn2([
|
|
209
|
+
"skills",
|
|
210
|
+
"requiredFreelancer",
|
|
211
|
+
"kindOfHiring",
|
|
212
|
+
"modeOfHire",
|
|
213
|
+
"foundUsOn"
|
|
214
|
+
])
|
|
215
|
+
], ClientProfileQuestionDto.prototype, "question_slug", 2);
|
|
216
|
+
__decorateClass([
|
|
217
|
+
IsNotEmpty8({ message: "Please enter answer." })
|
|
218
|
+
], ClientProfileQuestionDto.prototype, "answer", 2);
|
|
219
|
+
|
|
220
|
+
// src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
|
|
221
|
+
import {
|
|
222
|
+
IsNotEmpty as IsNotEmpty9,
|
|
195
223
|
IsOptional,
|
|
196
224
|
IsUrl,
|
|
197
|
-
IsString as
|
|
198
|
-
IsUUID as
|
|
225
|
+
IsString as IsString4,
|
|
226
|
+
IsUUID as IsUUID5
|
|
199
227
|
} from "class-validator";
|
|
200
228
|
var FreelancerWorkShowcaseDto = class {
|
|
201
229
|
};
|
|
202
230
|
__decorateClass([
|
|
203
|
-
|
|
204
|
-
|
|
231
|
+
IsNotEmpty9({ message: "Please enter uuid." }),
|
|
232
|
+
IsUUID5()
|
|
205
233
|
], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
|
|
206
234
|
__decorateClass([
|
|
207
|
-
|
|
208
|
-
|
|
235
|
+
IsNotEmpty9({ message: "Please enter likedin profile url." }),
|
|
236
|
+
IsString4(),
|
|
209
237
|
IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
|
|
210
238
|
], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
|
|
211
239
|
__decorateClass([
|
|
@@ -244,76 +272,76 @@ var SUBADMIN_PATTERN = {
|
|
|
244
272
|
|
|
245
273
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
246
274
|
import {
|
|
247
|
-
IsNotEmpty as
|
|
275
|
+
IsNotEmpty as IsNotEmpty10
|
|
248
276
|
} from "class-validator";
|
|
249
277
|
var CreateSubAdminDto = class {
|
|
250
278
|
};
|
|
251
279
|
__decorateClass([
|
|
252
|
-
|
|
280
|
+
IsNotEmpty10({ message: "Please enter unique id." })
|
|
253
281
|
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
254
282
|
__decorateClass([
|
|
255
|
-
|
|
283
|
+
IsNotEmpty10({ message: "Please enter username." })
|
|
256
284
|
], CreateSubAdminDto.prototype, "userName", 2);
|
|
257
285
|
__decorateClass([
|
|
258
|
-
|
|
286
|
+
IsNotEmpty10({ message: "Please enter first name." })
|
|
259
287
|
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
260
288
|
__decorateClass([
|
|
261
|
-
|
|
289
|
+
IsNotEmpty10({ message: "Please enter last name." })
|
|
262
290
|
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
263
291
|
__decorateClass([
|
|
264
|
-
|
|
292
|
+
IsNotEmpty10({ message: "Please enter email." })
|
|
265
293
|
], CreateSubAdminDto.prototype, "email", 2);
|
|
266
294
|
__decorateClass([
|
|
267
|
-
|
|
295
|
+
IsNotEmpty10({ message: "Please enter mobile number." })
|
|
268
296
|
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
269
297
|
__decorateClass([
|
|
270
|
-
|
|
298
|
+
IsNotEmpty10({ message: "Please enter the password." })
|
|
271
299
|
], CreateSubAdminDto.prototype, "password", 2);
|
|
272
300
|
__decorateClass([
|
|
273
|
-
|
|
301
|
+
IsNotEmpty10({ message: "Please enter account type." })
|
|
274
302
|
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
275
303
|
__decorateClass([
|
|
276
|
-
|
|
304
|
+
IsNotEmpty10({ message: "Please enter account status." })
|
|
277
305
|
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
278
306
|
|
|
279
307
|
// src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
|
|
280
|
-
import { IsString as
|
|
308
|
+
import { IsString as IsString5 } from "class-validator";
|
|
281
309
|
var UpdateSubAdminAccountStatusDto = class {
|
|
282
310
|
};
|
|
283
311
|
__decorateClass([
|
|
284
|
-
|
|
312
|
+
IsString5()
|
|
285
313
|
], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
|
|
286
314
|
|
|
287
315
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
288
|
-
import { IsNotEmpty as
|
|
316
|
+
import { IsNotEmpty as IsNotEmpty11 } from "class-validator";
|
|
289
317
|
var UpdateSubAdminDto = class {
|
|
290
318
|
};
|
|
291
319
|
__decorateClass([
|
|
292
|
-
|
|
320
|
+
IsNotEmpty11({ message: "Please enter unique id." })
|
|
293
321
|
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
294
322
|
__decorateClass([
|
|
295
|
-
|
|
323
|
+
IsNotEmpty11({ message: "Please enter username." })
|
|
296
324
|
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
297
325
|
__decorateClass([
|
|
298
|
-
|
|
326
|
+
IsNotEmpty11({ message: "Please enter first name." })
|
|
299
327
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
300
328
|
__decorateClass([
|
|
301
|
-
|
|
329
|
+
IsNotEmpty11({ message: "Please enter last name." })
|
|
302
330
|
], UpdateSubAdminDto.prototype, "lastName", 2);
|
|
303
331
|
__decorateClass([
|
|
304
|
-
|
|
332
|
+
IsNotEmpty11({ message: "Please enter email." })
|
|
305
333
|
], UpdateSubAdminDto.prototype, "email", 2);
|
|
306
334
|
__decorateClass([
|
|
307
|
-
|
|
335
|
+
IsNotEmpty11({ message: "Please enter mobile number." })
|
|
308
336
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
309
337
|
__decorateClass([
|
|
310
|
-
|
|
338
|
+
IsNotEmpty11({ message: "Please enter the password." })
|
|
311
339
|
], UpdateSubAdminDto.prototype, "password", 2);
|
|
312
340
|
__decorateClass([
|
|
313
|
-
|
|
341
|
+
IsNotEmpty11({ message: "Please enter account type." })
|
|
314
342
|
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
315
343
|
__decorateClass([
|
|
316
|
-
|
|
344
|
+
IsNotEmpty11({ message: "Please enter account status." })
|
|
317
345
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
318
346
|
|
|
319
347
|
// src/modules/question/pattern/pattern.ts
|
|
@@ -323,23 +351,23 @@ var QUESTION_PATTERN = {
|
|
|
323
351
|
|
|
324
352
|
// src/modules/question/dto/create-question.dto.ts
|
|
325
353
|
import {
|
|
326
|
-
IsNotEmpty as
|
|
354
|
+
IsNotEmpty as IsNotEmpty12,
|
|
327
355
|
IsOptional as IsOptional4,
|
|
328
356
|
IsBoolean as IsBoolean4
|
|
329
357
|
} from "class-validator";
|
|
330
358
|
var CreateQuestionDto = class {
|
|
331
359
|
};
|
|
332
360
|
__decorateClass([
|
|
333
|
-
|
|
361
|
+
IsNotEmpty12({ message: "Please enter unique id." })
|
|
334
362
|
], CreateQuestionDto.prototype, "questionId", 2);
|
|
335
363
|
__decorateClass([
|
|
336
|
-
|
|
364
|
+
IsNotEmpty12({ message: "Please enter question." })
|
|
337
365
|
], CreateQuestionDto.prototype, "question", 2);
|
|
338
366
|
__decorateClass([
|
|
339
|
-
|
|
367
|
+
IsNotEmpty12({ message: "Please enter for whom the question is." })
|
|
340
368
|
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
341
369
|
__decorateClass([
|
|
342
|
-
|
|
370
|
+
IsNotEmpty12({ message: "Please enter options." })
|
|
343
371
|
], CreateQuestionDto.prototype, "options", 2);
|
|
344
372
|
__decorateClass([
|
|
345
373
|
IsOptional4(),
|
|
@@ -991,6 +1019,7 @@ export {
|
|
|
991
1019
|
AccountStatus,
|
|
992
1020
|
AccountType,
|
|
993
1021
|
BaseEntity,
|
|
1022
|
+
ClientProfileQuestionDto,
|
|
994
1023
|
CompanyProfile,
|
|
995
1024
|
CreateQuestionDto,
|
|
996
1025
|
CreateSubAdminDto,
|
|
@@ -2,4 +2,5 @@ export * from './freelancer-create-account.dto';
|
|
|
2
2
|
export * from './freelancer-upload-resume.dto';
|
|
3
3
|
export * from './freelancer-development-preference.dto';
|
|
4
4
|
export * from './freelancer-profile-question.dto';
|
|
5
|
+
export * from './client-profile-question.dto';
|
|
5
6
|
export * from './freelancer-work-showcase.dto';
|