@experts_hub/shared 1.0.437 → 1.0.439

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.mjs CHANGED
@@ -1273,6 +1273,10 @@ __decorateClass([
1273
1273
  __decorateClass([
1274
1274
  IsNotEmpty33({ message: "Please enter expected hourly compensation." })
1275
1275
  ], UpdateFreelancerProfileDto.prototype, "expectedHourlyCompensation", 2);
1276
+ __decorateClass([
1277
+ IsOptional15(),
1278
+ IsNotEmpty33({ message: "Please enter weekly availability hours." })
1279
+ ], UpdateFreelancerProfileDto.prototype, "numberOfHours", 2);
1276
1280
  __decorateClass([
1277
1281
  IsNotEmpty33({ message: "Please select engagement type." }),
1278
1282
  IsEnum12(NatureOfWorkDto, {
@@ -1450,17 +1454,17 @@ import {
1450
1454
  } from "class-validator";
1451
1455
 
1452
1456
  // src/entities/rating.entity.ts
1453
- import { Entity as Entity56, Column as Column57, ManyToOne as ManyToOne50, JoinColumn as JoinColumn51, Index as Index49 } from "typeorm";
1457
+ import { Entity as Entity57, Column as Column58, ManyToOne as ManyToOne51, JoinColumn as JoinColumn52, Index as Index50 } from "typeorm";
1454
1458
 
1455
1459
  // src/entities/user.entity.ts
1456
1460
  import {
1457
- Entity as Entity55,
1458
- Column as Column56,
1461
+ Entity as Entity56,
1462
+ Column as Column57,
1459
1463
  OneToMany as OneToMany19,
1460
1464
  OneToOne as OneToOne7,
1461
- Index as Index48,
1462
- ManyToOne as ManyToOne49,
1463
- JoinColumn as JoinColumn50
1465
+ Index as Index49,
1466
+ ManyToOne as ManyToOne50,
1467
+ JoinColumn as JoinColumn51
1464
1468
  } from "typeorm";
1465
1469
 
1466
1470
  // src/entities/base.entity.ts
@@ -4915,6 +4919,66 @@ Signature = __decorateClass([
4915
4919
  Entity54("signatures")
4916
4920
  ], Signature);
4917
4921
 
4922
+ // src/entities/dispute.entity.ts
4923
+ import { Entity as Entity55, Column as Column56, Index as Index48, JoinColumn as JoinColumn50, ManyToOne as ManyToOne49 } from "typeorm";
4924
+ var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
4925
+ DisputeStatusEnum2["OPEN"] = "OPEN";
4926
+ DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
4927
+ DisputeStatusEnum2["PENDING_RESPONSE"] = "PENDING_RESPONSE";
4928
+ DisputeStatusEnum2["UNDER_INVESTIGATION"] = "UNDER_INVESTIGATION";
4929
+ DisputeStatusEnum2["RESOLVED"] = "RESOLVED";
4930
+ DisputeStatusEnum2["CLOSED"] = "CLOSED";
4931
+ DisputeStatusEnum2["ESCALATED"] = "ESCALATED";
4932
+ DisputeStatusEnum2["CANCELLED"] = "CANCELLED";
4933
+ DisputeStatusEnum2["REOPENED"] = "REOPENED";
4934
+ return DisputeStatusEnum2;
4935
+ })(DisputeStatusEnum || {});
4936
+ var Dispute = class extends BaseEntity {
4937
+ };
4938
+ __decorateClass([
4939
+ Column56({ name: "dispute_unique_id", type: "varchar", unique: true })
4940
+ ], Dispute.prototype, "disputeUniqueId", 2);
4941
+ __decorateClass([
4942
+ Column56({ name: "dispute_type", type: "varchar", nullable: true }),
4943
+ Index48()
4944
+ ], Dispute.prototype, "disputeType", 2);
4945
+ __decorateClass([
4946
+ Column56({ name: "description", type: "varchar", nullable: true })
4947
+ ], Dispute.prototype, "description", 2);
4948
+ __decorateClass([
4949
+ Column56({ name: "comment", type: "varchar", nullable: true })
4950
+ ], Dispute.prototype, "comment", 2);
4951
+ __decorateClass([
4952
+ Column56({
4953
+ name: "status",
4954
+ type: "enum",
4955
+ enum: DisputeStatusEnum,
4956
+ default: "OPEN" /* OPEN */
4957
+ })
4958
+ ], Dispute.prototype, "status", 2);
4959
+ __decorateClass([
4960
+ Column56({ name: "initiator_id", type: "integer" }),
4961
+ Index48()
4962
+ ], Dispute.prototype, "initiatorId", 2);
4963
+ __decorateClass([
4964
+ ManyToOne49(() => User, (user) => user.initiatedDisputes),
4965
+ JoinColumn50({ name: "initiator_id" })
4966
+ ], Dispute.prototype, "initiator", 2);
4967
+ __decorateClass([
4968
+ Column56({ name: "respondent_id", type: "integer", nullable: true }),
4969
+ Index48()
4970
+ ], Dispute.prototype, "respondentId", 2);
4971
+ __decorateClass([
4972
+ ManyToOne49(() => User, (user) => user.respondentDisputes, { nullable: true }),
4973
+ JoinColumn50({ name: "respondent_id" })
4974
+ ], Dispute.prototype, "respondent", 2);
4975
+ __decorateClass([
4976
+ Column56({ name: "attachments", type: "jsonb", nullable: true })
4977
+ ], Dispute.prototype, "attachments", 2);
4978
+ Dispute = __decorateClass([
4979
+ Entity55("disputes")
4980
+ ], Dispute);
4981
+
4918
4982
  // src/entities/user.entity.ts
4919
4983
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
4920
4984
  AccountType2["ADMIN"] = "ADMIN";
@@ -4940,51 +5004,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
4940
5004
  var User = class extends BaseEntity {
4941
5005
  };
4942
5006
  __decorateClass([
4943
- Column56({ name: "unique_id", type: "varchar", unique: true })
5007
+ Column57({ name: "unique_id", type: "varchar", unique: true })
4944
5008
  ], User.prototype, "uniqueId", 2);
4945
5009
  __decorateClass([
4946
- Column56({ name: "parent_id", type: "integer", nullable: true }),
4947
- Index48()
5010
+ Column57({ name: "parent_id", type: "integer", nullable: true }),
5011
+ Index49()
4948
5012
  ], User.prototype, "parentId", 2);
4949
5013
  __decorateClass([
4950
- ManyToOne49(() => User, (user) => user.children, { nullable: true }),
4951
- JoinColumn50({ name: "parent_id" })
5014
+ ManyToOne50(() => User, (user) => user.children, { nullable: true }),
5015
+ JoinColumn51({ name: "parent_id" })
4952
5016
  ], User.prototype, "parent", 2);
4953
5017
  __decorateClass([
4954
5018
  OneToMany19(() => User, (user) => user.parent)
4955
5019
  ], User.prototype, "children", 2);
4956
5020
  __decorateClass([
4957
- Column56({ name: "username", type: "varchar", unique: true, nullable: true })
5021
+ Column57({ name: "username", type: "varchar", unique: true, nullable: true })
4958
5022
  ], User.prototype, "username", 2);
4959
5023
  __decorateClass([
4960
- Column56({ name: "first_name", type: "varchar", length: 100, nullable: true })
5024
+ Column57({ name: "first_name", type: "varchar", length: 100, nullable: true })
4961
5025
  ], User.prototype, "firstName", 2);
4962
5026
  __decorateClass([
4963
- Column56({ name: "last_name", type: "varchar", length: 100, nullable: true })
5027
+ Column57({ name: "last_name", type: "varchar", length: 100, nullable: true })
4964
5028
  ], User.prototype, "lastName", 2);
4965
5029
  __decorateClass([
4966
- Column56({ name: "date_of_birth", type: "date", nullable: true })
5030
+ Column57({ name: "date_of_birth", type: "date", nullable: true })
4967
5031
  ], User.prototype, "dateOfBirth", 2);
4968
5032
  __decorateClass([
4969
- Column56({ name: "gender", type: "varchar", length: 10, nullable: true })
5033
+ Column57({ name: "gender", type: "varchar", length: 10, nullable: true })
4970
5034
  ], User.prototype, "gender", 2);
4971
5035
  __decorateClass([
4972
- Column56({ name: "profile_picture_url", type: "text", nullable: true })
5036
+ Column57({ name: "profile_picture_url", type: "text", nullable: true })
4973
5037
  ], User.prototype, "profilePictureUrl", 2);
4974
5038
  __decorateClass([
4975
- Column56({ name: "email", type: "varchar", unique: true })
5039
+ Column57({ name: "email", type: "varchar", unique: true })
4976
5040
  ], User.prototype, "email", 2);
4977
5041
  __decorateClass([
4978
- Column56({ name: "mobile_code", type: "varchar", nullable: true })
5042
+ Column57({ name: "mobile_code", type: "varchar", nullable: true })
4979
5043
  ], User.prototype, "mobileCode", 2);
4980
5044
  __decorateClass([
4981
- Column56({ name: "mobile", type: "varchar", nullable: true })
5045
+ Column57({ name: "mobile", type: "varchar", nullable: true })
4982
5046
  ], User.prototype, "mobile", 2);
4983
5047
  __decorateClass([
4984
- Column56({ name: "password", type: "varchar", nullable: true })
5048
+ Column57({ name: "password", type: "varchar", nullable: true })
4985
5049
  ], User.prototype, "password", 2);
4986
5050
  __decorateClass([
4987
- Column56({
5051
+ Column57({
4988
5052
  name: "account_type",
4989
5053
  type: "enum",
4990
5054
  enum: AccountType,
@@ -4992,7 +5056,7 @@ __decorateClass([
4992
5056
  })
4993
5057
  ], User.prototype, "accountType", 2);
4994
5058
  __decorateClass([
4995
- Column56({
5059
+ Column57({
4996
5060
  name: "account_status",
4997
5061
  type: "enum",
4998
5062
  enum: AccountStatus,
@@ -5000,42 +5064,42 @@ __decorateClass([
5000
5064
  })
5001
5065
  ], User.prototype, "accountStatus", 2);
5002
5066
  __decorateClass([
5003
- Column56({ name: "is_email_verified", type: "boolean", default: false })
5067
+ Column57({ name: "is_email_verified", type: "boolean", default: false })
5004
5068
  ], User.prototype, "isEmailVerified", 2);
5005
5069
  __decorateClass([
5006
- Column56({ name: "is_mobile_verified", type: "boolean", default: false })
5070
+ Column57({ name: "is_mobile_verified", type: "boolean", default: false })
5007
5071
  ], User.prototype, "isMobileVerified", 2);
5008
5072
  __decorateClass([
5009
- Column56({ name: "is_social", type: "boolean", default: false })
5073
+ Column57({ name: "is_social", type: "boolean", default: false })
5010
5074
  ], User.prototype, "isSocial", 2);
5011
5075
  __decorateClass([
5012
- Column56({
5076
+ Column57({
5013
5077
  name: "last_login_at",
5014
5078
  type: "timestamp with time zone",
5015
5079
  nullable: true
5016
5080
  })
5017
5081
  ], User.prototype, "lastLoginAt", 2);
5018
5082
  __decorateClass([
5019
- Column56({ name: "last_login_ip", type: "varchar", nullable: true })
5083
+ Column57({ name: "last_login_ip", type: "varchar", nullable: true })
5020
5084
  ], User.prototype, "lastLoginIp", 2);
5021
5085
  __decorateClass([
5022
- Column56({ name: "reset_token", type: "varchar", nullable: true })
5086
+ Column57({ name: "reset_token", type: "varchar", nullable: true })
5023
5087
  ], User.prototype, "resetToken", 2);
5024
5088
  __decorateClass([
5025
- Column56({
5089
+ Column57({
5026
5090
  name: "reset_token_expire_at",
5027
5091
  type: "timestamp with time zone",
5028
5092
  nullable: true
5029
5093
  })
5030
5094
  ], User.prototype, "resetTokenExpireAt", 2);
5031
5095
  __decorateClass([
5032
- Column56({ name: "set_password_token", type: "varchar", nullable: true })
5096
+ Column57({ name: "set_password_token", type: "varchar", nullable: true })
5033
5097
  ], User.prototype, "setPasswordToken", 2);
5034
5098
  __decorateClass([
5035
5099
  OneToMany19(() => RefreshToken, (token) => token.user)
5036
5100
  ], User.prototype, "refreshTokens", 2);
5037
5101
  __decorateClass([
5038
- Column56({
5102
+ Column57({
5039
5103
  name: "provider",
5040
5104
  type: "enum",
5041
5105
  enum: Provider,
@@ -5044,19 +5108,19 @@ __decorateClass([
5044
5108
  })
5045
5109
  ], User.prototype, "provider", 2);
5046
5110
  __decorateClass([
5047
- Column56({ name: "provider_token", type: "varchar", nullable: true })
5111
+ Column57({ name: "provider_token", type: "varchar", nullable: true })
5048
5112
  ], User.prototype, "providerToken", 2);
5049
5113
  __decorateClass([
5050
- Column56({ name: "linkedin_id", type: "varchar", nullable: true })
5114
+ Column57({ name: "linkedin_id", type: "varchar", nullable: true })
5051
5115
  ], User.prototype, "linkedInId", 2);
5052
5116
  __decorateClass([
5053
- Column56({ name: "google_id", type: "varchar", nullable: true })
5117
+ Column57({ name: "google_id", type: "varchar", nullable: true })
5054
5118
  ], User.prototype, "googleId", 2);
5055
5119
  __decorateClass([
5056
- Column56({ name: "gitlabs_id", type: "varchar", nullable: true })
5120
+ Column57({ name: "gitlabs_id", type: "varchar", nullable: true })
5057
5121
  ], User.prototype, "gitLabsId", 2);
5058
5122
  __decorateClass([
5059
- Column56({ name: "onboarded_by", type: "varchar", nullable: true })
5123
+ Column57({ name: "onboarded_by", type: "varchar", nullable: true })
5060
5124
  ], User.prototype, "onBoardedBy", 2);
5061
5125
  __decorateClass([
5062
5126
  OneToMany19(() => Otp, (otp) => otp.user)
@@ -5220,8 +5284,14 @@ __decorateClass([
5220
5284
  __decorateClass([
5221
5285
  OneToMany19(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
5222
5286
  ], User.prototype, "clientPreferencesReceived", 2);
5287
+ __decorateClass([
5288
+ OneToMany19(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
5289
+ ], User.prototype, "initiatedDisputes", 2);
5290
+ __decorateClass([
5291
+ OneToMany19(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
5292
+ ], User.prototype, "respondentDisputes", 2);
5223
5293
  User = __decorateClass([
5224
- Entity55("users")
5294
+ Entity56("users")
5225
5295
  ], User);
5226
5296
 
5227
5297
  // src/entities/rating.entity.ts
@@ -5233,36 +5303,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
5233
5303
  var Rating = class extends BaseEntity {
5234
5304
  };
5235
5305
  __decorateClass([
5236
- Column57({ name: "reviewer_id", type: "integer" }),
5237
- Index49()
5306
+ Column58({ name: "reviewer_id", type: "integer" }),
5307
+ Index50()
5238
5308
  ], Rating.prototype, "reviewer_id", 2);
5239
5309
  __decorateClass([
5240
- ManyToOne50(() => User, { onDelete: "CASCADE" }),
5241
- JoinColumn51({ name: "reviewer_id" })
5310
+ ManyToOne51(() => User, { onDelete: "CASCADE" }),
5311
+ JoinColumn52({ name: "reviewer_id" })
5242
5312
  ], Rating.prototype, "reviewer", 2);
5243
5313
  __decorateClass([
5244
- Column57({ name: "reviewee_id", type: "integer" }),
5245
- Index49()
5314
+ Column58({ name: "reviewee_id", type: "integer" }),
5315
+ Index50()
5246
5316
  ], Rating.prototype, "reviewee_id", 2);
5247
5317
  __decorateClass([
5248
- ManyToOne50(() => User, { onDelete: "CASCADE" }),
5249
- JoinColumn51({ name: "reviewee_id" })
5318
+ ManyToOne51(() => User, { onDelete: "CASCADE" }),
5319
+ JoinColumn52({ name: "reviewee_id" })
5250
5320
  ], Rating.prototype, "reviewee", 2);
5251
5321
  __decorateClass([
5252
- Column57({
5322
+ Column58({
5253
5323
  type: "enum",
5254
5324
  enum: RatingTypeEnum,
5255
5325
  nullable: true
5256
5326
  })
5257
5327
  ], Rating.prototype, "ratingType", 2);
5258
5328
  __decorateClass([
5259
- Column57({ type: "integer", nullable: true })
5329
+ Column58({ type: "integer", nullable: true })
5260
5330
  ], Rating.prototype, "rating", 2);
5261
5331
  __decorateClass([
5262
- Column57({ type: "text", nullable: true })
5332
+ Column58({ type: "text", nullable: true })
5263
5333
  ], Rating.prototype, "review", 2);
5264
5334
  Rating = __decorateClass([
5265
- Entity56("ratings")
5335
+ Entity57("ratings")
5266
5336
  ], Rating);
5267
5337
 
5268
5338
  // src/modules/rating/dto/add.rating.dto.ts
@@ -7078,11 +7148,11 @@ var NotificationRMQAdapter = (mode = "microservice") => {
7078
7148
  };
7079
7149
 
7080
7150
  // src/entities/sequence-generator.entity.ts
7081
- import { Entity as Entity57, Column as Column58 } from "typeorm";
7151
+ import { Entity as Entity58, Column as Column59 } from "typeorm";
7082
7152
  var SequenceGenerator = class extends BaseEntity {
7083
7153
  };
7084
7154
  __decorateClass([
7085
- Column58({
7155
+ Column59({
7086
7156
  name: "module",
7087
7157
  type: "varchar",
7088
7158
  length: 50,
@@ -7091,7 +7161,7 @@ __decorateClass([
7091
7161
  })
7092
7162
  ], SequenceGenerator.prototype, "module", 2);
7093
7163
  __decorateClass([
7094
- Column58({
7164
+ Column59({
7095
7165
  name: "prefix",
7096
7166
  type: "varchar",
7097
7167
  length: 10,
@@ -7100,7 +7170,7 @@ __decorateClass([
7100
7170
  })
7101
7171
  ], SequenceGenerator.prototype, "prefix", 2);
7102
7172
  __decorateClass([
7103
- Column58({
7173
+ Column59({
7104
7174
  name: "last_sequence",
7105
7175
  type: "int",
7106
7176
  nullable: false,
@@ -7108,7 +7178,7 @@ __decorateClass([
7108
7178
  })
7109
7179
  ], SequenceGenerator.prototype, "lastSequence", 2);
7110
7180
  __decorateClass([
7111
- Column58({
7181
+ Column59({
7112
7182
  name: "year",
7113
7183
  type: "int",
7114
7184
  nullable: true,
@@ -7116,11 +7186,11 @@ __decorateClass([
7116
7186
  })
7117
7187
  ], SequenceGenerator.prototype, "year", 2);
7118
7188
  SequenceGenerator = __decorateClass([
7119
- Entity57("sequence_generators")
7189
+ Entity58("sequence_generators")
7120
7190
  ], SequenceGenerator);
7121
7191
 
7122
7192
  // src/entities/question.entity.ts
7123
- import { Entity as Entity58, Column as Column59 } from "typeorm";
7193
+ import { Entity as Entity59, Column as Column60 } from "typeorm";
7124
7194
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7125
7195
  QuestionFor2["CLIENT"] = "CLIENT";
7126
7196
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -7129,16 +7199,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
7129
7199
  var Question = class extends BaseEntity {
7130
7200
  };
7131
7201
  __decorateClass([
7132
- Column59({ name: "question", type: "varchar" })
7202
+ Column60({ name: "question", type: "varchar" })
7133
7203
  ], Question.prototype, "question", 2);
7134
7204
  __decorateClass([
7135
- Column59({ name: "hint", type: "varchar", nullable: true })
7205
+ Column60({ name: "hint", type: "varchar", nullable: true })
7136
7206
  ], Question.prototype, "hint", 2);
7137
7207
  __decorateClass([
7138
- Column59({ name: "slug", type: "varchar", nullable: true, unique: true })
7208
+ Column60({ name: "slug", type: "varchar", nullable: true, unique: true })
7139
7209
  ], Question.prototype, "slug", 2);
7140
7210
  __decorateClass([
7141
- Column59({
7211
+ Column60({
7142
7212
  name: "question_for",
7143
7213
  type: "enum",
7144
7214
  enum: QuestionFor,
@@ -7146,119 +7216,119 @@ __decorateClass([
7146
7216
  })
7147
7217
  ], Question.prototype, "questionFor", 2);
7148
7218
  __decorateClass([
7149
- Column59({ name: "type", type: "varchar", nullable: true })
7219
+ Column60({ name: "type", type: "varchar", nullable: true })
7150
7220
  ], Question.prototype, "type", 2);
7151
7221
  __decorateClass([
7152
- Column59({ name: "options", type: "jsonb", nullable: true })
7222
+ Column60({ name: "options", type: "jsonb", nullable: true })
7153
7223
  ], Question.prototype, "options", 2);
7154
7224
  __decorateClass([
7155
- Column59({ name: "is_active", type: "boolean", default: false })
7225
+ Column60({ name: "is_active", type: "boolean", default: false })
7156
7226
  ], Question.prototype, "isActive", 2);
7157
7227
  Question = __decorateClass([
7158
- Entity58("questions")
7228
+ Entity59("questions")
7159
7229
  ], Question);
7160
7230
 
7161
7231
  // src/entities/skill.entity.ts
7162
- import { Entity as Entity59, Column as Column60 } from "typeorm";
7232
+ import { Entity as Entity60, Column as Column61 } from "typeorm";
7163
7233
  var Skill = class extends BaseEntity {
7164
7234
  };
7165
7235
  __decorateClass([
7166
- Column60({ name: "name", type: "varchar", nullable: true })
7236
+ Column61({ name: "name", type: "varchar", nullable: true })
7167
7237
  ], Skill.prototype, "name", 2);
7168
7238
  __decorateClass([
7169
- Column60({ name: "slug", type: "varchar", nullable: true, unique: true })
7239
+ Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
7170
7240
  ], Skill.prototype, "slug", 2);
7171
7241
  __decorateClass([
7172
- Column60({ name: "is_active", type: "boolean", default: false })
7242
+ Column61({ name: "is_active", type: "boolean", default: false })
7173
7243
  ], Skill.prototype, "isActive", 2);
7174
7244
  Skill = __decorateClass([
7175
- Entity59("skills")
7245
+ Entity60("skills")
7176
7246
  ], Skill);
7177
7247
 
7178
7248
  // src/entities/job-role.entity.ts
7179
- import { Entity as Entity60, Column as Column61 } from "typeorm";
7249
+ import { Entity as Entity61, Column as Column62 } from "typeorm";
7180
7250
  var JobRoles = class extends BaseEntity {
7181
7251
  };
7182
7252
  __decorateClass([
7183
- Column61({ name: "slug", type: "varchar", nullable: true, unique: true })
7253
+ Column62({ name: "slug", type: "varchar", nullable: true, unique: true })
7184
7254
  ], JobRoles.prototype, "slug", 2);
7185
7255
  __decorateClass([
7186
- Column61({ name: "name", type: "varchar", nullable: true })
7256
+ Column62({ name: "name", type: "varchar", nullable: true })
7187
7257
  ], JobRoles.prototype, "name", 2);
7188
7258
  __decorateClass([
7189
- Column61({ name: "is_active", type: "boolean", default: true })
7259
+ Column62({ name: "is_active", type: "boolean", default: true })
7190
7260
  ], JobRoles.prototype, "isActive", 2);
7191
7261
  JobRoles = __decorateClass([
7192
- Entity60("job_roles")
7262
+ Entity61("job_roles")
7193
7263
  ], JobRoles);
7194
7264
 
7195
7265
  // src/entities/plan.entity.ts
7196
- import { Entity as Entity62, Column as Column63, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7266
+ import { Entity as Entity63, Column as Column64, ManyToMany as ManyToMany3, JoinTable } from "typeorm";
7197
7267
 
7198
7268
  // src/entities/feature.entity.ts
7199
- import { Entity as Entity61, Column as Column62, ManyToMany as ManyToMany2 } from "typeorm";
7269
+ import { Entity as Entity62, Column as Column63, ManyToMany as ManyToMany2 } from "typeorm";
7200
7270
  var Feature = class extends BaseEntity {
7201
7271
  };
7202
7272
  __decorateClass([
7203
- Column62({ name: "name", type: "varchar", unique: true })
7273
+ Column63({ name: "name", type: "varchar", unique: true })
7204
7274
  ], Feature.prototype, "name", 2);
7205
7275
  __decorateClass([
7206
7276
  ManyToMany2(() => Plan, (plan) => plan.features)
7207
7277
  ], Feature.prototype, "plans", 2);
7208
7278
  Feature = __decorateClass([
7209
- Entity61("features")
7279
+ Entity62("features")
7210
7280
  ], Feature);
7211
7281
 
7212
7282
  // src/entities/plan.entity.ts
7213
7283
  var Plan = class extends BaseEntity {
7214
7284
  };
7215
7285
  __decorateClass([
7216
- Column63({ name: "name", type: "varchar", unique: true })
7286
+ Column64({ name: "name", type: "varchar", unique: true })
7217
7287
  ], Plan.prototype, "name", 2);
7218
7288
  __decorateClass([
7219
- Column63({ name: "description", type: "varchar", nullable: true })
7289
+ Column64({ name: "description", type: "varchar", nullable: true })
7220
7290
  ], Plan.prototype, "description", 2);
7221
7291
  __decorateClass([
7222
- Column63({ name: "price", type: "decimal", precision: 10, scale: 2 })
7292
+ Column64({ name: "price", type: "decimal", precision: 10, scale: 2 })
7223
7293
  ], Plan.prototype, "price", 2);
7224
7294
  __decorateClass([
7225
- Column63({ name: "billing_period", type: "varchar" })
7295
+ Column64({ name: "billing_period", type: "varchar" })
7226
7296
  ], Plan.prototype, "billingPeriod", 2);
7227
7297
  __decorateClass([
7228
- Column63({ name: "is_current", type: "boolean", default: false })
7298
+ Column64({ name: "is_current", type: "boolean", default: false })
7229
7299
  ], Plan.prototype, "isCurrent", 2);
7230
7300
  __decorateClass([
7231
7301
  ManyToMany3(() => Feature, (feature) => feature.plans, { cascade: true }),
7232
7302
  JoinTable()
7233
7303
  ], Plan.prototype, "features", 2);
7234
7304
  Plan = __decorateClass([
7235
- Entity62("plans")
7305
+ Entity63("plans")
7236
7306
  ], Plan);
7237
7307
 
7238
7308
  // src/entities/cms.entity.ts
7239
- import { Entity as Entity63, Column as Column64 } from "typeorm";
7309
+ import { Entity as Entity64, Column as Column65 } from "typeorm";
7240
7310
  var Cms = class extends BaseEntity {
7241
7311
  };
7242
7312
  __decorateClass([
7243
- Column64({ name: "title", type: "varchar", nullable: true })
7313
+ Column65({ name: "title", type: "varchar", nullable: true })
7244
7314
  ], Cms.prototype, "title", 2);
7245
7315
  __decorateClass([
7246
- Column64({ name: "slug", type: "varchar", nullable: true, unique: true })
7316
+ Column65({ name: "slug", type: "varchar", nullable: true, unique: true })
7247
7317
  ], Cms.prototype, "slug", 2);
7248
7318
  __decorateClass([
7249
- Column64({ name: "content", type: "varchar", nullable: true })
7319
+ Column65({ name: "content", type: "varchar", nullable: true })
7250
7320
  ], Cms.prototype, "content", 2);
7251
7321
  __decorateClass([
7252
- Column64({ name: "is_active", type: "boolean", default: true })
7322
+ Column65({ name: "is_active", type: "boolean", default: true })
7253
7323
  ], Cms.prototype, "isActive", 2);
7254
7324
  Cms = __decorateClass([
7255
- Entity63("cms")
7325
+ Entity64("cms")
7256
7326
  ], Cms);
7257
7327
 
7258
7328
  // src/entities/lead.entity.ts
7259
7329
  import {
7260
- Entity as Entity64,
7261
- Column as Column65
7330
+ Entity as Entity65,
7331
+ Column as Column66
7262
7332
  } from "typeorm";
7263
7333
  var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7264
7334
  CategoryEmum2["BUSINESS"] = "BUSINESS";
@@ -7268,22 +7338,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
7268
7338
  var Lead = class extends BaseEntity {
7269
7339
  };
7270
7340
  __decorateClass([
7271
- Column65({ name: "name", type: "varchar", nullable: true })
7341
+ Column66({ name: "name", type: "varchar", nullable: true })
7272
7342
  ], Lead.prototype, "name", 2);
7273
7343
  __decorateClass([
7274
- Column65({ name: "mobile_code", type: "varchar", nullable: true })
7344
+ Column66({ name: "mobile_code", type: "varchar", nullable: true })
7275
7345
  ], Lead.prototype, "mobileCode", 2);
7276
7346
  __decorateClass([
7277
- Column65({ name: "mobile", type: "varchar", nullable: true })
7347
+ Column66({ name: "mobile", type: "varchar", nullable: true })
7278
7348
  ], Lead.prototype, "mobile", 2);
7279
7349
  __decorateClass([
7280
- Column65({ name: "email", type: "varchar", nullable: true })
7350
+ Column66({ name: "email", type: "varchar", nullable: true })
7281
7351
  ], Lead.prototype, "email", 2);
7282
7352
  __decorateClass([
7283
- Column65({ name: "description", type: "varchar", nullable: true })
7353
+ Column66({ name: "description", type: "varchar", nullable: true })
7284
7354
  ], Lead.prototype, "description", 2);
7285
7355
  __decorateClass([
7286
- Column65({
7356
+ Column66({
7287
7357
  name: "category",
7288
7358
  type: "enum",
7289
7359
  enum: CategoryEmum,
@@ -7291,7 +7361,7 @@ __decorateClass([
7291
7361
  })
7292
7362
  ], Lead.prototype, "category", 2);
7293
7363
  Lead = __decorateClass([
7294
- Entity64("leads")
7364
+ Entity65("leads")
7295
7365
  ], Lead);
7296
7366
 
7297
7367
  // src/entities/job-freelancer-recommendation.entity.ts
@@ -7532,7 +7602,7 @@ ClientFreelancerRecommendation = __decorateClass([
7532
7602
  ], ClientFreelancerRecommendation);
7533
7603
 
7534
7604
  // src/entities/commission.entity.ts
7535
- import { Entity as Entity65, Column as Column66 } from "typeorm";
7605
+ import { Entity as Entity66, Column as Column67 } from "typeorm";
7536
7606
  var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7537
7607
  CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
7538
7608
  CommissionTypeEnum2["FLAT"] = "FLAT";
@@ -7541,7 +7611,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
7541
7611
  var Commission = class extends BaseEntity {
7542
7612
  };
7543
7613
  __decorateClass([
7544
- Column66({
7614
+ Column67({
7545
7615
  name: "freelancer_commission_type",
7546
7616
  type: "enum",
7547
7617
  enum: CommissionTypeEnum,
@@ -7549,10 +7619,10 @@ __decorateClass([
7549
7619
  })
7550
7620
  ], Commission.prototype, "freelancerCommissionType", 2);
7551
7621
  __decorateClass([
7552
- Column66({ name: "freelancer_commission", type: "integer", default: 0 })
7622
+ Column67({ name: "freelancer_commission", type: "integer", default: 0 })
7553
7623
  ], Commission.prototype, "freelancerCommission", 2);
7554
7624
  __decorateClass([
7555
- Column66({
7625
+ Column67({
7556
7626
  name: "client_commission_type",
7557
7627
  type: "enum",
7558
7628
  enum: CommissionTypeEnum,
@@ -7560,74 +7630,74 @@ __decorateClass([
7560
7630
  })
7561
7631
  ], Commission.prototype, "clientCommissionType", 2);
7562
7632
  __decorateClass([
7563
- Column66({ name: "client_commission", type: "integer", default: 0 })
7633
+ Column67({ name: "client_commission", type: "integer", default: 0 })
7564
7634
  ], Commission.prototype, "clientCommission", 2);
7565
7635
  Commission = __decorateClass([
7566
- Entity65("commissions")
7636
+ Entity66("commissions")
7567
7637
  ], Commission);
7568
7638
 
7569
7639
  // src/entities/calendly-meeting-log.entity.ts
7570
7640
  import {
7571
- Entity as Entity66,
7572
- Column as Column67,
7573
- Index as Index50
7641
+ Entity as Entity67,
7642
+ Column as Column68,
7643
+ Index as Index51
7574
7644
  } from "typeorm";
7575
7645
  var CalendlyMeetingLog = class extends BaseEntity {
7576
7646
  };
7577
7647
  __decorateClass([
7578
- Column67({ name: "calendly_event_id", type: "varchar", nullable: true }),
7579
- Index50()
7648
+ Column68({ name: "calendly_event_id", type: "varchar", nullable: true }),
7649
+ Index51()
7580
7650
  ], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
7581
7651
  __decorateClass([
7582
- Column67({ name: "calendly_event_type", type: "varchar", nullable: true })
7652
+ Column68({ name: "calendly_event_type", type: "varchar", nullable: true })
7583
7653
  ], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
7584
7654
  __decorateClass([
7585
- Column67({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7655
+ Column68({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7586
7656
  ], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
7587
7657
  CalendlyMeetingLog = __decorateClass([
7588
- Entity66("calendly_meeting_logs")
7658
+ Entity67("calendly_meeting_logs")
7589
7659
  ], CalendlyMeetingLog);
7590
7660
 
7591
7661
  // src/entities/zoom-meeting-log.entity.ts
7592
7662
  import {
7593
- Entity as Entity67,
7594
- Column as Column68,
7595
- Index as Index51
7663
+ Entity as Entity68,
7664
+ Column as Column69,
7665
+ Index as Index52
7596
7666
  } from "typeorm";
7597
7667
  var ZoomMeetingLog = class extends BaseEntity {
7598
7668
  };
7599
7669
  __decorateClass([
7600
- Column68({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7601
- Index51()
7670
+ Column69({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
7671
+ Index52()
7602
7672
  ], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
7603
7673
  __decorateClass([
7604
- Column68({ name: "zoom_event_type", type: "varchar", nullable: true })
7674
+ Column69({ name: "zoom_event_type", type: "varchar", nullable: true })
7605
7675
  ], ZoomMeetingLog.prototype, "zoomEventType", 2);
7606
7676
  __decorateClass([
7607
- Column68({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7677
+ Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7608
7678
  ], ZoomMeetingLog.prototype, "rawWebhookData", 2);
7609
7679
  ZoomMeetingLog = __decorateClass([
7610
- Entity67("zoom_meeting_logs")
7680
+ Entity68("zoom_meeting_logs")
7611
7681
  ], ZoomMeetingLog);
7612
7682
 
7613
7683
  // src/entities/stripe-logs.entity.ts
7614
- import { Entity as Entity68, Column as Column69 } from "typeorm";
7684
+ import { Entity as Entity69, Column as Column70 } from "typeorm";
7615
7685
  var StripeLog = class extends BaseEntity {
7616
7686
  };
7617
7687
  __decorateClass([
7618
- Column69({ name: "stripe_event_id", type: "varchar", nullable: true })
7688
+ Column70({ name: "stripe_event_id", type: "varchar", nullable: true })
7619
7689
  ], StripeLog.prototype, "stripeEventId", 2);
7620
7690
  __decorateClass([
7621
- Column69({ name: "event_type", type: "varchar", nullable: true })
7691
+ Column70({ name: "event_type", type: "varchar", nullable: true })
7622
7692
  ], StripeLog.prototype, "eventType", 2);
7623
7693
  __decorateClass([
7624
- Column69({ name: "stripe_account_id", type: "varchar", nullable: true })
7694
+ Column70({ name: "stripe_account_id", type: "varchar", nullable: true })
7625
7695
  ], StripeLog.prototype, "stripeAccountId", 2);
7626
7696
  __decorateClass([
7627
- Column69({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7697
+ Column70({ name: "raw_webhook_data", type: "jsonb", nullable: true })
7628
7698
  ], StripeLog.prototype, "rawWebhookData", 2);
7629
7699
  StripeLog = __decorateClass([
7630
- Entity68("stripe_logs")
7700
+ Entity69("stripe_logs")
7631
7701
  ], StripeLog);
7632
7702
  export {
7633
7703
  ADMIN_FREELANCER_PATTERN,
@@ -7713,6 +7783,8 @@ export {
7713
7783
  CreateQuestionDto,
7714
7784
  CreateRatingDto,
7715
7785
  CreateSubAdminDto,
7786
+ Dispute,
7787
+ DisputeStatusEnum,
7716
7788
  DocumentType,
7717
7789
  DocumentTypeEnum,
7718
7790
  DurationTypeEnum,