@experts_hub/shared 1.0.437 → 1.0.438

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