@experts_hub/shared 1.0.685 → 1.0.686
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/entities/index.d.ts +2 -0
- package/dist/entities/task-query-message.entity.d.ts +16 -0
- package/dist/entities/task-query.entity.d.ts +37 -0
- package/dist/entities/task.entity.d.ts +1 -0
- package/dist/entities/user.entity.d.ts +5 -0
- package/dist/index.d.mts +53 -1
- package/dist/index.d.ts +53 -1
- package/dist/index.js +513 -335
- package/dist/index.mjs +444 -271
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -988,13 +988,13 @@ import { IsEnum as IsEnum13 } from "class-validator";
|
|
|
988
988
|
|
|
989
989
|
// src/entities/user.entity.ts
|
|
990
990
|
import {
|
|
991
|
-
Entity as
|
|
992
|
-
Column as
|
|
993
|
-
OneToMany as
|
|
991
|
+
Entity as Entity73,
|
|
992
|
+
Column as Column74,
|
|
993
|
+
OneToMany as OneToMany25,
|
|
994
994
|
OneToOne as OneToOne12,
|
|
995
|
-
Index as
|
|
996
|
-
ManyToOne as
|
|
997
|
-
JoinColumn as
|
|
995
|
+
Index as Index66,
|
|
996
|
+
ManyToOne as ManyToOne68,
|
|
997
|
+
JoinColumn as JoinColumn69
|
|
998
998
|
} from "typeorm";
|
|
999
999
|
|
|
1000
1000
|
// src/entities/base.entity.ts
|
|
@@ -3926,6 +3926,7 @@ var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
|
|
|
3926
3926
|
TaskStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
3927
3927
|
TaskStatusEnum2["SCHEDULED"] = "SCHEDULED";
|
|
3928
3928
|
TaskStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
3929
|
+
TaskStatusEnum2["SUBMITTED"] = "SUBMITTED";
|
|
3929
3930
|
TaskStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
3930
3931
|
TaskStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3931
3932
|
return TaskStatusEnum2;
|
|
@@ -6036,6 +6037,164 @@ InAppNotification = __decorateClass([
|
|
|
6036
6037
|
Entity70("in_app_notifications")
|
|
6037
6038
|
], InAppNotification);
|
|
6038
6039
|
|
|
6040
|
+
// src/entities/task-query.entity.ts
|
|
6041
|
+
import { Entity as Entity72, Column as Column73, Index as Index65, JoinColumn as JoinColumn68, ManyToOne as ManyToOne67, OneToMany as OneToMany24 } from "typeorm";
|
|
6042
|
+
|
|
6043
|
+
// src/entities/task-query-message.entity.ts
|
|
6044
|
+
import { Entity as Entity71, Column as Column72, Index as Index64, JoinColumn as JoinColumn67, ManyToOne as ManyToOne66 } from "typeorm";
|
|
6045
|
+
var TaskQueryMessage = class extends BaseEntity {
|
|
6046
|
+
};
|
|
6047
|
+
__decorateClass([
|
|
6048
|
+
Column72({ name: "task_query_id", type: "integer" }),
|
|
6049
|
+
Index64()
|
|
6050
|
+
], TaskQueryMessage.prototype, "taskQueryId", 2);
|
|
6051
|
+
__decorateClass([
|
|
6052
|
+
ManyToOne66(() => TaskQuery, (taskQuery) => taskQuery.messages),
|
|
6053
|
+
JoinColumn67({ name: "task_query_id" })
|
|
6054
|
+
], TaskQueryMessage.prototype, "taskQuery", 2);
|
|
6055
|
+
__decorateClass([
|
|
6056
|
+
Column72({ name: "sender_user_id", type: "integer" }),
|
|
6057
|
+
Index64()
|
|
6058
|
+
], TaskQueryMessage.prototype, "senderUserId", 2);
|
|
6059
|
+
__decorateClass([
|
|
6060
|
+
ManyToOne66(() => User, (user) => user.taskQueryMessages),
|
|
6061
|
+
JoinColumn67({ name: "sender_user_id" })
|
|
6062
|
+
], TaskQueryMessage.prototype, "senderUser", 2);
|
|
6063
|
+
__decorateClass([
|
|
6064
|
+
Column72({
|
|
6065
|
+
name: "sender_type",
|
|
6066
|
+
type: "enum",
|
|
6067
|
+
enum: TaskQueryUserTypeEnum
|
|
6068
|
+
})
|
|
6069
|
+
], TaskQueryMessage.prototype, "senderType", 2);
|
|
6070
|
+
__decorateClass([
|
|
6071
|
+
Column72({ name: "message", type: "varchar", nullable: true })
|
|
6072
|
+
], TaskQueryMessage.prototype, "message", 2);
|
|
6073
|
+
__decorateClass([
|
|
6074
|
+
Column72({ name: "attachment_url", type: "varchar", nullable: true })
|
|
6075
|
+
], TaskQueryMessage.prototype, "attachmentUrl", 2);
|
|
6076
|
+
__decorateClass([
|
|
6077
|
+
Column72({ name: "attachment_type", type: "varchar", nullable: true })
|
|
6078
|
+
], TaskQueryMessage.prototype, "attachmentType", 2);
|
|
6079
|
+
__decorateClass([
|
|
6080
|
+
Column72({ name: "meta", type: "jsonb", nullable: true })
|
|
6081
|
+
], TaskQueryMessage.prototype, "meta", 2);
|
|
6082
|
+
__decorateClass([
|
|
6083
|
+
Column72({ name: "is_read", type: "boolean", default: false })
|
|
6084
|
+
], TaskQueryMessage.prototype, "isRead", 2);
|
|
6085
|
+
__decorateClass([
|
|
6086
|
+
Column72({
|
|
6087
|
+
name: "read_at",
|
|
6088
|
+
type: "timestamp with time zone",
|
|
6089
|
+
nullable: true
|
|
6090
|
+
})
|
|
6091
|
+
], TaskQueryMessage.prototype, "readAt", 2);
|
|
6092
|
+
TaskQueryMessage = __decorateClass([
|
|
6093
|
+
Entity71("task_query_messages")
|
|
6094
|
+
], TaskQueryMessage);
|
|
6095
|
+
|
|
6096
|
+
// src/entities/task-query.entity.ts
|
|
6097
|
+
var TaskQueryUserTypeEnum = /* @__PURE__ */ ((TaskQueryUserTypeEnum2) => {
|
|
6098
|
+
TaskQueryUserTypeEnum2["CLIENT"] = "CLIENT";
|
|
6099
|
+
TaskQueryUserTypeEnum2["FREELANCER"] = "FREELANCER";
|
|
6100
|
+
return TaskQueryUserTypeEnum2;
|
|
6101
|
+
})(TaskQueryUserTypeEnum || {});
|
|
6102
|
+
var TaskQueryCategoryEnum = /* @__PURE__ */ ((TaskQueryCategoryEnum2) => {
|
|
6103
|
+
TaskQueryCategoryEnum2["DEVELOPMENT_ISSUE"] = "DEVELOPMENT_ISSUE";
|
|
6104
|
+
TaskQueryCategoryEnum2["TESTING_ISSUE"] = "TESTING_ISSUE";
|
|
6105
|
+
TaskQueryCategoryEnum2["OTHER"] = "OTHER";
|
|
6106
|
+
return TaskQueryCategoryEnum2;
|
|
6107
|
+
})(TaskQueryCategoryEnum || {});
|
|
6108
|
+
var TaskQueryStatusEnum = /* @__PURE__ */ ((TaskQueryStatusEnum2) => {
|
|
6109
|
+
TaskQueryStatusEnum2["OPEN"] = "OPEN";
|
|
6110
|
+
TaskQueryStatusEnum2["ANSWERED"] = "ANSWERED";
|
|
6111
|
+
TaskQueryStatusEnum2["CLOSED"] = "CLOSED";
|
|
6112
|
+
return TaskQueryStatusEnum2;
|
|
6113
|
+
})(TaskQueryStatusEnum || {});
|
|
6114
|
+
var TaskQuery = class extends BaseEntity {
|
|
6115
|
+
};
|
|
6116
|
+
__decorateClass([
|
|
6117
|
+
Column73({ name: "task_id", type: "integer" }),
|
|
6118
|
+
Index65()
|
|
6119
|
+
], TaskQuery.prototype, "taskId", 2);
|
|
6120
|
+
__decorateClass([
|
|
6121
|
+
ManyToOne67(() => Task),
|
|
6122
|
+
JoinColumn68({ name: "task_id" })
|
|
6123
|
+
], TaskQuery.prototype, "task", 2);
|
|
6124
|
+
__decorateClass([
|
|
6125
|
+
Column73({ name: "raised_by_user_id", type: "integer" }),
|
|
6126
|
+
Index65()
|
|
6127
|
+
], TaskQuery.prototype, "raisedByUserId", 2);
|
|
6128
|
+
__decorateClass([
|
|
6129
|
+
ManyToOne67(() => User, (user) => user.raisedTaskQueries),
|
|
6130
|
+
JoinColumn68({ name: "raised_by_user_id" })
|
|
6131
|
+
], TaskQuery.prototype, "raisedByUser", 2);
|
|
6132
|
+
__decorateClass([
|
|
6133
|
+
Column73({
|
|
6134
|
+
name: "raised_by_type",
|
|
6135
|
+
type: "enum",
|
|
6136
|
+
enum: TaskQueryUserTypeEnum
|
|
6137
|
+
})
|
|
6138
|
+
], TaskQuery.prototype, "raisedByType", 2);
|
|
6139
|
+
__decorateClass([
|
|
6140
|
+
Column73({ name: "assigned_to_user_id", type: "integer" }),
|
|
6141
|
+
Index65()
|
|
6142
|
+
], TaskQuery.prototype, "assignedToUserId", 2);
|
|
6143
|
+
__decorateClass([
|
|
6144
|
+
ManyToOne67(() => User, (user) => user.assignedTaskQueries),
|
|
6145
|
+
JoinColumn68({ name: "assigned_to_user_id" })
|
|
6146
|
+
], TaskQuery.prototype, "assignedToUser", 2);
|
|
6147
|
+
__decorateClass([
|
|
6148
|
+
Column73({
|
|
6149
|
+
name: "assigned_to_type",
|
|
6150
|
+
type: "enum",
|
|
6151
|
+
enum: TaskQueryUserTypeEnum
|
|
6152
|
+
})
|
|
6153
|
+
], TaskQuery.prototype, "assignedToType", 2);
|
|
6154
|
+
__decorateClass([
|
|
6155
|
+
Column73({
|
|
6156
|
+
name: "query_category",
|
|
6157
|
+
type: "enum",
|
|
6158
|
+
enum: TaskQueryCategoryEnum
|
|
6159
|
+
})
|
|
6160
|
+
], TaskQuery.prototype, "queryCategory", 2);
|
|
6161
|
+
__decorateClass([
|
|
6162
|
+
Column73({ name: "subject", type: "varchar", nullable: true })
|
|
6163
|
+
], TaskQuery.prototype, "subject", 2);
|
|
6164
|
+
__decorateClass([
|
|
6165
|
+
Column73({ name: "description", type: "varchar", nullable: true })
|
|
6166
|
+
], TaskQuery.prototype, "description", 2);
|
|
6167
|
+
__decorateClass([
|
|
6168
|
+
Column73({
|
|
6169
|
+
name: "status",
|
|
6170
|
+
type: "enum",
|
|
6171
|
+
enum: TaskQueryStatusEnum,
|
|
6172
|
+
default: "OPEN" /* OPEN */
|
|
6173
|
+
})
|
|
6174
|
+
], TaskQuery.prototype, "status", 2);
|
|
6175
|
+
__decorateClass([
|
|
6176
|
+
Column73({
|
|
6177
|
+
name: "last_message_at",
|
|
6178
|
+
type: "timestamp with time zone",
|
|
6179
|
+
nullable: true
|
|
6180
|
+
})
|
|
6181
|
+
], TaskQuery.prototype, "lastMessageAt", 2);
|
|
6182
|
+
__decorateClass([
|
|
6183
|
+
Column73({ name: "last_message_preview", type: "varchar", nullable: true })
|
|
6184
|
+
], TaskQuery.prototype, "lastMessagePreview", 2);
|
|
6185
|
+
__decorateClass([
|
|
6186
|
+
Column73({ name: "unread_count_client", type: "integer", default: 0 })
|
|
6187
|
+
], TaskQuery.prototype, "unreadCountClient", 2);
|
|
6188
|
+
__decorateClass([
|
|
6189
|
+
Column73({ name: "unread_count_freelancer", type: "integer", default: 0 })
|
|
6190
|
+
], TaskQuery.prototype, "unreadCountFreelancer", 2);
|
|
6191
|
+
__decorateClass([
|
|
6192
|
+
OneToMany24(() => TaskQueryMessage, (message) => message.taskQuery, { cascade: true })
|
|
6193
|
+
], TaskQuery.prototype, "messages", 2);
|
|
6194
|
+
TaskQuery = __decorateClass([
|
|
6195
|
+
Entity72("task_queries")
|
|
6196
|
+
], TaskQuery);
|
|
6197
|
+
|
|
6039
6198
|
// src/entities/user.entity.ts
|
|
6040
6199
|
var AccountType2 = /* @__PURE__ */ ((AccountType4) => {
|
|
6041
6200
|
AccountType4["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
@@ -6062,51 +6221,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
6062
6221
|
var User = class extends BaseEntity {
|
|
6063
6222
|
};
|
|
6064
6223
|
__decorateClass([
|
|
6065
|
-
|
|
6224
|
+
Column74({ name: "unique_id", type: "varchar", unique: true })
|
|
6066
6225
|
], User.prototype, "uniqueId", 2);
|
|
6067
6226
|
__decorateClass([
|
|
6068
|
-
|
|
6069
|
-
|
|
6227
|
+
Column74({ name: "parent_id", type: "integer", nullable: true }),
|
|
6228
|
+
Index66()
|
|
6070
6229
|
], User.prototype, "parentId", 2);
|
|
6071
6230
|
__decorateClass([
|
|
6072
|
-
|
|
6073
|
-
|
|
6231
|
+
ManyToOne68(() => User, (user) => user.children, { nullable: true }),
|
|
6232
|
+
JoinColumn69({ name: "parent_id" })
|
|
6074
6233
|
], User.prototype, "parent", 2);
|
|
6075
6234
|
__decorateClass([
|
|
6076
|
-
|
|
6235
|
+
OneToMany25(() => User, (user) => user.parent)
|
|
6077
6236
|
], User.prototype, "children", 2);
|
|
6078
6237
|
__decorateClass([
|
|
6079
|
-
|
|
6238
|
+
Column74({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
6080
6239
|
], User.prototype, "username", 2);
|
|
6081
6240
|
__decorateClass([
|
|
6082
|
-
|
|
6241
|
+
Column74({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
6083
6242
|
], User.prototype, "firstName", 2);
|
|
6084
6243
|
__decorateClass([
|
|
6085
|
-
|
|
6244
|
+
Column74({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
6086
6245
|
], User.prototype, "lastName", 2);
|
|
6087
6246
|
__decorateClass([
|
|
6088
|
-
|
|
6247
|
+
Column74({ name: "date_of_birth", type: "date", nullable: true })
|
|
6089
6248
|
], User.prototype, "dateOfBirth", 2);
|
|
6090
6249
|
__decorateClass([
|
|
6091
|
-
|
|
6250
|
+
Column74({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
6092
6251
|
], User.prototype, "gender", 2);
|
|
6093
6252
|
__decorateClass([
|
|
6094
|
-
|
|
6253
|
+
Column74({ name: "profile_picture_url", type: "text", nullable: true })
|
|
6095
6254
|
], User.prototype, "profilePictureUrl", 2);
|
|
6096
6255
|
__decorateClass([
|
|
6097
|
-
|
|
6256
|
+
Column74({ name: "email", type: "varchar", unique: true })
|
|
6098
6257
|
], User.prototype, "email", 2);
|
|
6099
6258
|
__decorateClass([
|
|
6100
|
-
|
|
6259
|
+
Column74({ name: "mobile_code", type: "varchar", nullable: true })
|
|
6101
6260
|
], User.prototype, "mobileCode", 2);
|
|
6102
6261
|
__decorateClass([
|
|
6103
|
-
|
|
6262
|
+
Column74({ name: "mobile", type: "varchar", nullable: true })
|
|
6104
6263
|
], User.prototype, "mobile", 2);
|
|
6105
6264
|
__decorateClass([
|
|
6106
|
-
|
|
6265
|
+
Column74({ name: "password", type: "varchar", nullable: true })
|
|
6107
6266
|
], User.prototype, "password", 2);
|
|
6108
6267
|
__decorateClass([
|
|
6109
|
-
|
|
6268
|
+
Column74({
|
|
6110
6269
|
name: "account_type",
|
|
6111
6270
|
type: "enum",
|
|
6112
6271
|
enum: AccountType2,
|
|
@@ -6114,7 +6273,7 @@ __decorateClass([
|
|
|
6114
6273
|
})
|
|
6115
6274
|
], User.prototype, "accountType", 2);
|
|
6116
6275
|
__decorateClass([
|
|
6117
|
-
|
|
6276
|
+
Column74({
|
|
6118
6277
|
name: "account_status",
|
|
6119
6278
|
type: "enum",
|
|
6120
6279
|
enum: AccountStatus,
|
|
@@ -6122,45 +6281,45 @@ __decorateClass([
|
|
|
6122
6281
|
})
|
|
6123
6282
|
], User.prototype, "accountStatus", 2);
|
|
6124
6283
|
__decorateClass([
|
|
6125
|
-
|
|
6284
|
+
Column74({ name: "is_email_verified", type: "boolean", default: false })
|
|
6126
6285
|
], User.prototype, "isEmailVerified", 2);
|
|
6127
6286
|
__decorateClass([
|
|
6128
|
-
|
|
6287
|
+
Column74({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
6129
6288
|
], User.prototype, "isMobileVerified", 2);
|
|
6130
6289
|
__decorateClass([
|
|
6131
|
-
|
|
6290
|
+
Column74({ name: "is_social", type: "boolean", default: false })
|
|
6132
6291
|
], User.prototype, "isSocial", 2);
|
|
6133
6292
|
__decorateClass([
|
|
6134
|
-
|
|
6293
|
+
Column74({ name: "is_referral_user", type: "boolean", default: false })
|
|
6135
6294
|
], User.prototype, "isReferralUser", 2);
|
|
6136
6295
|
__decorateClass([
|
|
6137
|
-
|
|
6296
|
+
Column74({
|
|
6138
6297
|
name: "last_login_at",
|
|
6139
6298
|
type: "timestamp with time zone",
|
|
6140
6299
|
nullable: true
|
|
6141
6300
|
})
|
|
6142
6301
|
], User.prototype, "lastLoginAt", 2);
|
|
6143
6302
|
__decorateClass([
|
|
6144
|
-
|
|
6303
|
+
Column74({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
6145
6304
|
], User.prototype, "lastLoginIp", 2);
|
|
6146
6305
|
__decorateClass([
|
|
6147
|
-
|
|
6306
|
+
Column74({ name: "reset_token", type: "varchar", nullable: true })
|
|
6148
6307
|
], User.prototype, "resetToken", 2);
|
|
6149
6308
|
__decorateClass([
|
|
6150
|
-
|
|
6309
|
+
Column74({
|
|
6151
6310
|
name: "reset_token_expire_at",
|
|
6152
6311
|
type: "timestamp with time zone",
|
|
6153
6312
|
nullable: true
|
|
6154
6313
|
})
|
|
6155
6314
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
6156
6315
|
__decorateClass([
|
|
6157
|
-
|
|
6316
|
+
Column74({ name: "set_password_token", type: "varchar", nullable: true })
|
|
6158
6317
|
], User.prototype, "setPasswordToken", 2);
|
|
6159
6318
|
__decorateClass([
|
|
6160
|
-
|
|
6319
|
+
OneToMany25(() => RefreshToken, (token) => token.user)
|
|
6161
6320
|
], User.prototype, "refreshTokens", 2);
|
|
6162
6321
|
__decorateClass([
|
|
6163
|
-
|
|
6322
|
+
Column74({
|
|
6164
6323
|
name: "provider",
|
|
6165
6324
|
type: "enum",
|
|
6166
6325
|
enum: Provider,
|
|
@@ -6169,43 +6328,43 @@ __decorateClass([
|
|
|
6169
6328
|
})
|
|
6170
6329
|
], User.prototype, "provider", 2);
|
|
6171
6330
|
__decorateClass([
|
|
6172
|
-
|
|
6331
|
+
Column74({ name: "provider_token", type: "varchar", nullable: true })
|
|
6173
6332
|
], User.prototype, "providerToken", 2);
|
|
6174
6333
|
__decorateClass([
|
|
6175
|
-
|
|
6334
|
+
Column74({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
6176
6335
|
], User.prototype, "linkedInId", 2);
|
|
6177
6336
|
__decorateClass([
|
|
6178
|
-
|
|
6337
|
+
Column74({ name: "google_id", type: "varchar", nullable: true })
|
|
6179
6338
|
], User.prototype, "googleId", 2);
|
|
6180
6339
|
__decorateClass([
|
|
6181
|
-
|
|
6340
|
+
Column74({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
6182
6341
|
], User.prototype, "gitLabsId", 2);
|
|
6183
6342
|
__decorateClass([
|
|
6184
|
-
|
|
6343
|
+
Column74({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
6185
6344
|
], User.prototype, "onBoardedBy", 2);
|
|
6186
6345
|
__decorateClass([
|
|
6187
|
-
|
|
6346
|
+
OneToMany25(() => Otp, (otp) => otp.user)
|
|
6188
6347
|
], User.prototype, "otps", 2);
|
|
6189
6348
|
__decorateClass([
|
|
6190
|
-
|
|
6349
|
+
OneToMany25(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
6191
6350
|
], User.prototype, "senseloafLogs", 2);
|
|
6192
6351
|
__decorateClass([
|
|
6193
6352
|
OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
6194
6353
|
], User.prototype, "companyProfile", 2);
|
|
6195
6354
|
__decorateClass([
|
|
6196
|
-
|
|
6355
|
+
OneToMany25(() => CompanySkill, (companySkill) => companySkill.user)
|
|
6197
6356
|
], User.prototype, "companySkills", 2);
|
|
6198
6357
|
__decorateClass([
|
|
6199
|
-
|
|
6358
|
+
OneToMany25(
|
|
6200
6359
|
() => CompanyMemberRole,
|
|
6201
6360
|
(companyMemberRole) => companyMemberRole.user
|
|
6202
6361
|
)
|
|
6203
6362
|
], User.prototype, "companyMemberRoles", 2);
|
|
6204
6363
|
__decorateClass([
|
|
6205
|
-
|
|
6364
|
+
OneToMany25(() => AiInterview, (aiInterview) => aiInterview.interviwer)
|
|
6206
6365
|
], User.prototype, "companyAiInterview", 2);
|
|
6207
6366
|
__decorateClass([
|
|
6208
|
-
|
|
6367
|
+
OneToMany25(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
6209
6368
|
], User.prototype, "clientF2FInterviews", 2);
|
|
6210
6369
|
__decorateClass([
|
|
6211
6370
|
OneToOne12(
|
|
@@ -6217,61 +6376,61 @@ __decorateClass([
|
|
|
6217
6376
|
OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
6218
6377
|
], User.prototype, "freelancerResume", 2);
|
|
6219
6378
|
__decorateClass([
|
|
6220
|
-
|
|
6379
|
+
OneToMany25(
|
|
6221
6380
|
() => FreelancerAssessmentRequest,
|
|
6222
6381
|
(freelancerAssessmentRequest) => freelancerAssessmentRequest.freelancer
|
|
6223
6382
|
)
|
|
6224
6383
|
], User.prototype, "freelancerAssessmentRequests", 2);
|
|
6225
6384
|
__decorateClass([
|
|
6226
|
-
|
|
6385
|
+
OneToMany25(
|
|
6227
6386
|
() => FreelancerAssessmentRequest,
|
|
6228
6387
|
(freelancerAssessment) => freelancerAssessment.approvedBy
|
|
6229
6388
|
)
|
|
6230
6389
|
], User.prototype, "assessmentRequests", 2);
|
|
6231
6390
|
__decorateClass([
|
|
6232
|
-
|
|
6391
|
+
OneToMany25(
|
|
6233
6392
|
() => FreelancerAssessment,
|
|
6234
6393
|
(freelancerAssessment) => freelancerAssessment.user
|
|
6235
6394
|
)
|
|
6236
6395
|
], User.prototype, "assessments", 2);
|
|
6237
6396
|
__decorateClass([
|
|
6238
|
-
|
|
6397
|
+
OneToMany25(
|
|
6239
6398
|
() => AssessmentAnswer,
|
|
6240
6399
|
(assessmentAnswer) => assessmentAnswer.user
|
|
6241
6400
|
)
|
|
6242
6401
|
], User.prototype, "assessmentAnswers", 2);
|
|
6243
6402
|
__decorateClass([
|
|
6244
|
-
|
|
6403
|
+
OneToMany25(() => FreelancerSkill, (freelancerSkill) => freelancerSkill.user)
|
|
6245
6404
|
], User.prototype, "freelancerSkills", 2);
|
|
6246
6405
|
__decorateClass([
|
|
6247
|
-
|
|
6406
|
+
OneToMany25(
|
|
6248
6407
|
() => FreelancerExperience,
|
|
6249
6408
|
(freelancerExperience) => freelancerExperience.user
|
|
6250
6409
|
)
|
|
6251
6410
|
], User.prototype, "freelancerExperience", 2);
|
|
6252
6411
|
__decorateClass([
|
|
6253
|
-
|
|
6412
|
+
OneToMany25(
|
|
6254
6413
|
() => FreelancerEducation,
|
|
6255
6414
|
(freelancerEducation) => freelancerEducation.user
|
|
6256
6415
|
)
|
|
6257
6416
|
], User.prototype, "freelancerEducation", 2);
|
|
6258
6417
|
__decorateClass([
|
|
6259
|
-
|
|
6418
|
+
OneToMany25(
|
|
6260
6419
|
() => FreelancerProject,
|
|
6261
6420
|
(freelancerProject) => freelancerProject.user
|
|
6262
6421
|
)
|
|
6263
6422
|
], User.prototype, "freelancerProject", 2);
|
|
6264
6423
|
__decorateClass([
|
|
6265
|
-
|
|
6424
|
+
OneToMany25(
|
|
6266
6425
|
() => FreelancerCaseStudy,
|
|
6267
6426
|
(freelancerCaseStudy) => freelancerCaseStudy.user
|
|
6268
6427
|
)
|
|
6269
6428
|
], User.prototype, "freelancerCaseStudy", 2);
|
|
6270
6429
|
__decorateClass([
|
|
6271
|
-
|
|
6430
|
+
OneToMany25(() => FreelancerTool, (freelancerTool) => freelancerTool.user)
|
|
6272
6431
|
], User.prototype, "freelancerTool", 2);
|
|
6273
6432
|
__decorateClass([
|
|
6274
|
-
|
|
6433
|
+
OneToMany25(
|
|
6275
6434
|
() => FreelancerFramework,
|
|
6276
6435
|
(freelancerFramework) => freelancerFramework.user
|
|
6277
6436
|
)
|
|
@@ -6283,143 +6442,152 @@ __decorateClass([
|
|
|
6283
6442
|
)
|
|
6284
6443
|
], User.prototype, "freelancerDeclaration", 2);
|
|
6285
6444
|
__decorateClass([
|
|
6286
|
-
|
|
6445
|
+
OneToMany25(() => AssessmetQuestion, (assessmetQuestion) => assessmetQuestion.candidate)
|
|
6287
6446
|
], User.prototype, "freelancerMcq", 2);
|
|
6288
6447
|
__decorateClass([
|
|
6289
|
-
|
|
6448
|
+
OneToMany25(() => AiInterview, (aiInterview) => aiInterview.candidate)
|
|
6290
6449
|
], User.prototype, "freelancerAiInterview", 2);
|
|
6291
6450
|
__decorateClass([
|
|
6292
|
-
|
|
6451
|
+
OneToMany25(() => F2FInterview, (F2FInterview2) => F2FInterview2.candidate)
|
|
6293
6452
|
], User.prototype, "freelancerF2FInterviews", 2);
|
|
6294
6453
|
__decorateClass([
|
|
6295
|
-
|
|
6454
|
+
OneToMany25(
|
|
6296
6455
|
() => F2fInterviewRescheduleRequest,
|
|
6297
6456
|
(f2fInterviewRescheduleRequest) => f2fInterviewRescheduleRequest.candidate
|
|
6298
6457
|
)
|
|
6299
6458
|
], User.prototype, "freelancerF2FInterviewRescheduleRequests", 2);
|
|
6300
6459
|
__decorateClass([
|
|
6301
|
-
|
|
6460
|
+
OneToMany25(
|
|
6302
6461
|
() => AiInterviewRescheduleRequest,
|
|
6303
6462
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.candidate
|
|
6304
6463
|
)
|
|
6305
6464
|
], User.prototype, "freelancerAiInterviewRescheduleRequests", 2);
|
|
6306
6465
|
__decorateClass([
|
|
6307
|
-
|
|
6466
|
+
OneToMany25(
|
|
6308
6467
|
() => AiInterviewRescheduleRequest,
|
|
6309
6468
|
(aiInterviewRescheduleRequest) => aiInterviewRescheduleRequest.client
|
|
6310
6469
|
)
|
|
6311
6470
|
], User.prototype, "clientAiInterviewRescheduleRequests", 2);
|
|
6312
6471
|
__decorateClass([
|
|
6313
|
-
|
|
6472
|
+
OneToMany25(() => Job, (job) => job.user)
|
|
6314
6473
|
], User.prototype, "jobs", 2);
|
|
6315
6474
|
__decorateClass([
|
|
6316
|
-
|
|
6475
|
+
OneToMany25(() => Task, (task) => task.client)
|
|
6317
6476
|
], User.prototype, "clientTasks", 2);
|
|
6318
6477
|
__decorateClass([
|
|
6319
|
-
|
|
6478
|
+
OneToMany25(() => Task, (task) => task.freelancer)
|
|
6320
6479
|
], User.prototype, "freelancerTasks", 2);
|
|
6321
6480
|
__decorateClass([
|
|
6322
|
-
|
|
6481
|
+
OneToMany25(() => TaskQuery, (taskQuery) => taskQuery.raisedByUser)
|
|
6482
|
+
], User.prototype, "raisedTaskQueries", 2);
|
|
6483
|
+
__decorateClass([
|
|
6484
|
+
OneToMany25(() => TaskQuery, (taskQuery) => taskQuery.assignedToUser)
|
|
6485
|
+
], User.prototype, "assignedTaskQueries", 2);
|
|
6486
|
+
__decorateClass([
|
|
6487
|
+
OneToMany25(() => TaskQueryMessage, (message) => message.senderUser)
|
|
6488
|
+
], User.prototype, "taskQueryMessages", 2);
|
|
6489
|
+
__decorateClass([
|
|
6490
|
+
OneToMany25(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6323
6491
|
], User.prototype, "jobApplications", 2);
|
|
6324
6492
|
__decorateClass([
|
|
6325
|
-
|
|
6493
|
+
OneToMany25(() => Interview, (interview) => interview.user)
|
|
6326
6494
|
], User.prototype, "interviews", 2);
|
|
6327
6495
|
__decorateClass([
|
|
6328
|
-
|
|
6496
|
+
OneToMany25(() => BankDetail, (bankDetail) => bankDetail.user)
|
|
6329
6497
|
], User.prototype, "bankDetail", 2);
|
|
6330
6498
|
__decorateClass([
|
|
6331
|
-
|
|
6499
|
+
OneToMany25(
|
|
6332
6500
|
() => SystemPreference,
|
|
6333
6501
|
(systemPreference) => systemPreference.user
|
|
6334
6502
|
)
|
|
6335
6503
|
], User.prototype, "systemPreference", 2);
|
|
6336
6504
|
__decorateClass([
|
|
6337
|
-
|
|
6505
|
+
OneToMany25(() => Rating, (rating) => rating.reviewer)
|
|
6338
6506
|
], User.prototype, "givenRatings", 2);
|
|
6339
6507
|
__decorateClass([
|
|
6340
|
-
|
|
6508
|
+
OneToMany25(() => Rating, (rating) => rating.reviewee)
|
|
6341
6509
|
], User.prototype, "receivedRatings", 2);
|
|
6342
6510
|
__decorateClass([
|
|
6343
|
-
|
|
6511
|
+
OneToMany25(() => AdminUserRole, (adminUserRole) => adminUserRole.user)
|
|
6344
6512
|
], User.prototype, "adminUserRoles", 2);
|
|
6345
6513
|
__decorateClass([
|
|
6346
|
-
|
|
6514
|
+
OneToMany25(() => ContractSummary, (contractSummary) => contractSummary.clientId, {
|
|
6347
6515
|
cascade: true
|
|
6348
6516
|
})
|
|
6349
6517
|
], User.prototype, "clientContractSummaries", 2);
|
|
6350
6518
|
__decorateClass([
|
|
6351
|
-
|
|
6519
|
+
OneToMany25(() => Contract, (contract) => contract.client)
|
|
6352
6520
|
], User.prototype, "clientContracts", 2);
|
|
6353
6521
|
__decorateClass([
|
|
6354
|
-
|
|
6522
|
+
OneToMany25(() => Hiring, (hiring) => hiring.client)
|
|
6355
6523
|
], User.prototype, "clientHirings", 2);
|
|
6356
6524
|
__decorateClass([
|
|
6357
|
-
|
|
6525
|
+
OneToMany25(() => EscrowWallet, (escrowWallet) => escrowWallet.client)
|
|
6358
6526
|
], User.prototype, "clientEscrowWallets", 2);
|
|
6359
6527
|
__decorateClass([
|
|
6360
|
-
|
|
6528
|
+
OneToMany25(() => ContractSummary, (contractSummary) => contractSummary.freelancerId, {
|
|
6361
6529
|
cascade: true
|
|
6362
6530
|
})
|
|
6363
6531
|
], User.prototype, "freelancerContractSummaries", 2);
|
|
6364
6532
|
__decorateClass([
|
|
6365
|
-
|
|
6533
|
+
OneToMany25(() => Contract, (contract) => contract.freelancer)
|
|
6366
6534
|
], User.prototype, "freelancerContracts", 2);
|
|
6367
6535
|
__decorateClass([
|
|
6368
|
-
|
|
6536
|
+
OneToMany25(() => Hiring, (hiring) => hiring.freelancer)
|
|
6369
6537
|
], User.prototype, "freelancerHirings", 2);
|
|
6370
6538
|
__decorateClass([
|
|
6371
|
-
|
|
6539
|
+
OneToMany25(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6372
6540
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6373
6541
|
__decorateClass([
|
|
6374
6542
|
OneToOne12(() => Signature, (signature) => signature.user)
|
|
6375
6543
|
], User.prototype, "signatures", 2);
|
|
6376
6544
|
__decorateClass([
|
|
6377
|
-
|
|
6545
|
+
OneToMany25(() => Timesheet, (timesheet) => timesheet.client)
|
|
6378
6546
|
], User.prototype, "clientTimesheets", 2);
|
|
6379
6547
|
__decorateClass([
|
|
6380
|
-
|
|
6548
|
+
OneToMany25(() => Timesheet, (timesheet) => timesheet.freelancer)
|
|
6381
6549
|
], User.prototype, "freelancerTimesheets", 2);
|
|
6382
6550
|
__decorateClass([
|
|
6383
|
-
|
|
6551
|
+
OneToMany25(() => TimesheetLine, (timesheetLine) => timesheetLine.client)
|
|
6384
6552
|
], User.prototype, "clientTimesheetLine", 2);
|
|
6385
6553
|
__decorateClass([
|
|
6386
|
-
|
|
6554
|
+
OneToMany25(() => Invoice, (invoice) => invoice.client)
|
|
6387
6555
|
], User.prototype, "clientInvoice", 2);
|
|
6388
6556
|
__decorateClass([
|
|
6389
|
-
|
|
6557
|
+
OneToMany25(() => TimesheetLine, (timesheetLine) => timesheetLine.freelancer)
|
|
6390
6558
|
], User.prototype, "freelancerTimesheetLine", 2);
|
|
6391
6559
|
__decorateClass([
|
|
6392
|
-
|
|
6560
|
+
OneToMany25(() => Invoice, (invoice) => invoice.freelancer)
|
|
6393
6561
|
], User.prototype, "freelancerInvoice", 2);
|
|
6394
6562
|
__decorateClass([
|
|
6395
|
-
|
|
6563
|
+
OneToMany25(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.client, { cascade: true })
|
|
6396
6564
|
], User.prototype, "clientPreferencesGiven", 2);
|
|
6397
6565
|
__decorateClass([
|
|
6398
|
-
|
|
6566
|
+
OneToMany25(() => ClientCandidatePreference, (clientCandidatePreference) => clientCandidatePreference.candidate)
|
|
6399
6567
|
], User.prototype, "clientPreferencesReceived", 2);
|
|
6400
6568
|
__decorateClass([
|
|
6401
|
-
|
|
6569
|
+
OneToMany25(() => Dispute, (dispute) => dispute.initiator, { cascade: true })
|
|
6402
6570
|
], User.prototype, "initiatedDisputes", 2);
|
|
6403
6571
|
__decorateClass([
|
|
6404
|
-
|
|
6572
|
+
OneToMany25(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6405
6573
|
], User.prototype, "respondentDisputes", 2);
|
|
6406
6574
|
__decorateClass([
|
|
6407
6575
|
OneToOne12(() => Wallet, (wallet) => wallet.user)
|
|
6408
6576
|
], User.prototype, "wallet", 2);
|
|
6409
6577
|
__decorateClass([
|
|
6410
|
-
|
|
6578
|
+
OneToMany25(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
6411
6579
|
], User.prototype, "stripeTransactions", 2);
|
|
6412
6580
|
__decorateClass([
|
|
6413
|
-
|
|
6581
|
+
OneToMany25(() => Dispute, (dispute) => dispute.client)
|
|
6414
6582
|
], User.prototype, "clientDisputes", 2);
|
|
6415
6583
|
__decorateClass([
|
|
6416
|
-
|
|
6584
|
+
OneToMany25(() => Dispute, (dispute) => dispute.freelancer)
|
|
6417
6585
|
], User.prototype, "freelancerDisputes", 2);
|
|
6418
6586
|
__decorateClass([
|
|
6419
|
-
|
|
6587
|
+
OneToMany25(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6420
6588
|
], User.prototype, "inAppNotifications", 2);
|
|
6421
6589
|
User = __decorateClass([
|
|
6422
|
-
|
|
6590
|
+
Entity73("users")
|
|
6423
6591
|
], User);
|
|
6424
6592
|
|
|
6425
6593
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -13537,11 +13705,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
13537
13705
|
};
|
|
13538
13706
|
|
|
13539
13707
|
// src/entities/sequence-generator.entity.ts
|
|
13540
|
-
import { Entity as
|
|
13708
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
13541
13709
|
var SequenceGenerator = class extends BaseEntity {
|
|
13542
13710
|
};
|
|
13543
13711
|
__decorateClass([
|
|
13544
|
-
|
|
13712
|
+
Column75({
|
|
13545
13713
|
name: "module",
|
|
13546
13714
|
type: "varchar",
|
|
13547
13715
|
length: 50,
|
|
@@ -13550,7 +13718,7 @@ __decorateClass([
|
|
|
13550
13718
|
})
|
|
13551
13719
|
], SequenceGenerator.prototype, "module", 2);
|
|
13552
13720
|
__decorateClass([
|
|
13553
|
-
|
|
13721
|
+
Column75({
|
|
13554
13722
|
name: "prefix",
|
|
13555
13723
|
type: "varchar",
|
|
13556
13724
|
length: 10,
|
|
@@ -13559,7 +13727,7 @@ __decorateClass([
|
|
|
13559
13727
|
})
|
|
13560
13728
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
13561
13729
|
__decorateClass([
|
|
13562
|
-
|
|
13730
|
+
Column75({
|
|
13563
13731
|
name: "last_sequence",
|
|
13564
13732
|
type: "int",
|
|
13565
13733
|
nullable: false,
|
|
@@ -13567,7 +13735,7 @@ __decorateClass([
|
|
|
13567
13735
|
})
|
|
13568
13736
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
13569
13737
|
__decorateClass([
|
|
13570
|
-
|
|
13738
|
+
Column75({
|
|
13571
13739
|
name: "year",
|
|
13572
13740
|
type: "int",
|
|
13573
13741
|
nullable: true,
|
|
@@ -13575,11 +13743,11 @@ __decorateClass([
|
|
|
13575
13743
|
})
|
|
13576
13744
|
], SequenceGenerator.prototype, "year", 2);
|
|
13577
13745
|
SequenceGenerator = __decorateClass([
|
|
13578
|
-
|
|
13746
|
+
Entity74("sequence_generators")
|
|
13579
13747
|
], SequenceGenerator);
|
|
13580
13748
|
|
|
13581
13749
|
// src/entities/question.entity.ts
|
|
13582
|
-
import { Entity as
|
|
13750
|
+
import { Entity as Entity75, Column as Column76 } from "typeorm";
|
|
13583
13751
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
13584
13752
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
13585
13753
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -13588,16 +13756,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
13588
13756
|
var Question = class extends BaseEntity {
|
|
13589
13757
|
};
|
|
13590
13758
|
__decorateClass([
|
|
13591
|
-
|
|
13759
|
+
Column76({ name: "question", type: "varchar" })
|
|
13592
13760
|
], Question.prototype, "question", 2);
|
|
13593
13761
|
__decorateClass([
|
|
13594
|
-
|
|
13762
|
+
Column76({ name: "hint", type: "varchar", nullable: true })
|
|
13595
13763
|
], Question.prototype, "hint", 2);
|
|
13596
13764
|
__decorateClass([
|
|
13597
|
-
|
|
13765
|
+
Column76({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13598
13766
|
], Question.prototype, "slug", 2);
|
|
13599
13767
|
__decorateClass([
|
|
13600
|
-
|
|
13768
|
+
Column76({
|
|
13601
13769
|
name: "question_for",
|
|
13602
13770
|
type: "enum",
|
|
13603
13771
|
enum: QuestionFor,
|
|
@@ -13605,49 +13773,49 @@ __decorateClass([
|
|
|
13605
13773
|
})
|
|
13606
13774
|
], Question.prototype, "questionFor", 2);
|
|
13607
13775
|
__decorateClass([
|
|
13608
|
-
|
|
13776
|
+
Column76({ name: "type", type: "varchar", nullable: true })
|
|
13609
13777
|
], Question.prototype, "type", 2);
|
|
13610
13778
|
__decorateClass([
|
|
13611
|
-
|
|
13779
|
+
Column76({ name: "options", type: "jsonb", nullable: true })
|
|
13612
13780
|
], Question.prototype, "options", 2);
|
|
13613
13781
|
__decorateClass([
|
|
13614
|
-
|
|
13782
|
+
Column76({ name: "is_active", type: "boolean", default: false })
|
|
13615
13783
|
], Question.prototype, "isActive", 2);
|
|
13616
13784
|
Question = __decorateClass([
|
|
13617
|
-
|
|
13785
|
+
Entity75("questions")
|
|
13618
13786
|
], Question);
|
|
13619
13787
|
|
|
13620
13788
|
// src/entities/skill.entity.ts
|
|
13621
|
-
import { Entity as
|
|
13789
|
+
import { Entity as Entity76, Column as Column77 } from "typeorm";
|
|
13622
13790
|
var Skill = class extends BaseEntity {
|
|
13623
13791
|
};
|
|
13624
13792
|
__decorateClass([
|
|
13625
|
-
|
|
13793
|
+
Column77({ name: "name", type: "varchar", nullable: true })
|
|
13626
13794
|
], Skill.prototype, "name", 2);
|
|
13627
13795
|
__decorateClass([
|
|
13628
|
-
|
|
13796
|
+
Column77({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13629
13797
|
], Skill.prototype, "slug", 2);
|
|
13630
13798
|
__decorateClass([
|
|
13631
|
-
|
|
13799
|
+
Column77({ name: "is_active", type: "boolean", default: false })
|
|
13632
13800
|
], Skill.prototype, "isActive", 2);
|
|
13633
13801
|
Skill = __decorateClass([
|
|
13634
|
-
|
|
13802
|
+
Entity76("skills")
|
|
13635
13803
|
], Skill);
|
|
13636
13804
|
|
|
13637
13805
|
// src/entities/skill-catalog.entity.ts
|
|
13638
13806
|
import {
|
|
13639
|
-
Entity as
|
|
13640
|
-
Column as
|
|
13641
|
-
Index as
|
|
13807
|
+
Entity as Entity77,
|
|
13808
|
+
Column as Column78,
|
|
13809
|
+
Index as Index67
|
|
13642
13810
|
} from "typeorm";
|
|
13643
13811
|
var SkillCatalog = class extends BaseEntity {
|
|
13644
13812
|
};
|
|
13645
13813
|
__decorateClass([
|
|
13646
|
-
|
|
13647
|
-
|
|
13814
|
+
Column78({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
13815
|
+
Index67()
|
|
13648
13816
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
13649
13817
|
__decorateClass([
|
|
13650
|
-
|
|
13818
|
+
Column78({
|
|
13651
13819
|
name: "aliases",
|
|
13652
13820
|
type: "text",
|
|
13653
13821
|
array: true,
|
|
@@ -13655,20 +13823,20 @@ __decorateClass([
|
|
|
13655
13823
|
})
|
|
13656
13824
|
], SkillCatalog.prototype, "aliases", 2);
|
|
13657
13825
|
__decorateClass([
|
|
13658
|
-
|
|
13826
|
+
Column78({
|
|
13659
13827
|
name: "variations",
|
|
13660
13828
|
type: "jsonb",
|
|
13661
13829
|
default: "{}"
|
|
13662
13830
|
})
|
|
13663
13831
|
], SkillCatalog.prototype, "variations", 2);
|
|
13664
13832
|
__decorateClass([
|
|
13665
|
-
|
|
13833
|
+
Column78({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
13666
13834
|
], SkillCatalog.prototype, "category", 2);
|
|
13667
13835
|
__decorateClass([
|
|
13668
|
-
|
|
13836
|
+
Column78({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
13669
13837
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
13670
13838
|
__decorateClass([
|
|
13671
|
-
|
|
13839
|
+
Column78({
|
|
13672
13840
|
name: "related_skills",
|
|
13673
13841
|
type: "text",
|
|
13674
13842
|
array: true,
|
|
@@ -13676,70 +13844,70 @@ __decorateClass([
|
|
|
13676
13844
|
})
|
|
13677
13845
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
13678
13846
|
__decorateClass([
|
|
13679
|
-
|
|
13680
|
-
|
|
13847
|
+
Column78({ name: "usage_count", type: "integer", default: 0 }),
|
|
13848
|
+
Index67()
|
|
13681
13849
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
13682
13850
|
__decorateClass([
|
|
13683
|
-
|
|
13851
|
+
Column78({ name: "is_verified", type: "boolean", default: false })
|
|
13684
13852
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
13685
13853
|
__decorateClass([
|
|
13686
|
-
|
|
13854
|
+
Column78({ name: "first_seen_date", type: "date" })
|
|
13687
13855
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
13688
13856
|
__decorateClass([
|
|
13689
|
-
|
|
13857
|
+
Column78({ name: "last_updated_date", type: "date" })
|
|
13690
13858
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
13691
13859
|
__decorateClass([
|
|
13692
|
-
|
|
13860
|
+
Column78({
|
|
13693
13861
|
name: "search_vector",
|
|
13694
13862
|
type: "tsvector",
|
|
13695
13863
|
nullable: true
|
|
13696
13864
|
})
|
|
13697
13865
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
13698
13866
|
SkillCatalog = __decorateClass([
|
|
13699
|
-
|
|
13867
|
+
Entity77("skill_catalogs")
|
|
13700
13868
|
], SkillCatalog);
|
|
13701
13869
|
|
|
13702
13870
|
// src/entities/job-role.entity.ts
|
|
13703
|
-
import { Entity as
|
|
13871
|
+
import { Entity as Entity78, Column as Column79 } from "typeorm";
|
|
13704
13872
|
var JobRoles = class extends BaseEntity {
|
|
13705
13873
|
};
|
|
13706
13874
|
__decorateClass([
|
|
13707
|
-
|
|
13875
|
+
Column79({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13708
13876
|
], JobRoles.prototype, "slug", 2);
|
|
13709
13877
|
__decorateClass([
|
|
13710
|
-
|
|
13878
|
+
Column79({ name: "name", type: "varchar", nullable: true })
|
|
13711
13879
|
], JobRoles.prototype, "name", 2);
|
|
13712
13880
|
__decorateClass([
|
|
13713
|
-
|
|
13881
|
+
Column79({ name: "is_active", type: "boolean", default: true })
|
|
13714
13882
|
], JobRoles.prototype, "isActive", 2);
|
|
13715
13883
|
JobRoles = __decorateClass([
|
|
13716
|
-
|
|
13884
|
+
Entity78("job_roles")
|
|
13717
13885
|
], JobRoles);
|
|
13718
13886
|
|
|
13719
13887
|
// src/entities/cms.entity.ts
|
|
13720
|
-
import { Entity as
|
|
13888
|
+
import { Entity as Entity79, Column as Column80 } from "typeorm";
|
|
13721
13889
|
var Cms = class extends BaseEntity {
|
|
13722
13890
|
};
|
|
13723
13891
|
__decorateClass([
|
|
13724
|
-
|
|
13892
|
+
Column80({ name: "title", type: "varchar", nullable: true })
|
|
13725
13893
|
], Cms.prototype, "title", 2);
|
|
13726
13894
|
__decorateClass([
|
|
13727
|
-
|
|
13895
|
+
Column80({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13728
13896
|
], Cms.prototype, "slug", 2);
|
|
13729
13897
|
__decorateClass([
|
|
13730
|
-
|
|
13898
|
+
Column80({ name: "content", type: "varchar", nullable: true })
|
|
13731
13899
|
], Cms.prototype, "content", 2);
|
|
13732
13900
|
__decorateClass([
|
|
13733
|
-
|
|
13901
|
+
Column80({ name: "is_active", type: "boolean", default: true })
|
|
13734
13902
|
], Cms.prototype, "isActive", 2);
|
|
13735
13903
|
Cms = __decorateClass([
|
|
13736
|
-
|
|
13904
|
+
Entity79("cms")
|
|
13737
13905
|
], Cms);
|
|
13738
13906
|
|
|
13739
13907
|
// src/entities/lead.entity.ts
|
|
13740
13908
|
import {
|
|
13741
|
-
Entity as
|
|
13742
|
-
Column as
|
|
13909
|
+
Entity as Entity80,
|
|
13910
|
+
Column as Column81
|
|
13743
13911
|
} from "typeorm";
|
|
13744
13912
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
13745
13913
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -13749,22 +13917,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
13749
13917
|
var Lead = class extends BaseEntity {
|
|
13750
13918
|
};
|
|
13751
13919
|
__decorateClass([
|
|
13752
|
-
|
|
13920
|
+
Column81({ name: "name", type: "varchar", nullable: true })
|
|
13753
13921
|
], Lead.prototype, "name", 2);
|
|
13754
13922
|
__decorateClass([
|
|
13755
|
-
|
|
13923
|
+
Column81({ name: "mobile_code", type: "varchar", nullable: true })
|
|
13756
13924
|
], Lead.prototype, "mobileCode", 2);
|
|
13757
13925
|
__decorateClass([
|
|
13758
|
-
|
|
13926
|
+
Column81({ name: "mobile", type: "varchar", nullable: true })
|
|
13759
13927
|
], Lead.prototype, "mobile", 2);
|
|
13760
13928
|
__decorateClass([
|
|
13761
|
-
|
|
13929
|
+
Column81({ name: "email", type: "varchar", nullable: true })
|
|
13762
13930
|
], Lead.prototype, "email", 2);
|
|
13763
13931
|
__decorateClass([
|
|
13764
|
-
|
|
13932
|
+
Column81({ name: "description", type: "varchar", nullable: true })
|
|
13765
13933
|
], Lead.prototype, "description", 2);
|
|
13766
13934
|
__decorateClass([
|
|
13767
|
-
|
|
13935
|
+
Column81({
|
|
13768
13936
|
name: "category",
|
|
13769
13937
|
type: "enum",
|
|
13770
13938
|
enum: CategoryEmum,
|
|
@@ -13772,7 +13940,7 @@ __decorateClass([
|
|
|
13772
13940
|
})
|
|
13773
13941
|
], Lead.prototype, "category", 2);
|
|
13774
13942
|
Lead = __decorateClass([
|
|
13775
|
-
|
|
13943
|
+
Entity80("leads")
|
|
13776
13944
|
], Lead);
|
|
13777
13945
|
|
|
13778
13946
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -14013,7 +14181,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
14013
14181
|
], ClientFreelancerRecommendation);
|
|
14014
14182
|
|
|
14015
14183
|
// src/entities/commission.entity.ts
|
|
14016
|
-
import { Entity as
|
|
14184
|
+
import { Entity as Entity81, Column as Column82 } from "typeorm";
|
|
14017
14185
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
14018
14186
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
14019
14187
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -14022,7 +14190,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
14022
14190
|
var Commission = class extends BaseEntity {
|
|
14023
14191
|
};
|
|
14024
14192
|
__decorateClass([
|
|
14025
|
-
|
|
14193
|
+
Column82({
|
|
14026
14194
|
name: "freelancer_commission_type",
|
|
14027
14195
|
type: "enum",
|
|
14028
14196
|
enum: CommissionTypeEnum,
|
|
@@ -14030,10 +14198,10 @@ __decorateClass([
|
|
|
14030
14198
|
})
|
|
14031
14199
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
14032
14200
|
__decorateClass([
|
|
14033
|
-
|
|
14201
|
+
Column82({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
14034
14202
|
], Commission.prototype, "freelancerCommission", 2);
|
|
14035
14203
|
__decorateClass([
|
|
14036
|
-
|
|
14204
|
+
Column82({
|
|
14037
14205
|
name: "client_commission_type",
|
|
14038
14206
|
type: "enum",
|
|
14039
14207
|
enum: CommissionTypeEnum,
|
|
@@ -14041,58 +14209,58 @@ __decorateClass([
|
|
|
14041
14209
|
})
|
|
14042
14210
|
], Commission.prototype, "clientCommissionType", 2);
|
|
14043
14211
|
__decorateClass([
|
|
14044
|
-
|
|
14212
|
+
Column82({ name: "client_commission", type: "integer", default: 0 })
|
|
14045
14213
|
], Commission.prototype, "clientCommission", 2);
|
|
14046
14214
|
Commission = __decorateClass([
|
|
14047
|
-
|
|
14215
|
+
Entity81("commissions")
|
|
14048
14216
|
], Commission);
|
|
14049
14217
|
|
|
14050
14218
|
// src/entities/calendly-meeting-log.entity.ts
|
|
14051
14219
|
import {
|
|
14052
|
-
Entity as
|
|
14053
|
-
Column as
|
|
14054
|
-
Index as
|
|
14220
|
+
Entity as Entity82,
|
|
14221
|
+
Column as Column83,
|
|
14222
|
+
Index as Index68
|
|
14055
14223
|
} from "typeorm";
|
|
14056
14224
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
14057
14225
|
};
|
|
14058
14226
|
__decorateClass([
|
|
14059
|
-
|
|
14060
|
-
|
|
14227
|
+
Column83({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
14228
|
+
Index68()
|
|
14061
14229
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
14062
14230
|
__decorateClass([
|
|
14063
|
-
|
|
14231
|
+
Column83({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
14064
14232
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
14065
14233
|
__decorateClass([
|
|
14066
|
-
|
|
14234
|
+
Column83({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14067
14235
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
14068
14236
|
CalendlyMeetingLog = __decorateClass([
|
|
14069
|
-
|
|
14237
|
+
Entity82("calendly_meeting_logs")
|
|
14070
14238
|
], CalendlyMeetingLog);
|
|
14071
14239
|
|
|
14072
14240
|
// src/entities/zoom-meeting-log.entity.ts
|
|
14073
14241
|
import {
|
|
14074
|
-
Entity as
|
|
14075
|
-
Column as
|
|
14076
|
-
Index as
|
|
14242
|
+
Entity as Entity83,
|
|
14243
|
+
Column as Column84,
|
|
14244
|
+
Index as Index69
|
|
14077
14245
|
} from "typeorm";
|
|
14078
14246
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
14079
14247
|
};
|
|
14080
14248
|
__decorateClass([
|
|
14081
|
-
|
|
14082
|
-
|
|
14249
|
+
Column84({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
14250
|
+
Index69()
|
|
14083
14251
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
14084
14252
|
__decorateClass([
|
|
14085
|
-
|
|
14253
|
+
Column84({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
14086
14254
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
14087
14255
|
__decorateClass([
|
|
14088
|
-
|
|
14256
|
+
Column84({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14089
14257
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
14090
14258
|
ZoomMeetingLog = __decorateClass([
|
|
14091
|
-
|
|
14259
|
+
Entity83("zoom_meeting_logs")
|
|
14092
14260
|
], ZoomMeetingLog);
|
|
14093
14261
|
|
|
14094
14262
|
// src/entities/docuseal.entity.ts
|
|
14095
|
-
import { Entity as
|
|
14263
|
+
import { Entity as Entity84, Column as Column85, Index as Index70 } from "typeorm";
|
|
14096
14264
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
14097
14265
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
14098
14266
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -14102,160 +14270,160 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
14102
14270
|
var DocuSeal = class extends BaseEntity {
|
|
14103
14271
|
};
|
|
14104
14272
|
__decorateClass([
|
|
14105
|
-
|
|
14106
|
-
|
|
14273
|
+
Column85({ name: "reference_id", type: "integer", nullable: false }),
|
|
14274
|
+
Index70()
|
|
14107
14275
|
], DocuSeal.prototype, "referenceId", 2);
|
|
14108
14276
|
__decorateClass([
|
|
14109
|
-
|
|
14110
|
-
|
|
14277
|
+
Column85({ name: "submitter_id", type: "integer", nullable: true }),
|
|
14278
|
+
Index70()
|
|
14111
14279
|
], DocuSeal.prototype, "submitterId", 2);
|
|
14112
14280
|
__decorateClass([
|
|
14113
|
-
|
|
14281
|
+
Column85({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
14114
14282
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
14115
14283
|
__decorateClass([
|
|
14116
|
-
|
|
14284
|
+
Column85({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
14117
14285
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
14118
14286
|
__decorateClass([
|
|
14119
|
-
|
|
14287
|
+
Column85({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
14120
14288
|
], DocuSeal.prototype, "type", 2);
|
|
14121
14289
|
DocuSeal = __decorateClass([
|
|
14122
|
-
|
|
14290
|
+
Entity84("docuseal")
|
|
14123
14291
|
], DocuSeal);
|
|
14124
14292
|
|
|
14125
14293
|
// src/entities/stripe-logs.entity.ts
|
|
14126
|
-
import { Entity as
|
|
14294
|
+
import { Entity as Entity85, Column as Column86 } from "typeorm";
|
|
14127
14295
|
var StripeLog = class extends BaseEntity {
|
|
14128
14296
|
};
|
|
14129
14297
|
__decorateClass([
|
|
14130
|
-
|
|
14298
|
+
Column86({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
14131
14299
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
14132
14300
|
__decorateClass([
|
|
14133
|
-
|
|
14301
|
+
Column86({ name: "event_type", type: "varchar", nullable: true })
|
|
14134
14302
|
], StripeLog.prototype, "eventType", 2);
|
|
14135
14303
|
__decorateClass([
|
|
14136
|
-
|
|
14304
|
+
Column86({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
14137
14305
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
14138
14306
|
__decorateClass([
|
|
14139
|
-
|
|
14307
|
+
Column86({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
14140
14308
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
14141
14309
|
StripeLog = __decorateClass([
|
|
14142
|
-
|
|
14310
|
+
Entity85("stripe_logs")
|
|
14143
14311
|
], StripeLog);
|
|
14144
14312
|
|
|
14145
14313
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
14146
14314
|
import {
|
|
14147
|
-
Entity as
|
|
14148
|
-
Column as
|
|
14149
|
-
Index as
|
|
14315
|
+
Entity as Entity86,
|
|
14316
|
+
Column as Column87,
|
|
14317
|
+
Index as Index71
|
|
14150
14318
|
} from "typeorm";
|
|
14151
14319
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
14152
14320
|
};
|
|
14153
14321
|
__decorateClass([
|
|
14154
|
-
|
|
14322
|
+
Column87({
|
|
14155
14323
|
type: "varchar",
|
|
14156
14324
|
length: 100,
|
|
14157
14325
|
unique: true,
|
|
14158
14326
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
14159
14327
|
}),
|
|
14160
|
-
|
|
14328
|
+
Index71()
|
|
14161
14329
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
14162
14330
|
__decorateClass([
|
|
14163
|
-
|
|
14331
|
+
Column87({
|
|
14164
14332
|
type: "jsonb",
|
|
14165
14333
|
comment: "JSON object containing weight values",
|
|
14166
14334
|
nullable: true
|
|
14167
14335
|
})
|
|
14168
14336
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
14169
14337
|
__decorateClass([
|
|
14170
|
-
|
|
14338
|
+
Column87({ name: "is_active", type: "boolean", default: true })
|
|
14171
14339
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
14172
14340
|
RecommendationWeightageConfig = __decorateClass([
|
|
14173
|
-
|
|
14341
|
+
Entity86("recommendation_weightage_configs")
|
|
14174
14342
|
], RecommendationWeightageConfig);
|
|
14175
14343
|
|
|
14176
14344
|
// src/entities/global-setting.entity.ts
|
|
14177
14345
|
import {
|
|
14178
|
-
Entity as
|
|
14179
|
-
Column as
|
|
14180
|
-
Index as
|
|
14346
|
+
Entity as Entity87,
|
|
14347
|
+
Column as Column88,
|
|
14348
|
+
Index as Index72
|
|
14181
14349
|
} from "typeorm";
|
|
14182
14350
|
var GlobalSetting = class extends BaseEntity {
|
|
14183
14351
|
};
|
|
14184
14352
|
__decorateClass([
|
|
14185
|
-
|
|
14353
|
+
Column88({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
14186
14354
|
], GlobalSetting.prototype, "key", 2);
|
|
14187
14355
|
__decorateClass([
|
|
14188
|
-
|
|
14356
|
+
Column88({ name: "value", type: "text", nullable: false })
|
|
14189
14357
|
], GlobalSetting.prototype, "value", 2);
|
|
14190
14358
|
GlobalSetting = __decorateClass([
|
|
14191
|
-
|
|
14192
|
-
|
|
14359
|
+
Entity87("global_settings"),
|
|
14360
|
+
Index72(["key"], { unique: true })
|
|
14193
14361
|
], GlobalSetting);
|
|
14194
14362
|
|
|
14195
14363
|
// src/entities/plan.entity.ts
|
|
14196
14364
|
import {
|
|
14197
|
-
Entity as
|
|
14198
|
-
Column as
|
|
14199
|
-
Index as
|
|
14365
|
+
Entity as Entity90,
|
|
14366
|
+
Column as Column91,
|
|
14367
|
+
Index as Index75,
|
|
14200
14368
|
Check as Check4,
|
|
14201
14369
|
BeforeInsert as BeforeInsert2,
|
|
14202
14370
|
BeforeUpdate as BeforeUpdate2,
|
|
14203
|
-
OneToMany as
|
|
14371
|
+
OneToMany as OneToMany30
|
|
14204
14372
|
} from "typeorm";
|
|
14205
14373
|
|
|
14206
14374
|
// src/entities/plan-feature.entity.ts
|
|
14207
14375
|
import {
|
|
14208
|
-
Entity as
|
|
14209
|
-
Column as
|
|
14210
|
-
ManyToOne as
|
|
14211
|
-
JoinColumn as
|
|
14212
|
-
Index as
|
|
14376
|
+
Entity as Entity88,
|
|
14377
|
+
Column as Column89,
|
|
14378
|
+
ManyToOne as ManyToOne70,
|
|
14379
|
+
JoinColumn as JoinColumn71,
|
|
14380
|
+
Index as Index73,
|
|
14213
14381
|
Check as Check2
|
|
14214
14382
|
} from "typeorm";
|
|
14215
14383
|
var PlanFeature = class extends BaseEntity {
|
|
14216
14384
|
};
|
|
14217
14385
|
// individual index to find features by plan
|
|
14218
14386
|
__decorateClass([
|
|
14219
|
-
|
|
14220
|
-
|
|
14387
|
+
Column89({ name: "plan_id", type: "integer", nullable: false }),
|
|
14388
|
+
Index73()
|
|
14221
14389
|
], PlanFeature.prototype, "planId", 2);
|
|
14222
14390
|
__decorateClass([
|
|
14223
|
-
|
|
14391
|
+
ManyToOne70(() => Plan, (plan) => plan.features, {
|
|
14224
14392
|
onDelete: "CASCADE",
|
|
14225
14393
|
nullable: false
|
|
14226
14394
|
}),
|
|
14227
|
-
|
|
14395
|
+
JoinColumn71({ name: "plan_id" })
|
|
14228
14396
|
], PlanFeature.prototype, "plan", 2);
|
|
14229
14397
|
__decorateClass([
|
|
14230
|
-
|
|
14398
|
+
Column89({ name: "name", type: "varchar", length: 200 })
|
|
14231
14399
|
], PlanFeature.prototype, "name", 2);
|
|
14232
14400
|
__decorateClass([
|
|
14233
|
-
|
|
14234
|
-
|
|
14401
|
+
Column89({ name: "slug", type: "varchar", length: 100 }),
|
|
14402
|
+
Index73()
|
|
14235
14403
|
], PlanFeature.prototype, "slug", 2);
|
|
14236
14404
|
__decorateClass([
|
|
14237
|
-
|
|
14405
|
+
Column89({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14238
14406
|
], PlanFeature.prototype, "tooltip", 2);
|
|
14239
14407
|
__decorateClass([
|
|
14240
|
-
|
|
14408
|
+
Column89({ name: "sort_order", type: "smallint", default: 0 })
|
|
14241
14409
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
14242
14410
|
__decorateClass([
|
|
14243
|
-
|
|
14411
|
+
Column89({ name: "is_active", type: "boolean", default: true })
|
|
14244
14412
|
], PlanFeature.prototype, "isActive", 2);
|
|
14245
14413
|
PlanFeature = __decorateClass([
|
|
14246
|
-
|
|
14247
|
-
|
|
14248
|
-
|
|
14414
|
+
Entity88("plan_features"),
|
|
14415
|
+
Index73("idx_plan_features_plan_id", ["planId"]),
|
|
14416
|
+
Index73("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
14249
14417
|
Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
14250
14418
|
], PlanFeature);
|
|
14251
14419
|
|
|
14252
14420
|
// src/entities/plan-pricing.entity.ts
|
|
14253
14421
|
import {
|
|
14254
|
-
Entity as
|
|
14255
|
-
Column as
|
|
14256
|
-
ManyToOne as
|
|
14257
|
-
JoinColumn as
|
|
14258
|
-
Index as
|
|
14422
|
+
Entity as Entity89,
|
|
14423
|
+
Column as Column90,
|
|
14424
|
+
ManyToOne as ManyToOne71,
|
|
14425
|
+
JoinColumn as JoinColumn72,
|
|
14426
|
+
Index as Index74,
|
|
14259
14427
|
Unique,
|
|
14260
14428
|
Check as Check3,
|
|
14261
14429
|
BeforeInsert,
|
|
@@ -14315,56 +14483,56 @@ var PlanPricing = class extends BaseEntity {
|
|
|
14315
14483
|
};
|
|
14316
14484
|
// individual index to find pricing by plan
|
|
14317
14485
|
__decorateClass([
|
|
14318
|
-
|
|
14319
|
-
|
|
14486
|
+
Column90({ name: "plan_id", type: "integer", nullable: false }),
|
|
14487
|
+
Index74()
|
|
14320
14488
|
], PlanPricing.prototype, "planId", 2);
|
|
14321
14489
|
__decorateClass([
|
|
14322
|
-
|
|
14490
|
+
ManyToOne71(() => Plan, (plan) => plan.pricing, {
|
|
14323
14491
|
onDelete: "CASCADE",
|
|
14324
14492
|
nullable: false
|
|
14325
14493
|
}),
|
|
14326
|
-
|
|
14494
|
+
JoinColumn72({ name: "plan_id" })
|
|
14327
14495
|
], PlanPricing.prototype, "plan", 2);
|
|
14328
14496
|
__decorateClass([
|
|
14329
|
-
|
|
14497
|
+
Column90({
|
|
14330
14498
|
name: "billing_cycle",
|
|
14331
14499
|
type: "enum",
|
|
14332
14500
|
enum: PlanPricingBillingCycleEnum
|
|
14333
14501
|
})
|
|
14334
14502
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
14335
14503
|
__decorateClass([
|
|
14336
|
-
|
|
14504
|
+
Column90({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
14337
14505
|
], PlanPricing.prototype, "price", 2);
|
|
14338
14506
|
__decorateClass([
|
|
14339
|
-
|
|
14507
|
+
Column90({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
14340
14508
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
14341
14509
|
__decorateClass([
|
|
14342
|
-
|
|
14510
|
+
Column90({ name: "discount_pct", type: "smallint", nullable: true })
|
|
14343
14511
|
], PlanPricing.prototype, "discountPct", 2);
|
|
14344
14512
|
__decorateClass([
|
|
14345
|
-
|
|
14513
|
+
Column90({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
14346
14514
|
], PlanPricing.prototype, "currency", 2);
|
|
14347
14515
|
__decorateClass([
|
|
14348
|
-
|
|
14516
|
+
Column90({ name: "is_free", type: "boolean", default: false })
|
|
14349
14517
|
], PlanPricing.prototype, "isFree", 2);
|
|
14350
14518
|
__decorateClass([
|
|
14351
|
-
|
|
14519
|
+
Column90({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
14352
14520
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
14353
14521
|
__decorateClass([
|
|
14354
|
-
|
|
14522
|
+
Column90({ name: "trial_days", type: "smallint", default: 0 })
|
|
14355
14523
|
], PlanPricing.prototype, "trialDays", 2);
|
|
14356
14524
|
__decorateClass([
|
|
14357
|
-
|
|
14525
|
+
Column90({ name: "is_active", type: "boolean", default: true })
|
|
14358
14526
|
], PlanPricing.prototype, "isActive", 2);
|
|
14359
14527
|
__decorateClass([
|
|
14360
14528
|
BeforeInsert(),
|
|
14361
14529
|
BeforeUpdate()
|
|
14362
14530
|
], PlanPricing.prototype, "sanitize", 1);
|
|
14363
14531
|
PlanPricing = __decorateClass([
|
|
14364
|
-
|
|
14532
|
+
Entity89("plan_pricings"),
|
|
14365
14533
|
Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
14366
|
-
|
|
14367
|
-
|
|
14534
|
+
Index74("idx_plan_pricings_plan_id", ["planId"]),
|
|
14535
|
+
Index74("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
14368
14536
|
Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
14369
14537
|
Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
14370
14538
|
Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
@@ -14386,22 +14554,22 @@ var Plan = class extends BaseEntity {
|
|
|
14386
14554
|
}
|
|
14387
14555
|
};
|
|
14388
14556
|
__decorateClass([
|
|
14389
|
-
|
|
14557
|
+
Column91({ name: "name", type: "varchar", length: 100 })
|
|
14390
14558
|
], Plan.prototype, "name", 2);
|
|
14391
14559
|
__decorateClass([
|
|
14392
|
-
|
|
14560
|
+
Column91({ name: "slug", type: "varchar", length: 100 })
|
|
14393
14561
|
], Plan.prototype, "slug", 2);
|
|
14394
14562
|
__decorateClass([
|
|
14395
|
-
|
|
14563
|
+
Column91({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
14396
14564
|
], Plan.prototype, "badgeLabel", 2);
|
|
14397
14565
|
__decorateClass([
|
|
14398
|
-
|
|
14566
|
+
Column91({ name: "sort_order", type: "smallint", default: 0 })
|
|
14399
14567
|
], Plan.prototype, "sortOrder", 2);
|
|
14400
14568
|
__decorateClass([
|
|
14401
|
-
|
|
14569
|
+
Column91({ name: "is_active", type: "boolean", default: true })
|
|
14402
14570
|
], Plan.prototype, "isActive", 2);
|
|
14403
14571
|
__decorateClass([
|
|
14404
|
-
|
|
14572
|
+
Column91({
|
|
14405
14573
|
name: "plan_type",
|
|
14406
14574
|
type: "enum",
|
|
14407
14575
|
enum: PlanTypeEnum,
|
|
@@ -14409,35 +14577,35 @@ __decorateClass([
|
|
|
14409
14577
|
})
|
|
14410
14578
|
], Plan.prototype, "planType", 2);
|
|
14411
14579
|
__decorateClass([
|
|
14412
|
-
|
|
14580
|
+
Column91({ name: "metadata", type: "jsonb", default: {} })
|
|
14413
14581
|
], Plan.prototype, "metadata", 2);
|
|
14414
14582
|
__decorateClass([
|
|
14415
14583
|
BeforeInsert2(),
|
|
14416
14584
|
BeforeUpdate2()
|
|
14417
14585
|
], Plan.prototype, "createSlug", 1);
|
|
14418
14586
|
__decorateClass([
|
|
14419
|
-
|
|
14587
|
+
OneToMany30(() => PlanFeature, (feature) => feature.plan, {
|
|
14420
14588
|
cascade: ["insert", "update"]
|
|
14421
14589
|
})
|
|
14422
14590
|
], Plan.prototype, "features", 2);
|
|
14423
14591
|
__decorateClass([
|
|
14424
|
-
|
|
14592
|
+
OneToMany30(() => PlanPricing, (pricing) => pricing.plan, {
|
|
14425
14593
|
cascade: ["insert", "update"]
|
|
14426
14594
|
})
|
|
14427
14595
|
], Plan.prototype, "pricing", 2);
|
|
14428
14596
|
Plan = __decorateClass([
|
|
14429
|
-
|
|
14430
|
-
|
|
14431
|
-
|
|
14597
|
+
Entity90("plans"),
|
|
14598
|
+
Index75("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14599
|
+
Index75("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
14432
14600
|
Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
14433
14601
|
], Plan);
|
|
14434
14602
|
|
|
14435
14603
|
// src/entities/subscription-feature.entity.ts
|
|
14436
14604
|
import {
|
|
14437
|
-
Entity as
|
|
14438
|
-
Column as
|
|
14605
|
+
Entity as Entity91,
|
|
14606
|
+
Column as Column92,
|
|
14439
14607
|
Check as Check5,
|
|
14440
|
-
Index as
|
|
14608
|
+
Index as Index76,
|
|
14441
14609
|
BeforeInsert as BeforeInsert3,
|
|
14442
14610
|
BeforeUpdate as BeforeUpdate3
|
|
14443
14611
|
} from "typeorm";
|
|
@@ -14455,28 +14623,28 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
14455
14623
|
}
|
|
14456
14624
|
};
|
|
14457
14625
|
__decorateClass([
|
|
14458
|
-
|
|
14626
|
+
Column92({ name: "name", type: "varchar", length: 200 })
|
|
14459
14627
|
], SubscriptionFeature.prototype, "name", 2);
|
|
14460
14628
|
__decorateClass([
|
|
14461
|
-
|
|
14629
|
+
Column92({ name: "slug", type: "varchar", length: 100 })
|
|
14462
14630
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
14463
14631
|
__decorateClass([
|
|
14464
|
-
|
|
14632
|
+
Column92({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
14465
14633
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
14466
14634
|
__decorateClass([
|
|
14467
|
-
|
|
14635
|
+
Column92({ name: "sort_order", type: "smallint", default: 0 })
|
|
14468
14636
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
14469
14637
|
__decorateClass([
|
|
14470
|
-
|
|
14638
|
+
Column92({ name: "is_active", type: "boolean", default: true })
|
|
14471
14639
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
14472
14640
|
__decorateClass([
|
|
14473
14641
|
BeforeInsert3(),
|
|
14474
14642
|
BeforeUpdate3()
|
|
14475
14643
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
14476
14644
|
SubscriptionFeature = __decorateClass([
|
|
14477
|
-
|
|
14478
|
-
|
|
14479
|
-
|
|
14645
|
+
Entity91("subscription_features"),
|
|
14646
|
+
Index76("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14647
|
+
Index76("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
14480
14648
|
Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
14481
14649
|
], SubscriptionFeature);
|
|
14482
14650
|
export {
|
|
@@ -14846,6 +15014,11 @@ export {
|
|
|
14846
15014
|
TaskDeliverable,
|
|
14847
15015
|
TaskDeliverableTypeEnum,
|
|
14848
15016
|
TaskPriorityEnum,
|
|
15017
|
+
TaskQuery,
|
|
15018
|
+
TaskQueryCategoryEnum,
|
|
15019
|
+
TaskQueryMessage,
|
|
15020
|
+
TaskQueryStatusEnum,
|
|
15021
|
+
TaskQueryUserTypeEnum,
|
|
14849
15022
|
TaskResource,
|
|
14850
15023
|
TaskResourceTypeEnum,
|
|
14851
15024
|
TaskStatusEnum,
|