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