@experts_hub/shared 1.0.682 → 1.0.685
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 +5 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/task-checklist-item.entity.d.ts +9 -0
- package/dist/entities/task-deliverable.entity.d.ts +14 -0
- package/dist/entities/task-resource.entity.d.ts +16 -0
- package/dist/entities/task-subtask.entity.d.ts +16 -0
- package/dist/entities/task.entity.d.ts +43 -0
- package/dist/entities/timesheets.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +3 -0
- package/dist/index.d.mts +191 -1
- package/dist/index.d.ts +191 -1
- package/dist/index.js +1417 -849
- package/dist/index.mjs +1353 -790
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/task/dto/add-client-remark.dto.d.ts +3 -0
- package/dist/modules/task/dto/create-task.dto.d.ts +35 -0
- package/dist/modules/task/dto/index.d.ts +6 -0
- package/dist/modules/task/dto/mark-task-as-completed.dto.d.ts +3 -0
- package/dist/modules/task/dto/task-uuid-param.dto.d.ts +3 -0
- package/dist/modules/task/dto/update-estimate-time.dto.d.ts +4 -0
- package/dist/modules/task/dto/update-task.dto.d.ts +35 -0
- package/dist/modules/task/index.d.ts +2 -0
- package/dist/modules/task/pattern/pattern.d.ts +11 -0
- 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
|
|
991
|
+
Entity as Entity71,
|
|
992
|
+
Column as Column72,
|
|
993
993
|
OneToMany as OneToMany24,
|
|
994
|
-
OneToOne as
|
|
995
|
-
Index as
|
|
996
|
-
ManyToOne as
|
|
997
|
-
JoinColumn as
|
|
994
|
+
OneToOne as OneToOne12,
|
|
995
|
+
Index as Index64,
|
|
996
|
+
ManyToOne as ManyToOne66,
|
|
997
|
+
JoinColumn as JoinColumn67
|
|
998
998
|
} from "typeorm";
|
|
999
999
|
|
|
1000
1000
|
// src/entities/base.entity.ts
|
|
@@ -1871,11 +1871,11 @@ FreelancerProfile = __decorateClass([
|
|
|
1871
1871
|
|
|
1872
1872
|
// src/entities/job.entity.ts
|
|
1873
1873
|
import {
|
|
1874
|
-
Entity as
|
|
1875
|
-
Column as
|
|
1876
|
-
Index as
|
|
1877
|
-
ManyToOne as
|
|
1878
|
-
JoinColumn as
|
|
1874
|
+
Entity as Entity39,
|
|
1875
|
+
Column as Column40,
|
|
1876
|
+
Index as Index32,
|
|
1877
|
+
ManyToOne as ManyToOne38,
|
|
1878
|
+
JoinColumn as JoinColumn38,
|
|
1879
1879
|
OneToMany as OneToMany15
|
|
1880
1880
|
} from "typeorm";
|
|
1881
1881
|
|
|
@@ -3779,7 +3779,255 @@ Contract = __decorateClass([
|
|
|
3779
3779
|
], Contract);
|
|
3780
3780
|
|
|
3781
3781
|
// src/entities/timesheets.entity.ts
|
|
3782
|
-
import { Entity as
|
|
3782
|
+
import { Entity as Entity36, Column as Column37, Index as Index29, JoinColumn as JoinColumn35, ManyToOne as ManyToOne35 } from "typeorm";
|
|
3783
|
+
|
|
3784
|
+
// src/entities/task.entity.ts
|
|
3785
|
+
import { Entity as Entity35, Column as Column36, Index as Index28, ManyToOne as ManyToOne34, JoinColumn as JoinColumn34, OneToMany as OneToMany14 } from "typeorm";
|
|
3786
|
+
|
|
3787
|
+
// src/entities/task-deliverable.entity.ts
|
|
3788
|
+
import { Entity as Entity31, Column as Column32, Index as Index24, ManyToOne as ManyToOne30, JoinColumn as JoinColumn30 } from "typeorm";
|
|
3789
|
+
var TaskDeliverableTypeEnum = /* @__PURE__ */ ((TaskDeliverableTypeEnum2) => {
|
|
3790
|
+
TaskDeliverableTypeEnum2["REQUIRED"] = "REQUIRED";
|
|
3791
|
+
TaskDeliverableTypeEnum2["NEED_TO_ADD"] = "NEED_TO_ADD";
|
|
3792
|
+
TaskDeliverableTypeEnum2["OTHER"] = "OTHER";
|
|
3793
|
+
return TaskDeliverableTypeEnum2;
|
|
3794
|
+
})(TaskDeliverableTypeEnum || {});
|
|
3795
|
+
var TaskDeliverable = class extends BaseEntity {
|
|
3796
|
+
};
|
|
3797
|
+
__decorateClass([
|
|
3798
|
+
Column32({ name: "task_id", type: "integer" }),
|
|
3799
|
+
Index24()
|
|
3800
|
+
], TaskDeliverable.prototype, "taskId", 2);
|
|
3801
|
+
__decorateClass([
|
|
3802
|
+
ManyToOne30(() => Task, (task) => task.deliverables, { onDelete: "CASCADE" }),
|
|
3803
|
+
JoinColumn30({ name: "task_id" })
|
|
3804
|
+
], TaskDeliverable.prototype, "task", 2);
|
|
3805
|
+
__decorateClass([
|
|
3806
|
+
Column32({ name: "name", type: "varchar", length: 500 })
|
|
3807
|
+
], TaskDeliverable.prototype, "name", 2);
|
|
3808
|
+
__decorateClass([
|
|
3809
|
+
Column32({ name: "description", type: "varchar", length: 1e3, nullable: true })
|
|
3810
|
+
], TaskDeliverable.prototype, "description", 2);
|
|
3811
|
+
__decorateClass([
|
|
3812
|
+
Column32({ name: "type", type: "enum", enum: TaskDeliverableTypeEnum })
|
|
3813
|
+
], TaskDeliverable.prototype, "type", 2);
|
|
3814
|
+
TaskDeliverable = __decorateClass([
|
|
3815
|
+
Entity31("task_deliverables")
|
|
3816
|
+
], TaskDeliverable);
|
|
3817
|
+
|
|
3818
|
+
// src/entities/task-resource.entity.ts
|
|
3819
|
+
import { Entity as Entity32, Column as Column33, Index as Index25, ManyToOne as ManyToOne31, JoinColumn as JoinColumn31 } from "typeorm";
|
|
3820
|
+
var TaskResourceTypeEnum = /* @__PURE__ */ ((TaskResourceTypeEnum2) => {
|
|
3821
|
+
TaskResourceTypeEnum2["GITHUB"] = "GITHUB";
|
|
3822
|
+
TaskResourceTypeEnum2["JIRA_TASK"] = "JIRA_TASK";
|
|
3823
|
+
TaskResourceTypeEnum2["API_DOCUMENTATION"] = "API_DOCUMENTATION";
|
|
3824
|
+
return TaskResourceTypeEnum2;
|
|
3825
|
+
})(TaskResourceTypeEnum || {});
|
|
3826
|
+
var TaskResource = class extends BaseEntity {
|
|
3827
|
+
};
|
|
3828
|
+
__decorateClass([
|
|
3829
|
+
Column33({ name: "task_id", type: "integer" }),
|
|
3830
|
+
Index25()
|
|
3831
|
+
], TaskResource.prototype, "taskId", 2);
|
|
3832
|
+
__decorateClass([
|
|
3833
|
+
ManyToOne31(() => Task, (task) => task.resources, { onDelete: "CASCADE" }),
|
|
3834
|
+
JoinColumn31({ name: "task_id" })
|
|
3835
|
+
], TaskResource.prototype, "task", 2);
|
|
3836
|
+
__decorateClass([
|
|
3837
|
+
Column33({
|
|
3838
|
+
name: "resource_type",
|
|
3839
|
+
type: "enum",
|
|
3840
|
+
enum: TaskResourceTypeEnum,
|
|
3841
|
+
nullable: true
|
|
3842
|
+
})
|
|
3843
|
+
], TaskResource.prototype, "resourceType", 2);
|
|
3844
|
+
__decorateClass([
|
|
3845
|
+
Column33({ name: "name", type: "varchar", length: 500 })
|
|
3846
|
+
], TaskResource.prototype, "name", 2);
|
|
3847
|
+
__decorateClass([
|
|
3848
|
+
Column33({ name: "description", type: "varchar", length: 1e3, nullable: true })
|
|
3849
|
+
], TaskResource.prototype, "description", 2);
|
|
3850
|
+
__decorateClass([
|
|
3851
|
+
Column33({ name: "type", type: "enum", enum: TaskResourceTypeEnum })
|
|
3852
|
+
], TaskResource.prototype, "type", 2);
|
|
3853
|
+
__decorateClass([
|
|
3854
|
+
Column33({ name: "url", type: "varchar", length: 2048, nullable: true })
|
|
3855
|
+
], TaskResource.prototype, "url", 2);
|
|
3856
|
+
TaskResource = __decorateClass([
|
|
3857
|
+
Entity32("task_resources")
|
|
3858
|
+
], TaskResource);
|
|
3859
|
+
|
|
3860
|
+
// src/entities/task-checklist-item.entity.ts
|
|
3861
|
+
import { Entity as Entity33, Column as Column34, Index as Index26, ManyToOne as ManyToOne32, JoinColumn as JoinColumn32 } from "typeorm";
|
|
3862
|
+
var TaskChecklistItem = class extends BaseEntity {
|
|
3863
|
+
};
|
|
3864
|
+
__decorateClass([
|
|
3865
|
+
Column34({ name: "task_id", type: "integer" }),
|
|
3866
|
+
Index26()
|
|
3867
|
+
], TaskChecklistItem.prototype, "taskId", 2);
|
|
3868
|
+
__decorateClass([
|
|
3869
|
+
ManyToOne32(() => Task, (task) => task.checklistItems, { onDelete: "CASCADE" }),
|
|
3870
|
+
JoinColumn32({ name: "task_id" })
|
|
3871
|
+
], TaskChecklistItem.prototype, "task", 2);
|
|
3872
|
+
__decorateClass([
|
|
3873
|
+
Column34({ name: "name", type: "varchar", length: 1e3 })
|
|
3874
|
+
], TaskChecklistItem.prototype, "name", 2);
|
|
3875
|
+
__decorateClass([
|
|
3876
|
+
Column34({ name: "is_checked", type: "boolean", default: false })
|
|
3877
|
+
], TaskChecklistItem.prototype, "isChecked", 2);
|
|
3878
|
+
__decorateClass([
|
|
3879
|
+
Column34({ name: "note", type: "varchar", length: 1e3, nullable: true })
|
|
3880
|
+
], TaskChecklistItem.prototype, "note", 2);
|
|
3881
|
+
TaskChecklistItem = __decorateClass([
|
|
3882
|
+
Entity33("task_checklist_items")
|
|
3883
|
+
], TaskChecklistItem);
|
|
3884
|
+
|
|
3885
|
+
// src/entities/task-subtask.entity.ts
|
|
3886
|
+
import { Entity as Entity34, Column as Column35, Index as Index27, ManyToOne as ManyToOne33, JoinColumn as JoinColumn33 } from "typeorm";
|
|
3887
|
+
var TaskSubtaskStatusEnum = /* @__PURE__ */ ((TaskSubtaskStatusEnum2) => {
|
|
3888
|
+
TaskSubtaskStatusEnum2["PENDING"] = "PENDING";
|
|
3889
|
+
TaskSubtaskStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
3890
|
+
TaskSubtaskStatusEnum2["NOT_YET_STARTED"] = "NOT_YET_STARTED";
|
|
3891
|
+
TaskSubtaskStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
3892
|
+
TaskSubtaskStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3893
|
+
return TaskSubtaskStatusEnum2;
|
|
3894
|
+
})(TaskSubtaskStatusEnum || {});
|
|
3895
|
+
var TaskSubtask = class extends BaseEntity {
|
|
3896
|
+
};
|
|
3897
|
+
__decorateClass([
|
|
3898
|
+
Column35({ name: "task_id", type: "integer" }),
|
|
3899
|
+
Index27()
|
|
3900
|
+
], TaskSubtask.prototype, "taskId", 2);
|
|
3901
|
+
__decorateClass([
|
|
3902
|
+
ManyToOne33(() => Task, (task) => task.subtasks, { onDelete: "CASCADE" }),
|
|
3903
|
+
JoinColumn33({ name: "task_id" })
|
|
3904
|
+
], TaskSubtask.prototype, "task", 2);
|
|
3905
|
+
__decorateClass([
|
|
3906
|
+
Column35({ name: "subtask_name", type: "varchar", length: 500 })
|
|
3907
|
+
], TaskSubtask.prototype, "subtaskName", 2);
|
|
3908
|
+
__decorateClass([
|
|
3909
|
+
Column35({ name: "due_date", type: "date", nullable: true })
|
|
3910
|
+
], TaskSubtask.prototype, "dueDate", 2);
|
|
3911
|
+
__decorateClass([
|
|
3912
|
+
Column35({ name: "status", type: "enum", enum: TaskSubtaskStatusEnum, default: "PENDING" /* PENDING */ })
|
|
3913
|
+
], TaskSubtask.prototype, "status", 2);
|
|
3914
|
+
TaskSubtask = __decorateClass([
|
|
3915
|
+
Entity34("task_subtasks")
|
|
3916
|
+
], TaskSubtask);
|
|
3917
|
+
|
|
3918
|
+
// src/entities/task.entity.ts
|
|
3919
|
+
var TaskPriorityEnum = /* @__PURE__ */ ((TaskPriorityEnum2) => {
|
|
3920
|
+
TaskPriorityEnum2["LOW"] = "LOW";
|
|
3921
|
+
TaskPriorityEnum2["MEDIUM"] = "MEDIUM";
|
|
3922
|
+
TaskPriorityEnum2["HIGH"] = "HIGH";
|
|
3923
|
+
return TaskPriorityEnum2;
|
|
3924
|
+
})(TaskPriorityEnum || {});
|
|
3925
|
+
var TaskStatusEnum = /* @__PURE__ */ ((TaskStatusEnum2) => {
|
|
3926
|
+
TaskStatusEnum2["DRAFTED"] = "DRAFTED";
|
|
3927
|
+
TaskStatusEnum2["SCHEDULED"] = "SCHEDULED";
|
|
3928
|
+
TaskStatusEnum2["IN_PROGRESS"] = "IN_PROGRESS";
|
|
3929
|
+
TaskStatusEnum2["COMPLETED"] = "COMPLETED";
|
|
3930
|
+
TaskStatusEnum2["CANCELLED"] = "CANCELLED";
|
|
3931
|
+
return TaskStatusEnum2;
|
|
3932
|
+
})(TaskStatusEnum || {});
|
|
3933
|
+
var Task = class extends BaseEntity {
|
|
3934
|
+
};
|
|
3935
|
+
__decorateClass([
|
|
3936
|
+
Column36({ name: "task_unique_id", type: "varchar", nullable: true, unique: true })
|
|
3937
|
+
], Task.prototype, "taskUniqueId", 2);
|
|
3938
|
+
__decorateClass([
|
|
3939
|
+
Column36({ name: "job_id", type: "integer", nullable: true }),
|
|
3940
|
+
Index28()
|
|
3941
|
+
], Task.prototype, "jobId", 2);
|
|
3942
|
+
__decorateClass([
|
|
3943
|
+
ManyToOne34(() => Job, (job) => job.tasks),
|
|
3944
|
+
JoinColumn34({ name: "job_id" })
|
|
3945
|
+
], Task.prototype, "job", 2);
|
|
3946
|
+
__decorateClass([
|
|
3947
|
+
Column36({ name: "client_id", type: "integer", nullable: true }),
|
|
3948
|
+
Index28()
|
|
3949
|
+
], Task.prototype, "clientId", 2);
|
|
3950
|
+
__decorateClass([
|
|
3951
|
+
ManyToOne34(() => User, (user) => user.clientTasks),
|
|
3952
|
+
JoinColumn34({ name: "client_id" })
|
|
3953
|
+
], Task.prototype, "client", 2);
|
|
3954
|
+
__decorateClass([
|
|
3955
|
+
Column36({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
3956
|
+
Index28()
|
|
3957
|
+
], Task.prototype, "freelancerId", 2);
|
|
3958
|
+
__decorateClass([
|
|
3959
|
+
ManyToOne34(() => User, (user) => user.freelancerTasks),
|
|
3960
|
+
JoinColumn34({ name: "freelancer_id" })
|
|
3961
|
+
], Task.prototype, "freelancer", 2);
|
|
3962
|
+
__decorateClass([
|
|
3963
|
+
Column36({ name: "task_name", type: "varchar", nullable: true })
|
|
3964
|
+
], Task.prototype, "taskName", 2);
|
|
3965
|
+
__decorateClass([
|
|
3966
|
+
Column36({
|
|
3967
|
+
name: "status",
|
|
3968
|
+
type: "enum",
|
|
3969
|
+
enum: TaskStatusEnum,
|
|
3970
|
+
nullable: true
|
|
3971
|
+
})
|
|
3972
|
+
], Task.prototype, "status", 2);
|
|
3973
|
+
__decorateClass([
|
|
3974
|
+
Column36({
|
|
3975
|
+
name: "priority",
|
|
3976
|
+
type: "enum",
|
|
3977
|
+
enum: TaskPriorityEnum,
|
|
3978
|
+
nullable: true
|
|
3979
|
+
})
|
|
3980
|
+
], Task.prototype, "priority", 2);
|
|
3981
|
+
__decorateClass([
|
|
3982
|
+
Column36({ name: "description", type: "varchar", nullable: true })
|
|
3983
|
+
], Task.prototype, "description", 2);
|
|
3984
|
+
__decorateClass([
|
|
3985
|
+
Column36({
|
|
3986
|
+
name: "due_date",
|
|
3987
|
+
type: "timestamp with time zone",
|
|
3988
|
+
nullable: true
|
|
3989
|
+
})
|
|
3990
|
+
], Task.prototype, "dueDate", 2);
|
|
3991
|
+
__decorateClass([
|
|
3992
|
+
Column36({
|
|
3993
|
+
name: "created_on",
|
|
3994
|
+
type: "timestamp with time zone",
|
|
3995
|
+
nullable: true
|
|
3996
|
+
})
|
|
3997
|
+
], Task.prototype, "createdOn", 2);
|
|
3998
|
+
__decorateClass([
|
|
3999
|
+
Column36({
|
|
4000
|
+
name: "estimate_hours",
|
|
4001
|
+
type: "integer",
|
|
4002
|
+
nullable: true
|
|
4003
|
+
})
|
|
4004
|
+
], Task.prototype, "estimateHours", 2);
|
|
4005
|
+
__decorateClass([
|
|
4006
|
+
Column36({ name: "client_remarks", type: "varchar", nullable: true })
|
|
4007
|
+
], Task.prototype, "clientRemarks", 2);
|
|
4008
|
+
__decorateClass([
|
|
4009
|
+
Column36({ name: "freelancer_work_note", type: "varchar", nullable: true })
|
|
4010
|
+
], Task.prototype, "freelancerWorkNote", 2);
|
|
4011
|
+
__decorateClass([
|
|
4012
|
+
OneToMany14(() => TaskDeliverable, (taskDeliverable) => taskDeliverable.task, { cascade: true })
|
|
4013
|
+
], Task.prototype, "deliverables", 2);
|
|
4014
|
+
__decorateClass([
|
|
4015
|
+
OneToMany14(() => TaskResource, (taskResource) => taskResource.task, { cascade: true })
|
|
4016
|
+
], Task.prototype, "resources", 2);
|
|
4017
|
+
__decorateClass([
|
|
4018
|
+
OneToMany14(() => TaskChecklistItem, (taskChecklistItem) => taskChecklistItem.task, { cascade: true })
|
|
4019
|
+
], Task.prototype, "checklistItems", 2);
|
|
4020
|
+
__decorateClass([
|
|
4021
|
+
OneToMany14(() => TaskSubtask, (taskSubtask) => taskSubtask.task, { cascade: true })
|
|
4022
|
+
], Task.prototype, "subtasks", 2);
|
|
4023
|
+
__decorateClass([
|
|
4024
|
+
OneToMany14(() => Timesheet, (timesheet) => timesheet.task, { cascade: true })
|
|
4025
|
+
], Task.prototype, "timesheets", 2);
|
|
4026
|
+
Task = __decorateClass([
|
|
4027
|
+
Entity35("tasks")
|
|
4028
|
+
], Task);
|
|
4029
|
+
|
|
4030
|
+
// src/entities/timesheets.entity.ts
|
|
3783
4031
|
var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
3784
4032
|
TimesheetStatusEnum2["DRAFT"] = "DRAFT";
|
|
3785
4033
|
TimesheetStatusEnum2["SEND"] = "SEND";
|
|
@@ -3792,146 +4040,150 @@ var TimesheetStatusEnum = /* @__PURE__ */ ((TimesheetStatusEnum2) => {
|
|
|
3792
4040
|
var Timesheet = class extends BaseEntity {
|
|
3793
4041
|
};
|
|
3794
4042
|
__decorateClass([
|
|
3795
|
-
|
|
3796
|
-
|
|
4043
|
+
Column37({ name: "job_id", type: "integer", nullable: true }),
|
|
4044
|
+
Index29()
|
|
3797
4045
|
], Timesheet.prototype, "jobId", 2);
|
|
3798
4046
|
__decorateClass([
|
|
3799
|
-
|
|
3800
|
-
|
|
4047
|
+
ManyToOne35(() => Job, (job) => job.timesheets),
|
|
4048
|
+
JoinColumn35({ name: "job_id" })
|
|
3801
4049
|
], Timesheet.prototype, "job", 2);
|
|
3802
4050
|
__decorateClass([
|
|
3803
|
-
|
|
3804
|
-
|
|
4051
|
+
Column37({ name: "client_id", type: "integer", nullable: true }),
|
|
4052
|
+
Index29()
|
|
3805
4053
|
], Timesheet.prototype, "clientId", 2);
|
|
3806
4054
|
__decorateClass([
|
|
3807
|
-
|
|
3808
|
-
|
|
4055
|
+
ManyToOne35(() => User, (user) => user.clientTimesheets),
|
|
4056
|
+
JoinColumn35({ name: "client_id" })
|
|
3809
4057
|
], Timesheet.prototype, "client", 2);
|
|
3810
4058
|
__decorateClass([
|
|
3811
|
-
|
|
3812
|
-
|
|
4059
|
+
Column37({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
4060
|
+
Index29()
|
|
3813
4061
|
], Timesheet.prototype, "freelancerId", 2);
|
|
3814
4062
|
__decorateClass([
|
|
3815
|
-
|
|
3816
|
-
|
|
4063
|
+
ManyToOne35(() => User, (user) => user.freelancerTimesheets),
|
|
4064
|
+
JoinColumn35({ name: "freelancer_id" })
|
|
3817
4065
|
], Timesheet.prototype, "freelancer", 2);
|
|
3818
4066
|
__decorateClass([
|
|
3819
|
-
|
|
4067
|
+
Column37({
|
|
3820
4068
|
name: "start_date",
|
|
3821
4069
|
type: "date",
|
|
3822
4070
|
nullable: true
|
|
3823
4071
|
})
|
|
3824
4072
|
], Timesheet.prototype, "startDate", 2);
|
|
3825
4073
|
__decorateClass([
|
|
3826
|
-
|
|
4074
|
+
Column37({
|
|
3827
4075
|
name: "end_date",
|
|
3828
4076
|
type: "date",
|
|
3829
4077
|
nullable: true
|
|
3830
4078
|
})
|
|
3831
4079
|
], Timesheet.prototype, "endDate", 2);
|
|
3832
4080
|
__decorateClass([
|
|
3833
|
-
|
|
4081
|
+
Column37({ name: "start_time", type: "varchar", nullable: true })
|
|
3834
4082
|
], Timesheet.prototype, "startTime", 2);
|
|
3835
4083
|
__decorateClass([
|
|
3836
|
-
|
|
4084
|
+
Column37({ name: "end_time", type: "varchar", nullable: true })
|
|
3837
4085
|
], Timesheet.prototype, "endTime", 2);
|
|
3838
4086
|
__decorateClass([
|
|
3839
|
-
|
|
4087
|
+
Column37({ name: "worked_hours", type: "varchar", nullable: true })
|
|
3840
4088
|
], Timesheet.prototype, "workedHours", 2);
|
|
3841
4089
|
__decorateClass([
|
|
3842
|
-
|
|
4090
|
+
Column37({ name: "task_id", type: "integer", nullable: true })
|
|
3843
4091
|
], Timesheet.prototype, "taskId", 2);
|
|
3844
4092
|
__decorateClass([
|
|
3845
|
-
|
|
4093
|
+
ManyToOne35(() => Task, (task) => task.timesheets),
|
|
4094
|
+
JoinColumn35({ name: "task_id" })
|
|
4095
|
+
], Timesheet.prototype, "task", 2);
|
|
4096
|
+
__decorateClass([
|
|
4097
|
+
Column37({ name: "task_name", type: "varchar", nullable: true })
|
|
3846
4098
|
], Timesheet.prototype, "taskName", 2);
|
|
3847
4099
|
__decorateClass([
|
|
3848
|
-
|
|
4100
|
+
Column37({ name: "description", type: "varchar", nullable: true })
|
|
3849
4101
|
], Timesheet.prototype, "description", 2);
|
|
3850
4102
|
__decorateClass([
|
|
3851
|
-
|
|
4103
|
+
Column37({ name: "week_start_date", type: "date", nullable: true })
|
|
3852
4104
|
], Timesheet.prototype, "weekStartDate", 2);
|
|
3853
4105
|
__decorateClass([
|
|
3854
|
-
|
|
4106
|
+
Column37({ name: "week_end_date", type: "date", nullable: true })
|
|
3855
4107
|
], Timesheet.prototype, "weekEndDate", 2);
|
|
3856
4108
|
__decorateClass([
|
|
3857
|
-
|
|
4109
|
+
Column37({ name: "rejected_at", type: "timestamp with time zone", nullable: true })
|
|
3858
4110
|
], Timesheet.prototype, "rejectedAt", 2);
|
|
3859
4111
|
__decorateClass([
|
|
3860
|
-
|
|
4112
|
+
Column37({ name: "submitted_at", type: "timestamp with time zone", nullable: true })
|
|
3861
4113
|
], Timesheet.prototype, "submittedAt", 2);
|
|
3862
4114
|
__decorateClass([
|
|
3863
|
-
|
|
4115
|
+
Column37({ name: "resubmiited_at", type: "timestamp with time zone", nullable: true })
|
|
3864
4116
|
], Timesheet.prototype, "resubmittedAt", 2);
|
|
3865
4117
|
__decorateClass([
|
|
3866
|
-
|
|
4118
|
+
Column37({ name: "approved_at", type: "timestamp with time zone", nullable: true })
|
|
3867
4119
|
], Timesheet.prototype, "approvedAt", 2);
|
|
3868
4120
|
__decorateClass([
|
|
3869
|
-
|
|
4121
|
+
Column37({ name: "status", type: "enum", enum: TimesheetStatusEnum, nullable: true })
|
|
3870
4122
|
], Timesheet.prototype, "status", 2);
|
|
3871
4123
|
__decorateClass([
|
|
3872
|
-
|
|
4124
|
+
Column37({ name: "client_send_back_reason", type: "varchar", nullable: true })
|
|
3873
4125
|
], Timesheet.prototype, "clientSendBackReason", 2);
|
|
3874
4126
|
Timesheet = __decorateClass([
|
|
3875
|
-
|
|
4127
|
+
Entity36("timesheets")
|
|
3876
4128
|
], Timesheet);
|
|
3877
4129
|
|
|
3878
4130
|
// src/entities/job-location.entity.ts
|
|
3879
4131
|
import {
|
|
3880
|
-
Entity as
|
|
3881
|
-
Column as
|
|
3882
|
-
ManyToOne as
|
|
3883
|
-
JoinColumn as
|
|
3884
|
-
Index as
|
|
4132
|
+
Entity as Entity37,
|
|
4133
|
+
Column as Column38,
|
|
4134
|
+
ManyToOne as ManyToOne36,
|
|
4135
|
+
JoinColumn as JoinColumn36,
|
|
4136
|
+
Index as Index30
|
|
3885
4137
|
} from "typeorm";
|
|
3886
4138
|
var JobLocation = class extends BaseEntity {
|
|
3887
4139
|
};
|
|
3888
4140
|
__decorateClass([
|
|
3889
|
-
|
|
3890
|
-
|
|
4141
|
+
Column38({ name: "job_id", type: "integer", nullable: false }),
|
|
4142
|
+
Index30()
|
|
3891
4143
|
], JobLocation.prototype, "jobId", 2);
|
|
3892
4144
|
__decorateClass([
|
|
3893
|
-
|
|
3894
|
-
|
|
4145
|
+
ManyToOne36(() => Job, (job) => job.jobLocations),
|
|
4146
|
+
JoinColumn36({ name: "job_id" })
|
|
3895
4147
|
], JobLocation.prototype, "job", 2);
|
|
3896
4148
|
__decorateClass([
|
|
3897
|
-
|
|
4149
|
+
Column38({ name: "country_id", type: "int", nullable: false })
|
|
3898
4150
|
], JobLocation.prototype, "countryId", 2);
|
|
3899
4151
|
__decorateClass([
|
|
3900
|
-
|
|
4152
|
+
Column38({ name: "country_name", type: "varchar", nullable: true })
|
|
3901
4153
|
], JobLocation.prototype, "countryName", 2);
|
|
3902
4154
|
__decorateClass([
|
|
3903
|
-
|
|
3904
|
-
|
|
4155
|
+
ManyToOne36(() => Country),
|
|
4156
|
+
JoinColumn36({ name: "country_id" })
|
|
3905
4157
|
], JobLocation.prototype, "country", 2);
|
|
3906
4158
|
__decorateClass([
|
|
3907
|
-
|
|
4159
|
+
Column38({ name: "state_id", type: "int", nullable: false })
|
|
3908
4160
|
], JobLocation.prototype, "stateId", 2);
|
|
3909
4161
|
__decorateClass([
|
|
3910
|
-
|
|
4162
|
+
Column38({ name: "state_name", type: "varchar", nullable: true })
|
|
3911
4163
|
], JobLocation.prototype, "stateName", 2);
|
|
3912
4164
|
__decorateClass([
|
|
3913
|
-
|
|
3914
|
-
|
|
4165
|
+
ManyToOne36(() => State),
|
|
4166
|
+
JoinColumn36({ name: "state_id" })
|
|
3915
4167
|
], JobLocation.prototype, "state", 2);
|
|
3916
4168
|
__decorateClass([
|
|
3917
|
-
|
|
4169
|
+
Column38({ name: "city_id", type: "int", nullable: false })
|
|
3918
4170
|
], JobLocation.prototype, "cityId", 2);
|
|
3919
4171
|
__decorateClass([
|
|
3920
|
-
|
|
4172
|
+
Column38({ name: "city_name", type: "varchar", nullable: true })
|
|
3921
4173
|
], JobLocation.prototype, "cityName", 2);
|
|
3922
4174
|
__decorateClass([
|
|
3923
|
-
|
|
3924
|
-
|
|
4175
|
+
ManyToOne36(() => City),
|
|
4176
|
+
JoinColumn36({ name: "city_id" })
|
|
3925
4177
|
], JobLocation.prototype, "city", 2);
|
|
3926
4178
|
__decorateClass([
|
|
3927
|
-
|
|
4179
|
+
Column38({ name: "location_wise_openings", type: "int", default: 0 })
|
|
3928
4180
|
], JobLocation.prototype, "locationWiseOpenings", 2);
|
|
3929
4181
|
JobLocation = __decorateClass([
|
|
3930
|
-
|
|
4182
|
+
Entity37("job_locations")
|
|
3931
4183
|
], JobLocation);
|
|
3932
4184
|
|
|
3933
4185
|
// src/entities/rating.entity.ts
|
|
3934
|
-
import { Entity as
|
|
4186
|
+
import { Entity as Entity38, Column as Column39, ManyToOne as ManyToOne37, JoinColumn as JoinColumn37, Index as Index31 } from "typeorm";
|
|
3935
4187
|
var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
3936
4188
|
RatingTypeEnum2["FREELANCER_TO_CLIENT"] = "FREELANCER_TO_CLIENT";
|
|
3937
4189
|
RatingTypeEnum2["CLIENT_TO_FREELANCER"] = "CLIENT_TO_FREELANCER";
|
|
@@ -3940,31 +4192,31 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
3940
4192
|
var Rating = class extends BaseEntity {
|
|
3941
4193
|
};
|
|
3942
4194
|
__decorateClass([
|
|
3943
|
-
|
|
3944
|
-
|
|
4195
|
+
Column39({ name: "reviewer_id", type: "integer" }),
|
|
4196
|
+
Index31()
|
|
3945
4197
|
], Rating.prototype, "reviewerId", 2);
|
|
3946
4198
|
__decorateClass([
|
|
3947
|
-
|
|
3948
|
-
|
|
4199
|
+
ManyToOne37(() => User, { onDelete: "CASCADE" }),
|
|
4200
|
+
JoinColumn37({ name: "reviewer_id" })
|
|
3949
4201
|
], Rating.prototype, "reviewer", 2);
|
|
3950
4202
|
__decorateClass([
|
|
3951
|
-
|
|
3952
|
-
|
|
4203
|
+
Column39({ name: "reviewee_id", type: "integer" }),
|
|
4204
|
+
Index31()
|
|
3953
4205
|
], Rating.prototype, "revieweeId", 2);
|
|
3954
4206
|
__decorateClass([
|
|
3955
|
-
|
|
3956
|
-
|
|
4207
|
+
ManyToOne37(() => User, { onDelete: "CASCADE" }),
|
|
4208
|
+
JoinColumn37({ name: "reviewee_id" })
|
|
3957
4209
|
], Rating.prototype, "reviewee", 2);
|
|
3958
4210
|
__decorateClass([
|
|
3959
|
-
|
|
3960
|
-
|
|
4211
|
+
Column39({ name: "job_id", type: "integer" }),
|
|
4212
|
+
Index31()
|
|
3961
4213
|
], Rating.prototype, "jobId", 2);
|
|
3962
4214
|
__decorateClass([
|
|
3963
|
-
|
|
3964
|
-
|
|
4215
|
+
ManyToOne37(() => Job, (job) => job.ratings, { onDelete: "CASCADE" }),
|
|
4216
|
+
JoinColumn37({ name: "job_id" })
|
|
3965
4217
|
], Rating.prototype, "job", 2);
|
|
3966
4218
|
__decorateClass([
|
|
3967
|
-
|
|
4219
|
+
Column39({
|
|
3968
4220
|
name: "rating_type",
|
|
3969
4221
|
type: "enum",
|
|
3970
4222
|
enum: RatingTypeEnum,
|
|
@@ -3972,67 +4224,67 @@ __decorateClass([
|
|
|
3972
4224
|
})
|
|
3973
4225
|
], Rating.prototype, "ratingType", 2);
|
|
3974
4226
|
__decorateClass([
|
|
3975
|
-
|
|
4227
|
+
Column39({ name: "reviewer_comment", type: "text", nullable: true })
|
|
3976
4228
|
], Rating.prototype, "reviewerComment", 2);
|
|
3977
4229
|
__decorateClass([
|
|
3978
|
-
|
|
4230
|
+
Column39({
|
|
3979
4231
|
name: "overall_experience",
|
|
3980
4232
|
type: "float",
|
|
3981
4233
|
default: 0
|
|
3982
4234
|
})
|
|
3983
4235
|
], Rating.prototype, "overAllExperience", 2);
|
|
3984
4236
|
__decorateClass([
|
|
3985
|
-
|
|
4237
|
+
Column39({
|
|
3986
4238
|
name: "work_quality",
|
|
3987
4239
|
type: "float",
|
|
3988
4240
|
default: 0
|
|
3989
4241
|
})
|
|
3990
4242
|
], Rating.prototype, "workQuality", 2);
|
|
3991
4243
|
__decorateClass([
|
|
3992
|
-
|
|
4244
|
+
Column39({
|
|
3993
4245
|
name: "one_time_delivery",
|
|
3994
4246
|
type: "float",
|
|
3995
4247
|
default: 0
|
|
3996
4248
|
})
|
|
3997
4249
|
], Rating.prototype, "oneTimeDelivery", 2);
|
|
3998
4250
|
__decorateClass([
|
|
3999
|
-
|
|
4251
|
+
Column39({
|
|
4000
4252
|
name: "understaning",
|
|
4001
4253
|
type: "float",
|
|
4002
4254
|
default: 0
|
|
4003
4255
|
})
|
|
4004
4256
|
], Rating.prototype, "understaning", 2);
|
|
4005
4257
|
__decorateClass([
|
|
4006
|
-
|
|
4258
|
+
Column39({
|
|
4007
4259
|
name: "communication",
|
|
4008
4260
|
type: "float",
|
|
4009
4261
|
default: 0
|
|
4010
4262
|
})
|
|
4011
4263
|
], Rating.prototype, "communication", 2);
|
|
4012
4264
|
__decorateClass([
|
|
4013
|
-
|
|
4265
|
+
Column39({
|
|
4014
4266
|
name: "skill_utilized",
|
|
4015
4267
|
type: "float",
|
|
4016
4268
|
default: 0
|
|
4017
4269
|
})
|
|
4018
4270
|
], Rating.prototype, "skillUtilized", 2);
|
|
4019
4271
|
__decorateClass([
|
|
4020
|
-
|
|
4272
|
+
Column39({ name: "communication_clarity", type: "float", default: 0 })
|
|
4021
4273
|
], Rating.prototype, "communicationClarity", 2);
|
|
4022
4274
|
__decorateClass([
|
|
4023
|
-
|
|
4275
|
+
Column39({ name: "requirements_clarity", type: "float", default: 0 })
|
|
4024
4276
|
], Rating.prototype, "requirementsClarity", 2);
|
|
4025
4277
|
__decorateClass([
|
|
4026
|
-
|
|
4278
|
+
Column39({ name: "responsiveness", type: "float", default: 0 })
|
|
4027
4279
|
], Rating.prototype, "responsiveness", 2);
|
|
4028
4280
|
__decorateClass([
|
|
4029
|
-
|
|
4281
|
+
Column39({ name: "payment_promptness", type: "float", default: 0 })
|
|
4030
4282
|
], Rating.prototype, "paymentPromptness", 2);
|
|
4031
4283
|
__decorateClass([
|
|
4032
|
-
|
|
4284
|
+
Column39({ name: "responsibilities_and_expectations", type: "float", default: 0 })
|
|
4033
4285
|
], Rating.prototype, "responsibilitiesAndExpectations", 2);
|
|
4034
4286
|
Rating = __decorateClass([
|
|
4035
|
-
|
|
4287
|
+
Entity38("ratings")
|
|
4036
4288
|
], Rating);
|
|
4037
4289
|
|
|
4038
4290
|
// src/entities/job.entity.ts
|
|
@@ -4087,58 +4339,58 @@ var DurationTypeEnum = /* @__PURE__ */ ((DurationTypeEnum2) => {
|
|
|
4087
4339
|
var Job = class extends BaseEntity {
|
|
4088
4340
|
};
|
|
4089
4341
|
__decorateClass([
|
|
4090
|
-
|
|
4342
|
+
Column40({ name: "job_id", type: "varchar", unique: true, nullable: true })
|
|
4091
4343
|
], Job.prototype, "jobId", 2);
|
|
4092
4344
|
// individual index to find jobs by user
|
|
4093
4345
|
__decorateClass([
|
|
4094
|
-
|
|
4095
|
-
|
|
4346
|
+
Column40({ name: "user_id", type: "integer", nullable: true }),
|
|
4347
|
+
Index32()
|
|
4096
4348
|
], Job.prototype, "userId", 2);
|
|
4097
4349
|
__decorateClass([
|
|
4098
|
-
|
|
4099
|
-
|
|
4350
|
+
ManyToOne38(() => User, (user) => user.jobs),
|
|
4351
|
+
JoinColumn38({ name: "user_id" })
|
|
4100
4352
|
], Job.prototype, "user", 2);
|
|
4101
4353
|
__decorateClass([
|
|
4102
|
-
|
|
4354
|
+
Column40({ name: "country_id", type: "int", nullable: true })
|
|
4103
4355
|
], Job.prototype, "countryId", 2);
|
|
4104
4356
|
__decorateClass([
|
|
4105
|
-
|
|
4106
|
-
|
|
4357
|
+
ManyToOne38(() => Country),
|
|
4358
|
+
JoinColumn38({ name: "country_id" })
|
|
4107
4359
|
], Job.prototype, "country", 2);
|
|
4108
4360
|
__decorateClass([
|
|
4109
|
-
|
|
4361
|
+
Column40({ name: "state_id", type: "int", nullable: true })
|
|
4110
4362
|
], Job.prototype, "stateId", 2);
|
|
4111
4363
|
__decorateClass([
|
|
4112
|
-
|
|
4113
|
-
|
|
4364
|
+
ManyToOne38(() => State),
|
|
4365
|
+
JoinColumn38({ name: "state_id" })
|
|
4114
4366
|
], Job.prototype, "state", 2);
|
|
4115
4367
|
__decorateClass([
|
|
4116
|
-
|
|
4368
|
+
Column40({ name: "city_id", type: "int", nullable: true })
|
|
4117
4369
|
], Job.prototype, "cityId", 2);
|
|
4118
4370
|
__decorateClass([
|
|
4119
|
-
|
|
4120
|
-
|
|
4371
|
+
ManyToOne38(() => City),
|
|
4372
|
+
JoinColumn38({ name: "city_id" })
|
|
4121
4373
|
], Job.prototype, "city", 2);
|
|
4122
4374
|
__decorateClass([
|
|
4123
|
-
|
|
4375
|
+
Column40({ name: "job_role", type: "varchar", nullable: true })
|
|
4124
4376
|
], Job.prototype, "jobRole", 2);
|
|
4125
4377
|
__decorateClass([
|
|
4126
|
-
|
|
4378
|
+
Column40({ name: "job_role_canonical_name", type: "varchar", nullable: true })
|
|
4127
4379
|
], Job.prototype, "jobRoleCanonicalName", 2);
|
|
4128
4380
|
__decorateClass([
|
|
4129
|
-
|
|
4381
|
+
Column40({ name: "project_name", type: "varchar", nullable: true })
|
|
4130
4382
|
], Job.prototype, "projectName", 2);
|
|
4131
4383
|
__decorateClass([
|
|
4132
|
-
|
|
4384
|
+
Column40({ name: "note", type: "varchar", nullable: true })
|
|
4133
4385
|
], Job.prototype, "note", 2);
|
|
4134
4386
|
__decorateClass([
|
|
4135
|
-
|
|
4387
|
+
Column40({ name: "openings", type: "integer", default: 0 })
|
|
4136
4388
|
], Job.prototype, "openings", 2);
|
|
4137
4389
|
__decorateClass([
|
|
4138
|
-
|
|
4390
|
+
Column40({ name: "utilised_openings", type: "integer", default: 0 })
|
|
4139
4391
|
], Job.prototype, "utilisedOpenings", 2);
|
|
4140
4392
|
__decorateClass([
|
|
4141
|
-
|
|
4393
|
+
Column40({
|
|
4142
4394
|
name: "location",
|
|
4143
4395
|
type: "enum",
|
|
4144
4396
|
enum: JobLocationEnum,
|
|
@@ -4146,7 +4398,7 @@ __decorateClass([
|
|
|
4146
4398
|
})
|
|
4147
4399
|
], Job.prototype, "location", 2);
|
|
4148
4400
|
__decorateClass([
|
|
4149
|
-
|
|
4401
|
+
Column40({
|
|
4150
4402
|
name: "type_of_employment",
|
|
4151
4403
|
type: "enum",
|
|
4152
4404
|
enum: TypeOfEmploymentEnum,
|
|
@@ -4154,7 +4406,7 @@ __decorateClass([
|
|
|
4154
4406
|
})
|
|
4155
4407
|
], Job.prototype, "typeOfEmployment", 2);
|
|
4156
4408
|
__decorateClass([
|
|
4157
|
-
|
|
4409
|
+
Column40({
|
|
4158
4410
|
name: "billing_cycle",
|
|
4159
4411
|
type: "enum",
|
|
4160
4412
|
enum: BillingCycleEnum,
|
|
@@ -4162,10 +4414,10 @@ __decorateClass([
|
|
|
4162
4414
|
})
|
|
4163
4415
|
], Job.prototype, "billingCycle", 2);
|
|
4164
4416
|
__decorateClass([
|
|
4165
|
-
|
|
4417
|
+
Column40({ name: "academic_qualifictaion", type: "varchar", nullable: true })
|
|
4166
4418
|
], Job.prototype, "academicQualification", 2);
|
|
4167
4419
|
__decorateClass([
|
|
4168
|
-
|
|
4420
|
+
Column40({
|
|
4169
4421
|
name: "type_of_experience",
|
|
4170
4422
|
type: "enum",
|
|
4171
4423
|
enum: typeOfExperienceEnum,
|
|
@@ -4173,22 +4425,22 @@ __decorateClass([
|
|
|
4173
4425
|
})
|
|
4174
4426
|
], Job.prototype, "typeOfExperience", 2);
|
|
4175
4427
|
__decorateClass([
|
|
4176
|
-
|
|
4428
|
+
Column40({ name: "years_of_experience", type: "varchar", nullable: true })
|
|
4177
4429
|
], Job.prototype, "yearsOfExperience", 2);
|
|
4178
4430
|
__decorateClass([
|
|
4179
|
-
|
|
4431
|
+
Column40({ name: "years_of_experience_from", type: "varchar", nullable: true })
|
|
4180
4432
|
], Job.prototype, "yearsOfExperienceFrom", 2);
|
|
4181
4433
|
__decorateClass([
|
|
4182
|
-
|
|
4434
|
+
Column40({ name: "years_of_experience_to", type: "varchar", nullable: true })
|
|
4183
4435
|
], Job.prototype, "yearsOfExperienceTo", 2);
|
|
4184
4436
|
__decorateClass([
|
|
4185
|
-
|
|
4437
|
+
Column40({ name: "business_industry", type: "varchar", nullable: true })
|
|
4186
4438
|
], Job.prototype, "businessIndustry", 2);
|
|
4187
4439
|
__decorateClass([
|
|
4188
|
-
|
|
4440
|
+
Column40({ name: "currency", type: "varchar", default: "USD" })
|
|
4189
4441
|
], Job.prototype, "currency", 2);
|
|
4190
4442
|
__decorateClass([
|
|
4191
|
-
|
|
4443
|
+
Column40({
|
|
4192
4444
|
name: "expected_salary_from",
|
|
4193
4445
|
type: "decimal",
|
|
4194
4446
|
precision: 10,
|
|
@@ -4197,14 +4449,14 @@ __decorateClass([
|
|
|
4197
4449
|
})
|
|
4198
4450
|
], Job.prototype, "expectedSalaryFrom", 2);
|
|
4199
4451
|
__decorateClass([
|
|
4200
|
-
|
|
4452
|
+
Column40({
|
|
4201
4453
|
name: "hide_expected_salary_from",
|
|
4202
4454
|
type: "boolean",
|
|
4203
4455
|
default: false
|
|
4204
4456
|
})
|
|
4205
4457
|
], Job.prototype, "hideExpectedSalaryFrom", 2);
|
|
4206
4458
|
__decorateClass([
|
|
4207
|
-
|
|
4459
|
+
Column40({
|
|
4208
4460
|
name: "expected_salary_to",
|
|
4209
4461
|
type: "decimal",
|
|
4210
4462
|
precision: 10,
|
|
@@ -4213,14 +4465,14 @@ __decorateClass([
|
|
|
4213
4465
|
})
|
|
4214
4466
|
], Job.prototype, "expectedSalaryTo", 2);
|
|
4215
4467
|
__decorateClass([
|
|
4216
|
-
|
|
4468
|
+
Column40({
|
|
4217
4469
|
name: "hide_expected_salary_to",
|
|
4218
4470
|
type: "boolean",
|
|
4219
4471
|
default: false
|
|
4220
4472
|
})
|
|
4221
4473
|
], Job.prototype, "hideExpectedSalaryTo", 2);
|
|
4222
4474
|
__decorateClass([
|
|
4223
|
-
|
|
4475
|
+
Column40({
|
|
4224
4476
|
name: "expected_annual_budget_from",
|
|
4225
4477
|
type: "decimal",
|
|
4226
4478
|
precision: 10,
|
|
@@ -4229,14 +4481,14 @@ __decorateClass([
|
|
|
4229
4481
|
})
|
|
4230
4482
|
], Job.prototype, "expectedAnnualBudgetFrom", 2);
|
|
4231
4483
|
__decorateClass([
|
|
4232
|
-
|
|
4484
|
+
Column40({
|
|
4233
4485
|
name: "hide_expected_annual_budget_from",
|
|
4234
4486
|
type: "boolean",
|
|
4235
4487
|
default: false
|
|
4236
4488
|
})
|
|
4237
4489
|
], Job.prototype, "hideExpectedAnnualBudgetFrom", 2);
|
|
4238
4490
|
__decorateClass([
|
|
4239
|
-
|
|
4491
|
+
Column40({
|
|
4240
4492
|
name: "expected_annual_budget_to",
|
|
4241
4493
|
type: "decimal",
|
|
4242
4494
|
precision: 10,
|
|
@@ -4245,32 +4497,32 @@ __decorateClass([
|
|
|
4245
4497
|
})
|
|
4246
4498
|
], Job.prototype, "expectedAnnualBudgetTo", 2);
|
|
4247
4499
|
__decorateClass([
|
|
4248
|
-
|
|
4500
|
+
Column40({
|
|
4249
4501
|
name: "hide_expected_annual_budget_to",
|
|
4250
4502
|
type: "boolean",
|
|
4251
4503
|
default: false
|
|
4252
4504
|
})
|
|
4253
4505
|
], Job.prototype, "hideExpectedAnnualBudgetTo", 2);
|
|
4254
4506
|
__decorateClass([
|
|
4255
|
-
|
|
4507
|
+
Column40({ name: "years", type: "varchar", nullable: true })
|
|
4256
4508
|
], Job.prototype, "years", 2);
|
|
4257
4509
|
__decorateClass([
|
|
4258
|
-
|
|
4510
|
+
Column40({ name: "months", type: "varchar", nullable: true })
|
|
4259
4511
|
], Job.prototype, "months", 2);
|
|
4260
4512
|
__decorateClass([
|
|
4261
|
-
|
|
4513
|
+
Column40({ name: "weeks", type: "varchar", nullable: true })
|
|
4262
4514
|
], Job.prototype, "weeks", 2);
|
|
4263
4515
|
__decorateClass([
|
|
4264
|
-
|
|
4516
|
+
Column40({ name: "days", type: "varchar", nullable: true })
|
|
4265
4517
|
], Job.prototype, "days", 2);
|
|
4266
4518
|
__decorateClass([
|
|
4267
|
-
|
|
4519
|
+
Column40({ name: "tentative_start_date", type: "date", nullable: true })
|
|
4268
4520
|
], Job.prototype, "tentativeStartDate", 2);
|
|
4269
4521
|
__decorateClass([
|
|
4270
|
-
|
|
4522
|
+
Column40({ name: "tentative_end_date", type: "date", nullable: true })
|
|
4271
4523
|
], Job.prototype, "tentativeEndDate", 2);
|
|
4272
4524
|
__decorateClass([
|
|
4273
|
-
|
|
4525
|
+
Column40({
|
|
4274
4526
|
name: "duration_type",
|
|
4275
4527
|
type: "enum",
|
|
4276
4528
|
enum: DurationTypeEnum,
|
|
@@ -4278,10 +4530,10 @@ __decorateClass([
|
|
|
4278
4530
|
})
|
|
4279
4531
|
], Job.prototype, "durationType", 2);
|
|
4280
4532
|
__decorateClass([
|
|
4281
|
-
|
|
4533
|
+
Column40({ name: "duration", type: "varchar", nullable: true })
|
|
4282
4534
|
], Job.prototype, "duration", 2);
|
|
4283
4535
|
__decorateClass([
|
|
4284
|
-
|
|
4536
|
+
Column40({
|
|
4285
4537
|
name: "number_of_hours",
|
|
4286
4538
|
type: "decimal",
|
|
4287
4539
|
precision: 4,
|
|
@@ -4290,13 +4542,13 @@ __decorateClass([
|
|
|
4290
4542
|
})
|
|
4291
4543
|
], Job.prototype, "numberOfHours", 2);
|
|
4292
4544
|
__decorateClass([
|
|
4293
|
-
|
|
4545
|
+
Column40({ name: "description", type: "varchar", nullable: true })
|
|
4294
4546
|
], Job.prototype, "description", 2);
|
|
4295
4547
|
__decorateClass([
|
|
4296
|
-
|
|
4548
|
+
Column40({ name: "additional_comment", type: "varchar", nullable: true })
|
|
4297
4549
|
], Job.prototype, "additionalComment", 2);
|
|
4298
4550
|
__decorateClass([
|
|
4299
|
-
|
|
4551
|
+
Column40({
|
|
4300
4552
|
name: "onboarding_tat",
|
|
4301
4553
|
type: "varchar",
|
|
4302
4554
|
length: 50,
|
|
@@ -4304,17 +4556,17 @@ __decorateClass([
|
|
|
4304
4556
|
})
|
|
4305
4557
|
], Job.prototype, "onboardingTat", 2);
|
|
4306
4558
|
__decorateClass([
|
|
4307
|
-
|
|
4559
|
+
Column40({
|
|
4308
4560
|
name: "candidate_communication_skills",
|
|
4309
4561
|
type: "varchar",
|
|
4310
4562
|
nullable: true
|
|
4311
4563
|
})
|
|
4312
4564
|
], Job.prototype, "candidateCommunicationSkills", 2);
|
|
4313
4565
|
__decorateClass([
|
|
4314
|
-
|
|
4566
|
+
Column40({ name: "deal_breakers", type: "jsonb", nullable: true })
|
|
4315
4567
|
], Job.prototype, "dealBreakers", 2);
|
|
4316
4568
|
__decorateClass([
|
|
4317
|
-
|
|
4569
|
+
Column40({
|
|
4318
4570
|
name: "step_completed",
|
|
4319
4571
|
type: "enum",
|
|
4320
4572
|
enum: Step,
|
|
@@ -4322,7 +4574,7 @@ __decorateClass([
|
|
|
4322
4574
|
})
|
|
4323
4575
|
], Job.prototype, "stepCompleted", 2);
|
|
4324
4576
|
__decorateClass([
|
|
4325
|
-
|
|
4577
|
+
Column40({
|
|
4326
4578
|
name: "status",
|
|
4327
4579
|
type: "enum",
|
|
4328
4580
|
enum: JobStatusEnum,
|
|
@@ -4330,19 +4582,19 @@ __decorateClass([
|
|
|
4330
4582
|
})
|
|
4331
4583
|
], Job.prototype, "status", 2);
|
|
4332
4584
|
__decorateClass([
|
|
4333
|
-
|
|
4585
|
+
Column40({ name: "viewed_count", type: "integer", default: 0 })
|
|
4334
4586
|
], Job.prototype, "viewedCount", 2);
|
|
4335
4587
|
__decorateClass([
|
|
4336
|
-
|
|
4588
|
+
Column40({ name: "application_count", type: "integer", default: 0 })
|
|
4337
4589
|
], Job.prototype, "applicationCount", 2);
|
|
4338
4590
|
__decorateClass([
|
|
4339
|
-
|
|
4591
|
+
Column40({ name: "is_contract_signed", type: "boolean", default: false })
|
|
4340
4592
|
], Job.prototype, "isContractSigned", 2);
|
|
4341
4593
|
__decorateClass([
|
|
4342
|
-
|
|
4594
|
+
Column40({ name: "is_interview_created", type: "boolean", default: false })
|
|
4343
4595
|
], Job.prototype, "isInterviewCreated", 2);
|
|
4344
4596
|
__decorateClass([
|
|
4345
|
-
|
|
4597
|
+
Column40({ name: "is_job_created_via_ai", type: "boolean", default: false })
|
|
4346
4598
|
], Job.prototype, "isJobCreatedViaAI", 2);
|
|
4347
4599
|
__decorateClass([
|
|
4348
4600
|
OneToMany15(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
@@ -4422,17 +4674,22 @@ __decorateClass([
|
|
|
4422
4674
|
cascade: true
|
|
4423
4675
|
})
|
|
4424
4676
|
], Job.prototype, "ratings", 2);
|
|
4677
|
+
__decorateClass([
|
|
4678
|
+
OneToMany15(() => Task, (task) => task.job, {
|
|
4679
|
+
cascade: true
|
|
4680
|
+
})
|
|
4681
|
+
], Job.prototype, "tasks", 2);
|
|
4425
4682
|
Job = __decorateClass([
|
|
4426
|
-
|
|
4683
|
+
Entity39("jobs")
|
|
4427
4684
|
], Job);
|
|
4428
4685
|
|
|
4429
4686
|
// src/entities/bank-details.entity.ts
|
|
4430
4687
|
import {
|
|
4431
|
-
Entity as
|
|
4432
|
-
Column as
|
|
4433
|
-
Index as
|
|
4434
|
-
ManyToOne as
|
|
4435
|
-
JoinColumn as
|
|
4688
|
+
Entity as Entity40,
|
|
4689
|
+
Column as Column41,
|
|
4690
|
+
Index as Index33,
|
|
4691
|
+
ManyToOne as ManyToOne39,
|
|
4692
|
+
JoinColumn as JoinColumn39
|
|
4436
4693
|
} from "typeorm";
|
|
4437
4694
|
var BankAccountTypeEnum = /* @__PURE__ */ ((BankAccountTypeEnum2) => {
|
|
4438
4695
|
BankAccountTypeEnum2["PRIMARY"] = "PRIMARY";
|
|
@@ -4448,51 +4705,51 @@ var BankDetail = class extends BaseEntity {
|
|
|
4448
4705
|
};
|
|
4449
4706
|
// individual index to find bank details by user
|
|
4450
4707
|
__decorateClass([
|
|
4451
|
-
|
|
4452
|
-
|
|
4708
|
+
Column41({ name: "user_id", type: "integer", nullable: true }),
|
|
4709
|
+
Index33()
|
|
4453
4710
|
], BankDetail.prototype, "userId", 2);
|
|
4454
4711
|
__decorateClass([
|
|
4455
|
-
|
|
4456
|
-
|
|
4712
|
+
ManyToOne39(() => User, (user) => user.bankDetail),
|
|
4713
|
+
JoinColumn39({ name: "user_id" })
|
|
4457
4714
|
], BankDetail.prototype, "user", 2);
|
|
4458
4715
|
__decorateClass([
|
|
4459
|
-
|
|
4716
|
+
Column41({ name: "name", type: "varchar", nullable: true })
|
|
4460
4717
|
], BankDetail.prototype, "name", 2);
|
|
4461
4718
|
__decorateClass([
|
|
4462
|
-
|
|
4719
|
+
Column41({ name: "mobile_code", type: "varchar", nullable: true })
|
|
4463
4720
|
], BankDetail.prototype, "mobileCode", 2);
|
|
4464
4721
|
__decorateClass([
|
|
4465
|
-
|
|
4722
|
+
Column41({ name: "mobile", type: "varchar", nullable: true })
|
|
4466
4723
|
], BankDetail.prototype, "mobile", 2);
|
|
4467
4724
|
__decorateClass([
|
|
4468
|
-
|
|
4725
|
+
Column41({ name: "email", type: "varchar" })
|
|
4469
4726
|
], BankDetail.prototype, "email", 2);
|
|
4470
4727
|
__decorateClass([
|
|
4471
|
-
|
|
4728
|
+
Column41({ name: "address", type: "varchar", nullable: true })
|
|
4472
4729
|
], BankDetail.prototype, "address", 2);
|
|
4473
4730
|
__decorateClass([
|
|
4474
|
-
|
|
4731
|
+
Column41({ name: "account_number", type: "varchar", unique: true, nullable: true })
|
|
4475
4732
|
], BankDetail.prototype, "accountNumber", 2);
|
|
4476
4733
|
__decorateClass([
|
|
4477
|
-
|
|
4734
|
+
Column41({ name: "bank_name", type: "varchar", nullable: true })
|
|
4478
4735
|
], BankDetail.prototype, "bankName", 2);
|
|
4479
4736
|
__decorateClass([
|
|
4480
|
-
|
|
4737
|
+
Column41({ name: "ifsc_code", type: "varchar", nullable: true })
|
|
4481
4738
|
], BankDetail.prototype, "ifscCode", 2);
|
|
4482
4739
|
__decorateClass([
|
|
4483
|
-
|
|
4740
|
+
Column41({ name: "branch_name", type: "varchar", nullable: true })
|
|
4484
4741
|
], BankDetail.prototype, "branchName", 2);
|
|
4485
4742
|
__decorateClass([
|
|
4486
|
-
|
|
4743
|
+
Column41({ name: "routing_no", type: "varchar", nullable: true })
|
|
4487
4744
|
], BankDetail.prototype, "routingNo", 2);
|
|
4488
4745
|
__decorateClass([
|
|
4489
|
-
|
|
4746
|
+
Column41({ name: "aba_no", type: "varchar", nullable: true })
|
|
4490
4747
|
], BankDetail.prototype, "abaNumber", 2);
|
|
4491
4748
|
__decorateClass([
|
|
4492
|
-
|
|
4749
|
+
Column41({ name: "iban", type: "varchar", nullable: true })
|
|
4493
4750
|
], BankDetail.prototype, "iban", 2);
|
|
4494
4751
|
__decorateClass([
|
|
4495
|
-
|
|
4752
|
+
Column41({
|
|
4496
4753
|
name: "account_type",
|
|
4497
4754
|
type: "enum",
|
|
4498
4755
|
enum: BankAccountTypeEnum,
|
|
@@ -4500,7 +4757,7 @@ __decorateClass([
|
|
|
4500
4757
|
})
|
|
4501
4758
|
], BankDetail.prototype, "accountType", 2);
|
|
4502
4759
|
__decorateClass([
|
|
4503
|
-
|
|
4760
|
+
Column41({
|
|
4504
4761
|
name: "account_scope",
|
|
4505
4762
|
type: "enum",
|
|
4506
4763
|
enum: BankAccountScopeEnum,
|
|
@@ -4508,185 +4765,185 @@ __decorateClass([
|
|
|
4508
4765
|
})
|
|
4509
4766
|
], BankDetail.prototype, "accountScope", 2);
|
|
4510
4767
|
BankDetail = __decorateClass([
|
|
4511
|
-
|
|
4768
|
+
Entity40("bank_details")
|
|
4512
4769
|
], BankDetail);
|
|
4513
4770
|
|
|
4514
4771
|
// src/entities/system-preference.entity.ts
|
|
4515
4772
|
import {
|
|
4516
|
-
Entity as
|
|
4517
|
-
Column as
|
|
4518
|
-
Index as
|
|
4519
|
-
ManyToOne as
|
|
4520
|
-
JoinColumn as
|
|
4773
|
+
Entity as Entity41,
|
|
4774
|
+
Column as Column42,
|
|
4775
|
+
Index as Index34,
|
|
4776
|
+
ManyToOne as ManyToOne40,
|
|
4777
|
+
JoinColumn as JoinColumn40
|
|
4521
4778
|
} from "typeorm";
|
|
4522
4779
|
var SystemPreference = class extends BaseEntity {
|
|
4523
4780
|
};
|
|
4524
4781
|
// individual index to find system preference by user
|
|
4525
4782
|
__decorateClass([
|
|
4526
|
-
|
|
4527
|
-
|
|
4783
|
+
Column42({ name: "user_id", type: "integer", nullable: true }),
|
|
4784
|
+
Index34()
|
|
4528
4785
|
], SystemPreference.prototype, "userId", 2);
|
|
4529
4786
|
__decorateClass([
|
|
4530
|
-
|
|
4531
|
-
|
|
4787
|
+
ManyToOne40(() => User, (user) => user.systemPreference),
|
|
4788
|
+
JoinColumn40({ name: "user_id" })
|
|
4532
4789
|
], SystemPreference.prototype, "user", 2);
|
|
4533
4790
|
__decorateClass([
|
|
4534
|
-
|
|
4791
|
+
Column42({ name: "key", type: "varchar", nullable: false })
|
|
4535
4792
|
], SystemPreference.prototype, "key", 2);
|
|
4536
4793
|
__decorateClass([
|
|
4537
|
-
|
|
4794
|
+
Column42({ name: "value", type: "boolean", default: false })
|
|
4538
4795
|
], SystemPreference.prototype, "value", 2);
|
|
4539
4796
|
SystemPreference = __decorateClass([
|
|
4540
|
-
|
|
4797
|
+
Entity41("system_preferences")
|
|
4541
4798
|
], SystemPreference);
|
|
4542
4799
|
|
|
4543
4800
|
// src/entities/freelancer-experience.entity.ts
|
|
4544
4801
|
import {
|
|
4545
|
-
Entity as
|
|
4546
|
-
Column as
|
|
4547
|
-
Index as
|
|
4548
|
-
ManyToOne as
|
|
4549
|
-
JoinColumn as
|
|
4802
|
+
Entity as Entity42,
|
|
4803
|
+
Column as Column43,
|
|
4804
|
+
Index as Index35,
|
|
4805
|
+
ManyToOne as ManyToOne41,
|
|
4806
|
+
JoinColumn as JoinColumn41
|
|
4550
4807
|
} from "typeorm";
|
|
4551
4808
|
var FreelancerExperience = class extends BaseEntity {
|
|
4552
4809
|
};
|
|
4553
4810
|
// individual index to find experence by user
|
|
4554
4811
|
__decorateClass([
|
|
4555
|
-
|
|
4556
|
-
|
|
4812
|
+
Column43({ name: "user_id", type: "integer", nullable: true }),
|
|
4813
|
+
Index35()
|
|
4557
4814
|
], FreelancerExperience.prototype, "userId", 2);
|
|
4558
4815
|
__decorateClass([
|
|
4559
|
-
|
|
4560
|
-
|
|
4816
|
+
ManyToOne41(() => User, (user) => user.freelancerExperience),
|
|
4817
|
+
JoinColumn41({ name: "user_id" })
|
|
4561
4818
|
], FreelancerExperience.prototype, "user", 2);
|
|
4562
4819
|
__decorateClass([
|
|
4563
|
-
|
|
4820
|
+
Column43({ name: "company_name", type: "varchar", nullable: true })
|
|
4564
4821
|
], FreelancerExperience.prototype, "companyName", 2);
|
|
4565
4822
|
__decorateClass([
|
|
4566
|
-
|
|
4823
|
+
Column43({ name: "designation", type: "varchar", nullable: true })
|
|
4567
4824
|
], FreelancerExperience.prototype, "designation", 2);
|
|
4568
4825
|
__decorateClass([
|
|
4569
|
-
|
|
4826
|
+
Column43({ name: "job_duration", type: "varchar", nullable: true })
|
|
4570
4827
|
], FreelancerExperience.prototype, "jobDuration", 2);
|
|
4571
4828
|
__decorateClass([
|
|
4572
|
-
|
|
4829
|
+
Column43({ name: "description", type: "varchar", nullable: true })
|
|
4573
4830
|
], FreelancerExperience.prototype, "description", 2);
|
|
4574
4831
|
FreelancerExperience = __decorateClass([
|
|
4575
|
-
|
|
4832
|
+
Entity42("freelancer_experiences")
|
|
4576
4833
|
], FreelancerExperience);
|
|
4577
4834
|
|
|
4578
4835
|
// src/entities/freelancer-education.entity.ts
|
|
4579
4836
|
import {
|
|
4580
|
-
Entity as
|
|
4581
|
-
Column as
|
|
4582
|
-
Index as
|
|
4583
|
-
ManyToOne as
|
|
4584
|
-
JoinColumn as
|
|
4837
|
+
Entity as Entity43,
|
|
4838
|
+
Column as Column44,
|
|
4839
|
+
Index as Index36,
|
|
4840
|
+
ManyToOne as ManyToOne42,
|
|
4841
|
+
JoinColumn as JoinColumn42
|
|
4585
4842
|
} from "typeorm";
|
|
4586
4843
|
var FreelancerEducation = class extends BaseEntity {
|
|
4587
4844
|
};
|
|
4588
4845
|
// individual index to find education by user
|
|
4589
4846
|
__decorateClass([
|
|
4590
|
-
|
|
4591
|
-
|
|
4847
|
+
Column44({ name: "user_id", type: "integer", nullable: true }),
|
|
4848
|
+
Index36()
|
|
4592
4849
|
], FreelancerEducation.prototype, "userId", 2);
|
|
4593
4850
|
__decorateClass([
|
|
4594
|
-
|
|
4595
|
-
|
|
4851
|
+
ManyToOne42(() => User, (user) => user.freelancerEducation),
|
|
4852
|
+
JoinColumn42({ name: "user_id" })
|
|
4596
4853
|
], FreelancerEducation.prototype, "user", 2);
|
|
4597
4854
|
__decorateClass([
|
|
4598
|
-
|
|
4855
|
+
Column44({ name: "degree", type: "varchar", nullable: true })
|
|
4599
4856
|
], FreelancerEducation.prototype, "degree", 2);
|
|
4600
4857
|
__decorateClass([
|
|
4601
|
-
|
|
4858
|
+
Column44({ name: "university", type: "varchar", nullable: true })
|
|
4602
4859
|
], FreelancerEducation.prototype, "university", 2);
|
|
4603
4860
|
__decorateClass([
|
|
4604
|
-
|
|
4861
|
+
Column44({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
4605
4862
|
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
4606
4863
|
FreelancerEducation = __decorateClass([
|
|
4607
|
-
|
|
4864
|
+
Entity43("freelancer_educations")
|
|
4608
4865
|
], FreelancerEducation);
|
|
4609
4866
|
|
|
4610
4867
|
// src/entities/freelancer-project.entity.ts
|
|
4611
4868
|
import {
|
|
4612
|
-
Entity as
|
|
4613
|
-
Column as
|
|
4614
|
-
Index as
|
|
4615
|
-
ManyToOne as
|
|
4616
|
-
JoinColumn as
|
|
4869
|
+
Entity as Entity44,
|
|
4870
|
+
Column as Column45,
|
|
4871
|
+
Index as Index37,
|
|
4872
|
+
ManyToOne as ManyToOne43,
|
|
4873
|
+
JoinColumn as JoinColumn43
|
|
4617
4874
|
} from "typeorm";
|
|
4618
4875
|
var FreelancerProject = class extends BaseEntity {
|
|
4619
4876
|
};
|
|
4620
4877
|
// individual index to find project by user
|
|
4621
4878
|
__decorateClass([
|
|
4622
|
-
|
|
4623
|
-
|
|
4879
|
+
Column45({ name: "user_id", type: "integer", nullable: true }),
|
|
4880
|
+
Index37()
|
|
4624
4881
|
], FreelancerProject.prototype, "userId", 2);
|
|
4625
4882
|
__decorateClass([
|
|
4626
|
-
|
|
4627
|
-
|
|
4883
|
+
ManyToOne43(() => User, (user) => user.freelancerProject),
|
|
4884
|
+
JoinColumn43({ name: "user_id" })
|
|
4628
4885
|
], FreelancerProject.prototype, "user", 2);
|
|
4629
4886
|
__decorateClass([
|
|
4630
|
-
|
|
4887
|
+
Column45({ name: "project_name", type: "varchar", nullable: true })
|
|
4631
4888
|
], FreelancerProject.prototype, "projectName", 2);
|
|
4632
4889
|
__decorateClass([
|
|
4633
|
-
|
|
4890
|
+
Column45({ name: "start_date", type: "date", nullable: true })
|
|
4634
4891
|
], FreelancerProject.prototype, "startDate", 2);
|
|
4635
4892
|
__decorateClass([
|
|
4636
|
-
|
|
4893
|
+
Column45({ name: "end_date", type: "date", nullable: true })
|
|
4637
4894
|
], FreelancerProject.prototype, "endDate", 2);
|
|
4638
4895
|
__decorateClass([
|
|
4639
|
-
|
|
4896
|
+
Column45({ name: "client_name", type: "varchar", nullable: true })
|
|
4640
4897
|
], FreelancerProject.prototype, "clientName", 2);
|
|
4641
4898
|
__decorateClass([
|
|
4642
|
-
|
|
4899
|
+
Column45({ name: "git_link", type: "varchar", nullable: true })
|
|
4643
4900
|
], FreelancerProject.prototype, "gitLink", 2);
|
|
4644
4901
|
__decorateClass([
|
|
4645
|
-
|
|
4902
|
+
Column45({ name: "description", type: "varchar", nullable: true })
|
|
4646
4903
|
], FreelancerProject.prototype, "description", 2);
|
|
4647
4904
|
FreelancerProject = __decorateClass([
|
|
4648
|
-
|
|
4905
|
+
Entity44("freelancer_projects")
|
|
4649
4906
|
], FreelancerProject);
|
|
4650
4907
|
|
|
4651
4908
|
// src/entities/freelancer-casestudy.entity.ts
|
|
4652
4909
|
import {
|
|
4653
|
-
Entity as
|
|
4654
|
-
Column as
|
|
4655
|
-
Index as
|
|
4656
|
-
ManyToOne as
|
|
4657
|
-
JoinColumn as
|
|
4910
|
+
Entity as Entity45,
|
|
4911
|
+
Column as Column46,
|
|
4912
|
+
Index as Index38,
|
|
4913
|
+
ManyToOne as ManyToOne44,
|
|
4914
|
+
JoinColumn as JoinColumn44
|
|
4658
4915
|
} from "typeorm";
|
|
4659
4916
|
var FreelancerCaseStudy = class extends BaseEntity {
|
|
4660
4917
|
};
|
|
4661
4918
|
// individual index to find case study by user
|
|
4662
4919
|
__decorateClass([
|
|
4663
|
-
|
|
4664
|
-
|
|
4920
|
+
Column46({ name: "user_id", type: "integer", nullable: true }),
|
|
4921
|
+
Index38()
|
|
4665
4922
|
], FreelancerCaseStudy.prototype, "userId", 2);
|
|
4666
4923
|
__decorateClass([
|
|
4667
|
-
|
|
4668
|
-
|
|
4924
|
+
ManyToOne44(() => User, (user) => user.freelancerCaseStudy),
|
|
4925
|
+
JoinColumn44({ name: "user_id" })
|
|
4669
4926
|
], FreelancerCaseStudy.prototype, "user", 2);
|
|
4670
4927
|
__decorateClass([
|
|
4671
|
-
|
|
4928
|
+
Column46({ name: "project_name", type: "varchar", nullable: true })
|
|
4672
4929
|
], FreelancerCaseStudy.prototype, "projectName", 2);
|
|
4673
4930
|
__decorateClass([
|
|
4674
|
-
|
|
4931
|
+
Column46({ name: "case_study_link", type: "varchar", nullable: true })
|
|
4675
4932
|
], FreelancerCaseStudy.prototype, "caseStudyLink", 2);
|
|
4676
4933
|
__decorateClass([
|
|
4677
|
-
|
|
4934
|
+
Column46({ name: "description", type: "varchar", nullable: true })
|
|
4678
4935
|
], FreelancerCaseStudy.prototype, "description", 2);
|
|
4679
4936
|
FreelancerCaseStudy = __decorateClass([
|
|
4680
|
-
|
|
4937
|
+
Entity45("freelancer_case_studies")
|
|
4681
4938
|
], FreelancerCaseStudy);
|
|
4682
4939
|
|
|
4683
4940
|
// src/entities/freelancer-skill.entity.ts
|
|
4684
4941
|
import {
|
|
4685
|
-
Entity as
|
|
4686
|
-
Column as
|
|
4687
|
-
Index as
|
|
4688
|
-
ManyToOne as
|
|
4689
|
-
JoinColumn as
|
|
4942
|
+
Entity as Entity46,
|
|
4943
|
+
Column as Column47,
|
|
4944
|
+
Index as Index39,
|
|
4945
|
+
ManyToOne as ManyToOne45,
|
|
4946
|
+
JoinColumn as JoinColumn45
|
|
4690
4947
|
} from "typeorm";
|
|
4691
4948
|
var FreelancerSkillCategoryEnum = /* @__PURE__ */ ((FreelancerSkillCategoryEnum2) => {
|
|
4692
4949
|
FreelancerSkillCategoryEnum2[FreelancerSkillCategoryEnum2["GOOD_TO_HAVE"] = 0] = "GOOD_TO_HAVE";
|
|
@@ -4697,18 +4954,18 @@ var FreelancerSkill = class extends BaseEntity {
|
|
|
4697
4954
|
};
|
|
4698
4955
|
// individual index to find core skills by user
|
|
4699
4956
|
__decorateClass([
|
|
4700
|
-
|
|
4701
|
-
|
|
4957
|
+
Column47({ name: "user_id", type: "integer", nullable: true }),
|
|
4958
|
+
Index39()
|
|
4702
4959
|
], FreelancerSkill.prototype, "userId", 2);
|
|
4703
4960
|
__decorateClass([
|
|
4704
|
-
|
|
4705
|
-
|
|
4961
|
+
ManyToOne45(() => User, (user) => user.freelancerSkills),
|
|
4962
|
+
JoinColumn45({ name: "user_id" })
|
|
4706
4963
|
], FreelancerSkill.prototype, "user", 2);
|
|
4707
4964
|
__decorateClass([
|
|
4708
|
-
|
|
4965
|
+
Column47({ name: "skill_name", type: "varchar", nullable: true })
|
|
4709
4966
|
], FreelancerSkill.prototype, "skillName", 2);
|
|
4710
4967
|
__decorateClass([
|
|
4711
|
-
|
|
4968
|
+
Column47({
|
|
4712
4969
|
name: "skill_category",
|
|
4713
4970
|
type: "smallint",
|
|
4714
4971
|
default: 1,
|
|
@@ -4716,68 +4973,68 @@ __decorateClass([
|
|
|
4716
4973
|
})
|
|
4717
4974
|
], FreelancerSkill.prototype, "skillCategory", 2);
|
|
4718
4975
|
FreelancerSkill = __decorateClass([
|
|
4719
|
-
|
|
4976
|
+
Entity46("freelancer_skills")
|
|
4720
4977
|
], FreelancerSkill);
|
|
4721
4978
|
|
|
4722
4979
|
// src/entities/freelancer-tool.entity.ts
|
|
4723
4980
|
import {
|
|
4724
|
-
Entity as
|
|
4725
|
-
Column as
|
|
4726
|
-
Index as
|
|
4727
|
-
ManyToOne as
|
|
4728
|
-
JoinColumn as
|
|
4981
|
+
Entity as Entity47,
|
|
4982
|
+
Column as Column48,
|
|
4983
|
+
Index as Index40,
|
|
4984
|
+
ManyToOne as ManyToOne46,
|
|
4985
|
+
JoinColumn as JoinColumn46
|
|
4729
4986
|
} from "typeorm";
|
|
4730
4987
|
var FreelancerTool = class extends BaseEntity {
|
|
4731
4988
|
};
|
|
4732
4989
|
// individual index to find tool by user
|
|
4733
4990
|
__decorateClass([
|
|
4734
|
-
|
|
4735
|
-
|
|
4991
|
+
Column48({ name: "user_id", type: "integer", nullable: true }),
|
|
4992
|
+
Index40()
|
|
4736
4993
|
], FreelancerTool.prototype, "userId", 2);
|
|
4737
4994
|
__decorateClass([
|
|
4738
|
-
|
|
4739
|
-
|
|
4995
|
+
ManyToOne46(() => User, (user) => user.freelancerTool),
|
|
4996
|
+
JoinColumn46({ name: "user_id" })
|
|
4740
4997
|
], FreelancerTool.prototype, "user", 2);
|
|
4741
4998
|
__decorateClass([
|
|
4742
|
-
|
|
4999
|
+
Column48({ name: "tool_name", type: "varchar", nullable: true })
|
|
4743
5000
|
], FreelancerTool.prototype, "toolName", 2);
|
|
4744
5001
|
FreelancerTool = __decorateClass([
|
|
4745
|
-
|
|
5002
|
+
Entity47("freelancer_tools")
|
|
4746
5003
|
], FreelancerTool);
|
|
4747
5004
|
|
|
4748
5005
|
// src/entities/freelancer-framework.entity.ts
|
|
4749
5006
|
import {
|
|
4750
|
-
Entity as
|
|
4751
|
-
Column as
|
|
4752
|
-
Index as
|
|
4753
|
-
ManyToOne as
|
|
4754
|
-
JoinColumn as
|
|
5007
|
+
Entity as Entity48,
|
|
5008
|
+
Column as Column49,
|
|
5009
|
+
Index as Index41,
|
|
5010
|
+
ManyToOne as ManyToOne47,
|
|
5011
|
+
JoinColumn as JoinColumn47
|
|
4755
5012
|
} from "typeorm";
|
|
4756
5013
|
var FreelancerFramework = class extends BaseEntity {
|
|
4757
5014
|
};
|
|
4758
5015
|
// individual index to find framework by user
|
|
4759
5016
|
__decorateClass([
|
|
4760
|
-
|
|
4761
|
-
|
|
5017
|
+
Column49({ name: "user_id", type: "integer", nullable: true }),
|
|
5018
|
+
Index41()
|
|
4762
5019
|
], FreelancerFramework.prototype, "userId", 2);
|
|
4763
5020
|
__decorateClass([
|
|
4764
|
-
|
|
4765
|
-
|
|
5021
|
+
ManyToOne47(() => User, (user) => user.freelancerFramework),
|
|
5022
|
+
JoinColumn47({ name: "user_id" })
|
|
4766
5023
|
], FreelancerFramework.prototype, "user", 2);
|
|
4767
5024
|
__decorateClass([
|
|
4768
|
-
|
|
5025
|
+
Column49({ name: "framework_name", type: "varchar", nullable: true })
|
|
4769
5026
|
], FreelancerFramework.prototype, "frameworkName", 2);
|
|
4770
5027
|
FreelancerFramework = __decorateClass([
|
|
4771
|
-
|
|
5028
|
+
Entity48("freelancer_frameworks")
|
|
4772
5029
|
], FreelancerFramework);
|
|
4773
5030
|
|
|
4774
5031
|
// src/entities/freelancer-assessment.entity.ts
|
|
4775
5032
|
import {
|
|
4776
|
-
Entity as
|
|
4777
|
-
Column as
|
|
4778
|
-
Index as
|
|
4779
|
-
ManyToOne as
|
|
4780
|
-
JoinColumn as
|
|
5033
|
+
Entity as Entity49,
|
|
5034
|
+
Column as Column50,
|
|
5035
|
+
Index as Index42,
|
|
5036
|
+
ManyToOne as ManyToOne48,
|
|
5037
|
+
JoinColumn as JoinColumn48
|
|
4781
5038
|
} from "typeorm";
|
|
4782
5039
|
var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
4783
5040
|
AssessmentStatusEnum2["NOT_ATTEMPTED"] = "NOT_ATTEMPTED";
|
|
@@ -4795,33 +5052,33 @@ var AssessmentStatusEnum = /* @__PURE__ */ ((AssessmentStatusEnum2) => {
|
|
|
4795
5052
|
var FreelancerAssessment = class extends BaseEntity {
|
|
4796
5053
|
};
|
|
4797
5054
|
__decorateClass([
|
|
4798
|
-
|
|
4799
|
-
|
|
5055
|
+
Column50({ name: "user_id", type: "integer", nullable: true }),
|
|
5056
|
+
Index42()
|
|
4800
5057
|
], FreelancerAssessment.prototype, "userId", 2);
|
|
4801
5058
|
__decorateClass([
|
|
4802
|
-
|
|
4803
|
-
|
|
5059
|
+
ManyToOne48(() => User, (user) => user.assessments),
|
|
5060
|
+
JoinColumn48({ name: "user_id" })
|
|
4804
5061
|
], FreelancerAssessment.prototype, "user", 2);
|
|
4805
5062
|
__decorateClass([
|
|
4806
|
-
|
|
5063
|
+
Column50({ name: "interview_id", type: "varchar", nullable: true })
|
|
4807
5064
|
], FreelancerAssessment.prototype, "interviewId", 2);
|
|
4808
5065
|
__decorateClass([
|
|
4809
|
-
|
|
5066
|
+
Column50({ name: "interview_link", type: "text", nullable: true })
|
|
4810
5067
|
], FreelancerAssessment.prototype, "interviewLink", 2);
|
|
4811
5068
|
__decorateClass([
|
|
4812
|
-
|
|
5069
|
+
Column50({ name: "recording_link", type: "text", nullable: true })
|
|
4813
5070
|
], FreelancerAssessment.prototype, "recordingLink", 2);
|
|
4814
5071
|
__decorateClass([
|
|
4815
|
-
|
|
5072
|
+
Column50({ name: "iframe_response", type: "jsonb", nullable: true })
|
|
4816
5073
|
], FreelancerAssessment.prototype, "iframeResponse", 2);
|
|
4817
5074
|
__decorateClass([
|
|
4818
|
-
|
|
5075
|
+
Column50({ name: "interview_summary", type: "jsonb", nullable: true })
|
|
4819
5076
|
], FreelancerAssessment.prototype, "interviewSummary", 2);
|
|
4820
5077
|
__decorateClass([
|
|
4821
|
-
|
|
5078
|
+
Column50({ name: "score", type: "float", nullable: true })
|
|
4822
5079
|
], FreelancerAssessment.prototype, "score", 2);
|
|
4823
5080
|
__decorateClass([
|
|
4824
|
-
|
|
5081
|
+
Column50({
|
|
4825
5082
|
name: "status",
|
|
4826
5083
|
type: "enum",
|
|
4827
5084
|
enum: AssessmentStatusEnum,
|
|
@@ -4829,17 +5086,17 @@ __decorateClass([
|
|
|
4829
5086
|
})
|
|
4830
5087
|
], FreelancerAssessment.prototype, "status", 2);
|
|
4831
5088
|
__decorateClass([
|
|
4832
|
-
|
|
5089
|
+
Column50({ name: "task_id", type: "varchar", nullable: true })
|
|
4833
5090
|
], FreelancerAssessment.prototype, "taskId", 2);
|
|
4834
5091
|
__decorateClass([
|
|
4835
|
-
|
|
5092
|
+
Column50({ name: "meta_data", type: "jsonb", nullable: true })
|
|
4836
5093
|
], FreelancerAssessment.prototype, "metaData", 2);
|
|
4837
5094
|
FreelancerAssessment = __decorateClass([
|
|
4838
|
-
|
|
5095
|
+
Entity49("freelancer_assessments")
|
|
4839
5096
|
], FreelancerAssessment);
|
|
4840
5097
|
|
|
4841
5098
|
// src/entities/freelancer-declaration.entity.ts
|
|
4842
|
-
import { Entity as
|
|
5099
|
+
import { Entity as Entity50, Column as Column51, Index as Index43, ManyToOne as ManyToOne49, JoinColumn as JoinColumn49 } from "typeorm";
|
|
4843
5100
|
var DocumentType = /* @__PURE__ */ ((DocumentType2) => {
|
|
4844
5101
|
DocumentType2["AADHAAR"] = "AADHAAR_CARD";
|
|
4845
5102
|
DocumentType2["PASSPORT"] = "PASSPORT";
|
|
@@ -4851,15 +5108,15 @@ var FreelancerDeclaration = class extends BaseEntity {
|
|
|
4851
5108
|
};
|
|
4852
5109
|
// individual index to find declaration by user
|
|
4853
5110
|
__decorateClass([
|
|
4854
|
-
|
|
4855
|
-
|
|
5111
|
+
Column51({ name: "user_id", type: "integer", nullable: true }),
|
|
5112
|
+
Index43()
|
|
4856
5113
|
], FreelancerDeclaration.prototype, "userId", 2);
|
|
4857
5114
|
__decorateClass([
|
|
4858
|
-
|
|
4859
|
-
|
|
5115
|
+
ManyToOne49(() => User, (user) => user.freelancerDeclaration),
|
|
5116
|
+
JoinColumn49({ name: "user_id" })
|
|
4860
5117
|
], FreelancerDeclaration.prototype, "user", 2);
|
|
4861
5118
|
__decorateClass([
|
|
4862
|
-
|
|
5119
|
+
Column51({
|
|
4863
5120
|
name: "document_type",
|
|
4864
5121
|
type: "enum",
|
|
4865
5122
|
enum: DocumentType,
|
|
@@ -4867,178 +5124,178 @@ __decorateClass([
|
|
|
4867
5124
|
})
|
|
4868
5125
|
], FreelancerDeclaration.prototype, "documentType", 2);
|
|
4869
5126
|
__decorateClass([
|
|
4870
|
-
|
|
5127
|
+
Column51({ name: "front_document_url", type: "varchar", nullable: true })
|
|
4871
5128
|
], FreelancerDeclaration.prototype, "frontDocumentUrl", 2);
|
|
4872
5129
|
__decorateClass([
|
|
4873
|
-
|
|
5130
|
+
Column51({ name: "back_document_url", type: "varchar", nullable: true })
|
|
4874
5131
|
], FreelancerDeclaration.prototype, "backDocumentUrl", 2);
|
|
4875
5132
|
__decorateClass([
|
|
4876
|
-
|
|
5133
|
+
Column51({ name: "declaration_accepted", type: "boolean", default: false })
|
|
4877
5134
|
], FreelancerDeclaration.prototype, "declarationAccepted", 2);
|
|
4878
5135
|
__decorateClass([
|
|
4879
|
-
|
|
5136
|
+
Column51({ name: "digital_signature_url", type: "varchar", nullable: true })
|
|
4880
5137
|
], FreelancerDeclaration.prototype, "digitalSignatureUrl", 2);
|
|
4881
5138
|
FreelancerDeclaration = __decorateClass([
|
|
4882
|
-
|
|
5139
|
+
Entity50("freelancer_declaration")
|
|
4883
5140
|
], FreelancerDeclaration);
|
|
4884
5141
|
|
|
4885
5142
|
// src/entities/company-members-roles.entity.ts
|
|
4886
5143
|
import {
|
|
4887
|
-
Column as
|
|
4888
|
-
Entity as
|
|
4889
|
-
ManyToOne as
|
|
4890
|
-
JoinColumn as
|
|
4891
|
-
Index as
|
|
5144
|
+
Column as Column55,
|
|
5145
|
+
Entity as Entity54,
|
|
5146
|
+
ManyToOne as ManyToOne52,
|
|
5147
|
+
JoinColumn as JoinColumn52,
|
|
5148
|
+
Index as Index47
|
|
4892
5149
|
} from "typeorm";
|
|
4893
5150
|
|
|
4894
5151
|
// src/entities/company-role.entity.ts
|
|
4895
5152
|
import {
|
|
4896
|
-
Column as
|
|
4897
|
-
Entity as
|
|
4898
|
-
Index as
|
|
4899
|
-
JoinColumn as
|
|
4900
|
-
ManyToOne as
|
|
5153
|
+
Column as Column54,
|
|
5154
|
+
Entity as Entity53,
|
|
5155
|
+
Index as Index46,
|
|
5156
|
+
JoinColumn as JoinColumn51,
|
|
5157
|
+
ManyToOne as ManyToOne51,
|
|
4901
5158
|
OneToMany as OneToMany17
|
|
4902
5159
|
} from "typeorm";
|
|
4903
5160
|
|
|
4904
5161
|
// src/entities/company-role-permission.entity.ts
|
|
4905
5162
|
import {
|
|
4906
|
-
Column as
|
|
4907
|
-
Entity as
|
|
4908
|
-
ManyToOne as
|
|
4909
|
-
JoinColumn as
|
|
4910
|
-
Index as
|
|
5163
|
+
Column as Column53,
|
|
5164
|
+
Entity as Entity52,
|
|
5165
|
+
ManyToOne as ManyToOne50,
|
|
5166
|
+
JoinColumn as JoinColumn50,
|
|
5167
|
+
Index as Index45
|
|
4911
5168
|
} from "typeorm";
|
|
4912
5169
|
|
|
4913
5170
|
// src/entities/permission.entity.ts
|
|
4914
|
-
import { Column as
|
|
5171
|
+
import { Column as Column52, Entity as Entity51, Index as Index44 } from "typeorm";
|
|
4915
5172
|
var Permission = class extends BaseEntity {
|
|
4916
5173
|
};
|
|
4917
5174
|
__decorateClass([
|
|
4918
|
-
|
|
5175
|
+
Column52({ name: "name", type: "varchar", nullable: true })
|
|
4919
5176
|
], Permission.prototype, "name", 2);
|
|
4920
5177
|
__decorateClass([
|
|
4921
|
-
|
|
4922
|
-
|
|
5178
|
+
Column52({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5179
|
+
Index44()
|
|
4923
5180
|
], Permission.prototype, "slug", 2);
|
|
4924
5181
|
__decorateClass([
|
|
4925
|
-
|
|
5182
|
+
Column52({ name: "description", type: "text", nullable: true })
|
|
4926
5183
|
], Permission.prototype, "description", 2);
|
|
4927
5184
|
__decorateClass([
|
|
4928
|
-
|
|
5185
|
+
Column52({ name: "module", type: "varchar", nullable: true })
|
|
4929
5186
|
], Permission.prototype, "module", 2);
|
|
4930
5187
|
__decorateClass([
|
|
4931
|
-
|
|
5188
|
+
Column52({ name: "is_active", type: "boolean", default: true })
|
|
4932
5189
|
], Permission.prototype, "isActive", 2);
|
|
4933
5190
|
Permission = __decorateClass([
|
|
4934
|
-
|
|
5191
|
+
Entity51("permissions")
|
|
4935
5192
|
], Permission);
|
|
4936
5193
|
|
|
4937
5194
|
// src/entities/company-role-permission.entity.ts
|
|
4938
5195
|
var CompanyRolePermission = class extends BaseEntity {
|
|
4939
5196
|
};
|
|
4940
5197
|
__decorateClass([
|
|
4941
|
-
|
|
4942
|
-
|
|
5198
|
+
Column53({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5199
|
+
Index45()
|
|
4943
5200
|
], CompanyRolePermission.prototype, "companyRoleId", 2);
|
|
4944
5201
|
__decorateClass([
|
|
4945
|
-
|
|
5202
|
+
ManyToOne50(() => CompanyRole, (role) => role.rolePermissions, {
|
|
4946
5203
|
onDelete: "CASCADE"
|
|
4947
5204
|
}),
|
|
4948
|
-
|
|
5205
|
+
JoinColumn50({ name: "company_role_id" })
|
|
4949
5206
|
], CompanyRolePermission.prototype, "companyRole", 2);
|
|
4950
5207
|
__decorateClass([
|
|
4951
|
-
|
|
4952
|
-
|
|
5208
|
+
Column53({ name: "permission_id", type: "integer" }),
|
|
5209
|
+
Index45()
|
|
4953
5210
|
], CompanyRolePermission.prototype, "permissionId", 2);
|
|
4954
5211
|
__decorateClass([
|
|
4955
|
-
|
|
4956
|
-
|
|
5212
|
+
ManyToOne50(() => Permission, { onDelete: "CASCADE" }),
|
|
5213
|
+
JoinColumn50({ name: "permission_id" })
|
|
4957
5214
|
], CompanyRolePermission.prototype, "permission", 2);
|
|
4958
5215
|
__decorateClass([
|
|
4959
|
-
|
|
5216
|
+
Column53({ name: "assigned_by", type: "integer", nullable: true })
|
|
4960
5217
|
], CompanyRolePermission.prototype, "assignedBy", 2);
|
|
4961
5218
|
CompanyRolePermission = __decorateClass([
|
|
4962
|
-
|
|
5219
|
+
Entity52("company_role_permissions")
|
|
4963
5220
|
], CompanyRolePermission);
|
|
4964
5221
|
|
|
4965
5222
|
// src/entities/company-role.entity.ts
|
|
4966
5223
|
var CompanyRole = class extends BaseEntity {
|
|
4967
5224
|
};
|
|
4968
5225
|
__decorateClass([
|
|
4969
|
-
|
|
4970
|
-
|
|
5226
|
+
Column54({ name: "user_id", type: "integer", nullable: true }),
|
|
5227
|
+
Index46()
|
|
4971
5228
|
], CompanyRole.prototype, "userId", 2);
|
|
4972
5229
|
__decorateClass([
|
|
4973
|
-
|
|
4974
|
-
|
|
5230
|
+
ManyToOne51(() => User, (user) => user.otps),
|
|
5231
|
+
JoinColumn51({ name: "user_id" })
|
|
4975
5232
|
], CompanyRole.prototype, "user", 2);
|
|
4976
5233
|
__decorateClass([
|
|
4977
|
-
|
|
5234
|
+
Column54({ name: "name", type: "varchar" })
|
|
4978
5235
|
], CompanyRole.prototype, "name", 2);
|
|
4979
5236
|
__decorateClass([
|
|
4980
|
-
|
|
4981
|
-
|
|
5237
|
+
Column54({ name: "slug", type: "varchar", nullable: true, unique: true }),
|
|
5238
|
+
Index46()
|
|
4982
5239
|
], CompanyRole.prototype, "slug", 2);
|
|
4983
5240
|
__decorateClass([
|
|
4984
|
-
|
|
5241
|
+
Column54({ name: "description", type: "text", nullable: true })
|
|
4985
5242
|
], CompanyRole.prototype, "description", 2);
|
|
4986
5243
|
__decorateClass([
|
|
4987
|
-
|
|
5244
|
+
Column54({ name: "is_active", type: "boolean", default: true })
|
|
4988
5245
|
], CompanyRole.prototype, "isActive", 2);
|
|
4989
5246
|
__decorateClass([
|
|
4990
5247
|
OneToMany17(() => CompanyRolePermission, (rp) => rp.companyRole)
|
|
4991
5248
|
], CompanyRole.prototype, "rolePermissions", 2);
|
|
4992
5249
|
CompanyRole = __decorateClass([
|
|
4993
|
-
|
|
5250
|
+
Entity53("company_roles")
|
|
4994
5251
|
], CompanyRole);
|
|
4995
5252
|
|
|
4996
5253
|
// src/entities/company-members-roles.entity.ts
|
|
4997
5254
|
var CompanyMemberRole = class extends BaseEntity {
|
|
4998
5255
|
};
|
|
4999
5256
|
__decorateClass([
|
|
5000
|
-
|
|
5001
|
-
|
|
5257
|
+
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
5258
|
+
Index47()
|
|
5002
5259
|
], CompanyMemberRole.prototype, "userId", 2);
|
|
5003
5260
|
__decorateClass([
|
|
5004
|
-
|
|
5005
|
-
|
|
5261
|
+
ManyToOne52(() => User),
|
|
5262
|
+
JoinColumn52({ name: "user_id" })
|
|
5006
5263
|
], CompanyMemberRole.prototype, "user", 2);
|
|
5007
5264
|
__decorateClass([
|
|
5008
|
-
|
|
5009
|
-
|
|
5265
|
+
ManyToOne52(() => CompanyRole),
|
|
5266
|
+
JoinColumn52({ name: "company_role_id" })
|
|
5010
5267
|
], CompanyMemberRole.prototype, "role", 2);
|
|
5011
5268
|
__decorateClass([
|
|
5012
|
-
|
|
5013
|
-
|
|
5269
|
+
Column55({ name: "company_role_id", type: "integer", nullable: true }),
|
|
5270
|
+
Index47()
|
|
5014
5271
|
], CompanyMemberRole.prototype, "companyRoleId", 2);
|
|
5015
5272
|
__decorateClass([
|
|
5016
|
-
|
|
5273
|
+
Column55({ name: "assigned_by", type: "integer", nullable: true })
|
|
5017
5274
|
], CompanyMemberRole.prototype, "assignedBy", 2);
|
|
5018
5275
|
CompanyMemberRole = __decorateClass([
|
|
5019
|
-
|
|
5276
|
+
Entity54("company_member_roles")
|
|
5020
5277
|
], CompanyMemberRole);
|
|
5021
5278
|
|
|
5022
5279
|
// src/entities/assessment-answer.entity.ts
|
|
5023
5280
|
import {
|
|
5024
|
-
Entity as
|
|
5025
|
-
Column as
|
|
5026
|
-
ManyToOne as
|
|
5027
|
-
Index as
|
|
5028
|
-
JoinColumn as
|
|
5281
|
+
Entity as Entity57,
|
|
5282
|
+
Column as Column58,
|
|
5283
|
+
ManyToOne as ManyToOne55,
|
|
5284
|
+
Index as Index50,
|
|
5285
|
+
JoinColumn as JoinColumn55
|
|
5029
5286
|
} from "typeorm";
|
|
5030
5287
|
|
|
5031
5288
|
// src/entities/assessment-question.entity.ts
|
|
5032
|
-
import { Entity as
|
|
5289
|
+
import { Entity as Entity56, Column as Column57, OneToMany as OneToMany19, Index as Index49, ManyToOne as ManyToOne54, JoinColumn as JoinColumn54 } from "typeorm";
|
|
5033
5290
|
|
|
5034
5291
|
// src/entities/assessment-question-option.entity.ts
|
|
5035
5292
|
import {
|
|
5036
|
-
Entity as
|
|
5037
|
-
Column as
|
|
5293
|
+
Entity as Entity55,
|
|
5294
|
+
Column as Column56,
|
|
5038
5295
|
OneToMany as OneToMany18,
|
|
5039
|
-
ManyToOne as
|
|
5040
|
-
Index as
|
|
5041
|
-
JoinColumn as
|
|
5296
|
+
ManyToOne as ManyToOne53,
|
|
5297
|
+
Index as Index48,
|
|
5298
|
+
JoinColumn as JoinColumn53
|
|
5042
5299
|
} from "typeorm";
|
|
5043
5300
|
var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
5044
5301
|
AnswerTypeEnum2["CORRECT"] = "CORRECT";
|
|
@@ -5049,21 +5306,21 @@ var AnswerTypeEnum = /* @__PURE__ */ ((AnswerTypeEnum2) => {
|
|
|
5049
5306
|
var AssessmetQuestionOption = class extends BaseEntity {
|
|
5050
5307
|
};
|
|
5051
5308
|
__decorateClass([
|
|
5052
|
-
|
|
5053
|
-
|
|
5309
|
+
Column56({ name: "question_id", type: "integer", nullable: true }),
|
|
5310
|
+
Index48()
|
|
5054
5311
|
], AssessmetQuestionOption.prototype, "questionId", 2);
|
|
5055
5312
|
__decorateClass([
|
|
5056
|
-
|
|
5313
|
+
ManyToOne53(
|
|
5057
5314
|
() => AssessmetQuestion,
|
|
5058
5315
|
(assessmentQuestion) => assessmentQuestion.options
|
|
5059
5316
|
),
|
|
5060
|
-
|
|
5317
|
+
JoinColumn53({ name: "question_id" })
|
|
5061
5318
|
], AssessmetQuestionOption.prototype, "question", 2);
|
|
5062
5319
|
__decorateClass([
|
|
5063
|
-
|
|
5320
|
+
Column56({ name: "text", type: "varchar", nullable: true })
|
|
5064
5321
|
], AssessmetQuestionOption.prototype, "text", 2);
|
|
5065
5322
|
__decorateClass([
|
|
5066
|
-
|
|
5323
|
+
Column56({
|
|
5067
5324
|
name: "answer_type",
|
|
5068
5325
|
type: "enum",
|
|
5069
5326
|
enum: AnswerTypeEnum,
|
|
@@ -5071,13 +5328,13 @@ __decorateClass([
|
|
|
5071
5328
|
})
|
|
5072
5329
|
], AssessmetQuestionOption.prototype, "answerType", 2);
|
|
5073
5330
|
__decorateClass([
|
|
5074
|
-
|
|
5331
|
+
Column56({ name: "is_active", type: "boolean", default: true })
|
|
5075
5332
|
], AssessmetQuestionOption.prototype, "isActive", 2);
|
|
5076
5333
|
__decorateClass([
|
|
5077
5334
|
OneToMany18(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.option)
|
|
5078
5335
|
], AssessmetQuestionOption.prototype, "selectedOptions", 2);
|
|
5079
5336
|
AssessmetQuestionOption = __decorateClass([
|
|
5080
|
-
|
|
5337
|
+
Entity55("assessment_question_options")
|
|
5081
5338
|
], AssessmetQuestionOption);
|
|
5082
5339
|
|
|
5083
5340
|
// src/entities/assessment-question.entity.ts
|
|
@@ -5089,10 +5346,10 @@ var QuestionForEnum = /* @__PURE__ */ ((QuestionForEnum2) => {
|
|
|
5089
5346
|
var AssessmetQuestion = class extends BaseEntity {
|
|
5090
5347
|
};
|
|
5091
5348
|
__decorateClass([
|
|
5092
|
-
|
|
5349
|
+
Column57({ name: "text", type: "varchar", nullable: true })
|
|
5093
5350
|
], AssessmetQuestion.prototype, "text", 2);
|
|
5094
5351
|
__decorateClass([
|
|
5095
|
-
|
|
5352
|
+
Column57({
|
|
5096
5353
|
name: "question_for",
|
|
5097
5354
|
type: "enum",
|
|
5098
5355
|
enum: QuestionForEnum,
|
|
@@ -5100,15 +5357,15 @@ __decorateClass([
|
|
|
5100
5357
|
})
|
|
5101
5358
|
], AssessmetQuestion.prototype, "questionFor", 2);
|
|
5102
5359
|
__decorateClass([
|
|
5103
|
-
|
|
5360
|
+
Column57({ name: "is_active", type: "boolean", default: true })
|
|
5104
5361
|
], AssessmetQuestion.prototype, "isActive", 2);
|
|
5105
5362
|
__decorateClass([
|
|
5106
|
-
|
|
5107
|
-
|
|
5363
|
+
Column57({ name: "candidate_id", type: "integer", nullable: true }),
|
|
5364
|
+
Index49()
|
|
5108
5365
|
], AssessmetQuestion.prototype, "candidateId", 2);
|
|
5109
5366
|
__decorateClass([
|
|
5110
|
-
|
|
5111
|
-
|
|
5367
|
+
ManyToOne54(() => User, (user) => user.freelancerMcq, { nullable: true }),
|
|
5368
|
+
JoinColumn54({ name: "candidate_id" })
|
|
5112
5369
|
], AssessmetQuestion.prototype, "candidate", 2);
|
|
5113
5370
|
__decorateClass([
|
|
5114
5371
|
OneToMany19(() => AssessmetQuestionOption, (assessmentQuestionOption) => assessmentQuestionOption.question)
|
|
@@ -5117,7 +5374,7 @@ __decorateClass([
|
|
|
5117
5374
|
OneToMany19(() => AssessmentAnswer, (assessmentAnswer) => assessmentAnswer.question)
|
|
5118
5375
|
], AssessmetQuestion.prototype, "answers", 2);
|
|
5119
5376
|
AssessmetQuestion = __decorateClass([
|
|
5120
|
-
|
|
5377
|
+
Entity56("assessment_questions")
|
|
5121
5378
|
], AssessmetQuestion);
|
|
5122
5379
|
|
|
5123
5380
|
// src/entities/assessment-answer.entity.ts
|
|
@@ -5130,102 +5387,102 @@ var SelectedAnswerTypeEnum = /* @__PURE__ */ ((SelectedAnswerTypeEnum2) => {
|
|
|
5130
5387
|
var AssessmentAnswer = class extends BaseEntity {
|
|
5131
5388
|
};
|
|
5132
5389
|
__decorateClass([
|
|
5133
|
-
|
|
5134
|
-
|
|
5390
|
+
Column58({ name: "user_id", type: "integer" }),
|
|
5391
|
+
Index50()
|
|
5135
5392
|
], AssessmentAnswer.prototype, "userId", 2);
|
|
5136
5393
|
__decorateClass([
|
|
5137
|
-
|
|
5138
|
-
|
|
5394
|
+
ManyToOne55(() => User, (user) => user.assessmentAnswers),
|
|
5395
|
+
JoinColumn55({ name: "user_id" })
|
|
5139
5396
|
], AssessmentAnswer.prototype, "user", 2);
|
|
5140
5397
|
__decorateClass([
|
|
5141
|
-
|
|
5142
|
-
|
|
5398
|
+
Column58({ name: "question_id", type: "integer" }),
|
|
5399
|
+
Index50()
|
|
5143
5400
|
], AssessmentAnswer.prototype, "questionId", 2);
|
|
5144
5401
|
__decorateClass([
|
|
5145
|
-
|
|
5402
|
+
ManyToOne55(
|
|
5146
5403
|
() => AssessmetQuestion,
|
|
5147
5404
|
(assessmentQuestion) => assessmentQuestion.answers
|
|
5148
5405
|
),
|
|
5149
|
-
|
|
5406
|
+
JoinColumn55({ name: "question_id" })
|
|
5150
5407
|
], AssessmentAnswer.prototype, "question", 2);
|
|
5151
5408
|
__decorateClass([
|
|
5152
|
-
|
|
5153
|
-
|
|
5409
|
+
Column58({ name: "selected_option_id", type: "integer" }),
|
|
5410
|
+
Index50()
|
|
5154
5411
|
], AssessmentAnswer.prototype, "selectedOptionId", 2);
|
|
5155
5412
|
__decorateClass([
|
|
5156
|
-
|
|
5413
|
+
ManyToOne55(
|
|
5157
5414
|
() => AssessmetQuestionOption,
|
|
5158
5415
|
(assessmentQuestionOption) => assessmentQuestionOption.selectedOptions
|
|
5159
5416
|
),
|
|
5160
|
-
|
|
5417
|
+
JoinColumn55({ name: "selected_option_id" })
|
|
5161
5418
|
], AssessmentAnswer.prototype, "option", 2);
|
|
5162
5419
|
__decorateClass([
|
|
5163
|
-
|
|
5420
|
+
Column58({
|
|
5164
5421
|
name: "selected_answer_type",
|
|
5165
5422
|
type: "enum",
|
|
5166
5423
|
enum: SelectedAnswerTypeEnum
|
|
5167
5424
|
})
|
|
5168
5425
|
], AssessmentAnswer.prototype, "selectedAnswerType", 2);
|
|
5169
5426
|
__decorateClass([
|
|
5170
|
-
|
|
5427
|
+
Column58({ name: "score", type: "float" })
|
|
5171
5428
|
], AssessmentAnswer.prototype, "score", 2);
|
|
5172
5429
|
AssessmentAnswer = __decorateClass([
|
|
5173
|
-
|
|
5430
|
+
Entity57("assessment_answers")
|
|
5174
5431
|
], AssessmentAnswer);
|
|
5175
5432
|
|
|
5176
5433
|
// src/entities/company-skill.entity.ts
|
|
5177
|
-
import { Entity as
|
|
5434
|
+
import { Entity as Entity58, Column as Column59, Index as Index51, ManyToOne as ManyToOne56, JoinColumn as JoinColumn56 } from "typeorm";
|
|
5178
5435
|
var CompanySkill = class extends BaseEntity {
|
|
5179
5436
|
};
|
|
5180
5437
|
// individual index to find core skills by user
|
|
5181
5438
|
__decorateClass([
|
|
5182
|
-
|
|
5183
|
-
|
|
5439
|
+
Column59({ name: "user_id", type: "integer", nullable: true }),
|
|
5440
|
+
Index51()
|
|
5184
5441
|
], CompanySkill.prototype, "userId", 2);
|
|
5185
5442
|
__decorateClass([
|
|
5186
|
-
|
|
5187
|
-
|
|
5443
|
+
ManyToOne56(() => User, (user) => user.companySkills),
|
|
5444
|
+
JoinColumn56({ name: "user_id" })
|
|
5188
5445
|
], CompanySkill.prototype, "user", 2);
|
|
5189
5446
|
__decorateClass([
|
|
5190
|
-
|
|
5447
|
+
Column59({ name: "skill_name", type: "varchar", nullable: true })
|
|
5191
5448
|
], CompanySkill.prototype, "skillName", 2);
|
|
5192
5449
|
CompanySkill = __decorateClass([
|
|
5193
|
-
|
|
5450
|
+
Entity58("company_skills")
|
|
5194
5451
|
], CompanySkill);
|
|
5195
5452
|
|
|
5196
5453
|
// src/entities/admin-user-role.entity.ts
|
|
5197
|
-
import { Entity as
|
|
5454
|
+
import { Entity as Entity62, Column as Column63, ManyToOne as ManyToOne58, JoinColumn as JoinColumn58 } from "typeorm";
|
|
5198
5455
|
|
|
5199
5456
|
// src/entities/admin-role.entity.ts
|
|
5200
|
-
import { Entity as
|
|
5457
|
+
import { Entity as Entity61, Column as Column62, Index as Index54, OneToMany as OneToMany22 } from "typeorm";
|
|
5201
5458
|
|
|
5202
5459
|
// src/entities/admin-role-permission.entity.ts
|
|
5203
|
-
import { Entity as
|
|
5460
|
+
import { Entity as Entity60, Column as Column61, ManyToOne as ManyToOne57, JoinColumn as JoinColumn57 } from "typeorm";
|
|
5204
5461
|
|
|
5205
5462
|
// src/entities/admin-permission.entity.ts
|
|
5206
|
-
import { Entity as
|
|
5463
|
+
import { Entity as Entity59, Column as Column60, Index as Index52, OneToMany as OneToMany21 } from "typeorm";
|
|
5207
5464
|
var AdminPermission = class extends BaseEntity {
|
|
5208
5465
|
};
|
|
5209
5466
|
__decorateClass([
|
|
5210
|
-
|
|
5467
|
+
Column60({ name: "permission_name", type: "varchar", nullable: true })
|
|
5211
5468
|
], AdminPermission.prototype, "permissionName", 2);
|
|
5212
5469
|
__decorateClass([
|
|
5213
|
-
|
|
5470
|
+
Column60({
|
|
5214
5471
|
name: "permission_slug",
|
|
5215
5472
|
type: "varchar",
|
|
5216
5473
|
unique: true,
|
|
5217
5474
|
nullable: true
|
|
5218
5475
|
}),
|
|
5219
|
-
|
|
5476
|
+
Index52()
|
|
5220
5477
|
], AdminPermission.prototype, "permissionSlug", 2);
|
|
5221
5478
|
__decorateClass([
|
|
5222
|
-
|
|
5479
|
+
Column60({ name: "permission_description", type: "varchar", nullable: true })
|
|
5223
5480
|
], AdminPermission.prototype, "permissionDescription", 2);
|
|
5224
5481
|
__decorateClass([
|
|
5225
|
-
|
|
5482
|
+
Column60({ name: "module", type: "varchar", nullable: true })
|
|
5226
5483
|
], AdminPermission.prototype, "module", 2);
|
|
5227
5484
|
__decorateClass([
|
|
5228
|
-
|
|
5485
|
+
Column60({ name: "is_active", type: "boolean", default: true })
|
|
5229
5486
|
], AdminPermission.prototype, "isActive", 2);
|
|
5230
5487
|
__decorateClass([
|
|
5231
5488
|
OneToMany21(
|
|
@@ -5234,14 +5491,14 @@ __decorateClass([
|
|
|
5234
5491
|
)
|
|
5235
5492
|
], AdminPermission.prototype, "adminRole", 2);
|
|
5236
5493
|
AdminPermission = __decorateClass([
|
|
5237
|
-
|
|
5494
|
+
Entity59("admin_permissions")
|
|
5238
5495
|
], AdminPermission);
|
|
5239
5496
|
|
|
5240
5497
|
// src/entities/admin-role-permission.entity.ts
|
|
5241
5498
|
var AdminRolePermission = class extends BaseEntity {
|
|
5242
5499
|
};
|
|
5243
5500
|
__decorateClass([
|
|
5244
|
-
|
|
5501
|
+
Column61({
|
|
5245
5502
|
name: "role_id",
|
|
5246
5503
|
type: "int",
|
|
5247
5504
|
nullable: true,
|
|
@@ -5249,11 +5506,11 @@ __decorateClass([
|
|
|
5249
5506
|
})
|
|
5250
5507
|
], AdminRolePermission.prototype, "roleId", 2);
|
|
5251
5508
|
__decorateClass([
|
|
5252
|
-
|
|
5253
|
-
|
|
5509
|
+
ManyToOne57(() => AdminRole),
|
|
5510
|
+
JoinColumn57({ name: "role_id" })
|
|
5254
5511
|
], AdminRolePermission.prototype, "adminRole", 2);
|
|
5255
5512
|
__decorateClass([
|
|
5256
|
-
|
|
5513
|
+
Column61({
|
|
5257
5514
|
name: "permission_id",
|
|
5258
5515
|
type: "int",
|
|
5259
5516
|
nullable: true,
|
|
@@ -5261,28 +5518,28 @@ __decorateClass([
|
|
|
5261
5518
|
})
|
|
5262
5519
|
], AdminRolePermission.prototype, "permissionId", 2);
|
|
5263
5520
|
__decorateClass([
|
|
5264
|
-
|
|
5265
|
-
|
|
5521
|
+
ManyToOne57(() => AdminPermission),
|
|
5522
|
+
JoinColumn57({ name: "permission_id" })
|
|
5266
5523
|
], AdminRolePermission.prototype, "adminPermissions", 2);
|
|
5267
5524
|
AdminRolePermission = __decorateClass([
|
|
5268
|
-
|
|
5525
|
+
Entity60("admin_role_permissions")
|
|
5269
5526
|
], AdminRolePermission);
|
|
5270
5527
|
|
|
5271
5528
|
// src/entities/admin-role.entity.ts
|
|
5272
5529
|
var AdminRole = class extends BaseEntity {
|
|
5273
5530
|
};
|
|
5274
5531
|
__decorateClass([
|
|
5275
|
-
|
|
5532
|
+
Column62({ name: "role_name", type: "varchar", nullable: true })
|
|
5276
5533
|
], AdminRole.prototype, "roleName", 2);
|
|
5277
5534
|
__decorateClass([
|
|
5278
|
-
|
|
5279
|
-
|
|
5535
|
+
Column62({ name: "role_slug", type: "varchar", unique: true, nullable: true }),
|
|
5536
|
+
Index54()
|
|
5280
5537
|
], AdminRole.prototype, "roleSlug", 2);
|
|
5281
5538
|
__decorateClass([
|
|
5282
|
-
|
|
5539
|
+
Column62({ name: "role_description", type: "varchar", nullable: true })
|
|
5283
5540
|
], AdminRole.prototype, "roleDescription", 2);
|
|
5284
5541
|
__decorateClass([
|
|
5285
|
-
|
|
5542
|
+
Column62({ name: "is_active", type: "boolean", default: true })
|
|
5286
5543
|
], AdminRole.prototype, "isActive", 2);
|
|
5287
5544
|
__decorateClass([
|
|
5288
5545
|
OneToMany22(
|
|
@@ -5294,14 +5551,14 @@ __decorateClass([
|
|
|
5294
5551
|
OneToMany22(() => AdminUserRole, (adminUserRole) => adminUserRole.adminRole)
|
|
5295
5552
|
], AdminRole.prototype, "userRoles", 2);
|
|
5296
5553
|
AdminRole = __decorateClass([
|
|
5297
|
-
|
|
5554
|
+
Entity61("admin_roles")
|
|
5298
5555
|
], AdminRole);
|
|
5299
5556
|
|
|
5300
5557
|
// src/entities/admin-user-role.entity.ts
|
|
5301
5558
|
var AdminUserRole = class extends BaseEntity {
|
|
5302
5559
|
};
|
|
5303
5560
|
__decorateClass([
|
|
5304
|
-
|
|
5561
|
+
Column63({
|
|
5305
5562
|
name: "user_id",
|
|
5306
5563
|
type: "int",
|
|
5307
5564
|
nullable: true,
|
|
@@ -5309,11 +5566,11 @@ __decorateClass([
|
|
|
5309
5566
|
})
|
|
5310
5567
|
], AdminUserRole.prototype, "userId", 2);
|
|
5311
5568
|
__decorateClass([
|
|
5312
|
-
|
|
5313
|
-
|
|
5569
|
+
ManyToOne58(() => User),
|
|
5570
|
+
JoinColumn58({ name: "user_id" })
|
|
5314
5571
|
], AdminUserRole.prototype, "user", 2);
|
|
5315
5572
|
__decorateClass([
|
|
5316
|
-
|
|
5573
|
+
Column63({
|
|
5317
5574
|
name: "role_id",
|
|
5318
5575
|
type: "int",
|
|
5319
5576
|
nullable: true,
|
|
@@ -5321,70 +5578,70 @@ __decorateClass([
|
|
|
5321
5578
|
})
|
|
5322
5579
|
], AdminUserRole.prototype, "roleId", 2);
|
|
5323
5580
|
__decorateClass([
|
|
5324
|
-
|
|
5325
|
-
|
|
5581
|
+
ManyToOne58(() => AdminRole),
|
|
5582
|
+
JoinColumn58({ name: "role_id" })
|
|
5326
5583
|
], AdminUserRole.prototype, "adminRole", 2);
|
|
5327
5584
|
AdminUserRole = __decorateClass([
|
|
5328
|
-
|
|
5585
|
+
Entity62("admin_user_roles")
|
|
5329
5586
|
], AdminUserRole);
|
|
5330
5587
|
|
|
5331
5588
|
// src/entities/freelancer-resume.entity.ts
|
|
5332
5589
|
import {
|
|
5333
|
-
Entity as
|
|
5334
|
-
Column as
|
|
5335
|
-
Index as
|
|
5336
|
-
ManyToOne as
|
|
5337
|
-
JoinColumn as
|
|
5590
|
+
Entity as Entity63,
|
|
5591
|
+
Column as Column64,
|
|
5592
|
+
Index as Index56,
|
|
5593
|
+
ManyToOne as ManyToOne59,
|
|
5594
|
+
JoinColumn as JoinColumn59
|
|
5338
5595
|
} from "typeorm";
|
|
5339
5596
|
var FreelancerResume = class extends BaseEntity {
|
|
5340
5597
|
};
|
|
5341
5598
|
// individual index to find profile by user
|
|
5342
5599
|
__decorateClass([
|
|
5343
|
-
|
|
5344
|
-
|
|
5600
|
+
Column64({ name: "user_id", type: "integer", nullable: true }),
|
|
5601
|
+
Index56()
|
|
5345
5602
|
], FreelancerResume.prototype, "userId", 2);
|
|
5346
5603
|
__decorateClass([
|
|
5347
|
-
|
|
5348
|
-
|
|
5604
|
+
ManyToOne59(() => User, (user) => user.freelancerProfile),
|
|
5605
|
+
JoinColumn59({ name: "user_id" })
|
|
5349
5606
|
], FreelancerResume.prototype, "user", 2);
|
|
5350
5607
|
__decorateClass([
|
|
5351
|
-
|
|
5608
|
+
Column64({ name: "resume_data", type: "jsonb", nullable: true })
|
|
5352
5609
|
], FreelancerResume.prototype, "resumeData", 2);
|
|
5353
5610
|
__decorateClass([
|
|
5354
|
-
|
|
5611
|
+
Column64({ name: "processed_resume_data", type: "jsonb", nullable: true })
|
|
5355
5612
|
], FreelancerResume.prototype, "processedResumeData", 2);
|
|
5356
5613
|
FreelancerResume = __decorateClass([
|
|
5357
|
-
|
|
5614
|
+
Entity63("freelancer_resumes")
|
|
5358
5615
|
], FreelancerResume);
|
|
5359
5616
|
|
|
5360
5617
|
// src/entities/signature.entity.ts
|
|
5361
5618
|
import {
|
|
5362
|
-
Entity as
|
|
5363
|
-
Column as
|
|
5364
|
-
Index as
|
|
5365
|
-
ManyToOne as
|
|
5366
|
-
JoinColumn as
|
|
5619
|
+
Entity as Entity64,
|
|
5620
|
+
Column as Column65,
|
|
5621
|
+
Index as Index57,
|
|
5622
|
+
ManyToOne as ManyToOne60,
|
|
5623
|
+
JoinColumn as JoinColumn60
|
|
5367
5624
|
} from "typeorm";
|
|
5368
5625
|
var Signature = class extends BaseEntity {
|
|
5369
5626
|
};
|
|
5370
5627
|
// individual index to find profile by user
|
|
5371
5628
|
__decorateClass([
|
|
5372
|
-
|
|
5373
|
-
|
|
5629
|
+
Column65({ name: "user_id", type: "integer", nullable: true }),
|
|
5630
|
+
Index57()
|
|
5374
5631
|
], Signature.prototype, "userId", 2);
|
|
5375
5632
|
__decorateClass([
|
|
5376
|
-
|
|
5377
|
-
|
|
5633
|
+
ManyToOne60(() => User, (user) => user.signatures),
|
|
5634
|
+
JoinColumn60({ name: "user_id" })
|
|
5378
5635
|
], Signature.prototype, "user", 2);
|
|
5379
5636
|
__decorateClass([
|
|
5380
|
-
|
|
5637
|
+
Column65({ name: "signature_url", type: "text", nullable: true })
|
|
5381
5638
|
], Signature.prototype, "signatureUrl", 2);
|
|
5382
5639
|
Signature = __decorateClass([
|
|
5383
|
-
|
|
5640
|
+
Entity64("signatures")
|
|
5384
5641
|
], Signature);
|
|
5385
5642
|
|
|
5386
5643
|
// src/entities/dispute.entity.ts
|
|
5387
|
-
import { Entity as
|
|
5644
|
+
import { Entity as Entity65, Column as Column66, Index as Index58, JoinColumn as JoinColumn61, ManyToOne as ManyToOne61 } from "typeorm";
|
|
5388
5645
|
var DisputeStatusEnum = /* @__PURE__ */ ((DisputeStatusEnum2) => {
|
|
5389
5646
|
DisputeStatusEnum2["OPEN"] = "OPEN";
|
|
5390
5647
|
DisputeStatusEnum2["IN_REVIEW"] = "IN_REVIEW";
|
|
@@ -5405,36 +5662,36 @@ var InitiatorTypeEnum = /* @__PURE__ */ ((InitiatorTypeEnum2) => {
|
|
|
5405
5662
|
var Dispute = class extends BaseEntity {
|
|
5406
5663
|
};
|
|
5407
5664
|
__decorateClass([
|
|
5408
|
-
|
|
5409
|
-
|
|
5665
|
+
Column66({ name: "client_id", type: "integer", nullable: true }),
|
|
5666
|
+
Index58()
|
|
5410
5667
|
], Dispute.prototype, "clientId", 2);
|
|
5411
5668
|
__decorateClass([
|
|
5412
|
-
|
|
5413
|
-
|
|
5669
|
+
ManyToOne61(() => User, (user) => user.clientDisputes),
|
|
5670
|
+
JoinColumn61({ name: "client_id" })
|
|
5414
5671
|
], Dispute.prototype, "client", 2);
|
|
5415
5672
|
__decorateClass([
|
|
5416
|
-
|
|
5417
|
-
|
|
5673
|
+
Column66({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5674
|
+
Index58()
|
|
5418
5675
|
], Dispute.prototype, "freelancerId", 2);
|
|
5419
5676
|
__decorateClass([
|
|
5420
|
-
|
|
5421
|
-
|
|
5677
|
+
ManyToOne61(() => User, (user) => user.freelancerDisputes),
|
|
5678
|
+
JoinColumn61({ name: "freelancer_id" })
|
|
5422
5679
|
], Dispute.prototype, "freelancer", 2);
|
|
5423
5680
|
__decorateClass([
|
|
5424
|
-
|
|
5681
|
+
Column66({ name: "dispute_unique_id", type: "varchar", unique: true })
|
|
5425
5682
|
], Dispute.prototype, "disputeUniqueId", 2);
|
|
5426
5683
|
__decorateClass([
|
|
5427
|
-
|
|
5428
|
-
|
|
5684
|
+
Column66({ name: "dispute_type", type: "varchar", nullable: true }),
|
|
5685
|
+
Index58()
|
|
5429
5686
|
], Dispute.prototype, "disputeType", 2);
|
|
5430
5687
|
__decorateClass([
|
|
5431
|
-
|
|
5688
|
+
Column66({ name: "description", type: "varchar", nullable: true })
|
|
5432
5689
|
], Dispute.prototype, "description", 2);
|
|
5433
5690
|
__decorateClass([
|
|
5434
|
-
|
|
5691
|
+
Column66({ name: "comment", type: "varchar", nullable: true })
|
|
5435
5692
|
], Dispute.prototype, "comment", 2);
|
|
5436
5693
|
__decorateClass([
|
|
5437
|
-
|
|
5694
|
+
Column66({
|
|
5438
5695
|
name: "status",
|
|
5439
5696
|
type: "enum",
|
|
5440
5697
|
enum: DisputeStatusEnum,
|
|
@@ -5442,7 +5699,7 @@ __decorateClass([
|
|
|
5442
5699
|
})
|
|
5443
5700
|
], Dispute.prototype, "status", 2);
|
|
5444
5701
|
__decorateClass([
|
|
5445
|
-
|
|
5702
|
+
Column66({
|
|
5446
5703
|
name: "initiator_type",
|
|
5447
5704
|
type: "enum",
|
|
5448
5705
|
enum: InitiatorTypeEnum,
|
|
@@ -5451,33 +5708,33 @@ __decorateClass([
|
|
|
5451
5708
|
})
|
|
5452
5709
|
], Dispute.prototype, "initiatorType", 2);
|
|
5453
5710
|
__decorateClass([
|
|
5454
|
-
|
|
5455
|
-
|
|
5711
|
+
Column66({ name: "initiator_id", type: "integer" }),
|
|
5712
|
+
Index58()
|
|
5456
5713
|
], Dispute.prototype, "initiatorId", 2);
|
|
5457
5714
|
__decorateClass([
|
|
5458
|
-
|
|
5459
|
-
|
|
5715
|
+
ManyToOne61(() => User, (user) => user.initiatedDisputes),
|
|
5716
|
+
JoinColumn61({ name: "initiator_id" })
|
|
5460
5717
|
], Dispute.prototype, "initiator", 2);
|
|
5461
5718
|
__decorateClass([
|
|
5462
|
-
|
|
5463
|
-
|
|
5719
|
+
Column66({ name: "respondent_id", type: "integer", nullable: true }),
|
|
5720
|
+
Index58()
|
|
5464
5721
|
], Dispute.prototype, "respondentId", 2);
|
|
5465
5722
|
__decorateClass([
|
|
5466
|
-
|
|
5467
|
-
|
|
5723
|
+
ManyToOne61(() => User, (user) => user.respondentDisputes, { nullable: true }),
|
|
5724
|
+
JoinColumn61({ name: "respondent_id" })
|
|
5468
5725
|
], Dispute.prototype, "respondent", 2);
|
|
5469
5726
|
__decorateClass([
|
|
5470
|
-
|
|
5727
|
+
Column66({ name: "attachments", type: "jsonb", nullable: true })
|
|
5471
5728
|
], Dispute.prototype, "attachments", 2);
|
|
5472
5729
|
__decorateClass([
|
|
5473
|
-
|
|
5730
|
+
Column66({ name: "dynamic_fields", type: "jsonb", nullable: true })
|
|
5474
5731
|
], Dispute.prototype, "dynamicFields", 2);
|
|
5475
5732
|
Dispute = __decorateClass([
|
|
5476
|
-
|
|
5733
|
+
Entity65("disputes")
|
|
5477
5734
|
], Dispute);
|
|
5478
5735
|
|
|
5479
5736
|
// src/entities/stripe-transaction.entity.ts
|
|
5480
|
-
import { Entity as
|
|
5737
|
+
import { Entity as Entity66, Column as Column67, Index as Index59, ManyToOne as ManyToOne62, JoinColumn as JoinColumn62 } from "typeorm";
|
|
5481
5738
|
var StripeTransactionTypeEnum = /* @__PURE__ */ ((StripeTransactionTypeEnum2) => {
|
|
5482
5739
|
StripeTransactionTypeEnum2["ADD_FUNDS"] = "ADD_FUNDS";
|
|
5483
5740
|
StripeTransactionTypeEnum2["TRANSFER"] = "TRANSFER";
|
|
@@ -5499,97 +5756,97 @@ var StripeTransaction = class extends BaseEntity {
|
|
|
5499
5756
|
// Full Stripe session response
|
|
5500
5757
|
};
|
|
5501
5758
|
__decorateClass([
|
|
5502
|
-
|
|
5503
|
-
|
|
5759
|
+
Column67({ name: "user_id", type: "integer", nullable: true }),
|
|
5760
|
+
Index59()
|
|
5504
5761
|
], StripeTransaction.prototype, "userId", 2);
|
|
5505
5762
|
__decorateClass([
|
|
5506
|
-
|
|
5507
|
-
|
|
5763
|
+
ManyToOne62(() => User, (user) => user.stripeTransactions),
|
|
5764
|
+
JoinColumn62({ name: "user_id" })
|
|
5508
5765
|
], StripeTransaction.prototype, "user", 2);
|
|
5509
5766
|
__decorateClass([
|
|
5510
|
-
|
|
5767
|
+
Column67({ name: "stripe_session_id", type: "varchar", nullable: true })
|
|
5511
5768
|
], StripeTransaction.prototype, "stripeSessionId", 2);
|
|
5512
5769
|
__decorateClass([
|
|
5513
|
-
|
|
5770
|
+
Column67({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
|
|
5514
5771
|
], StripeTransaction.prototype, "stripePaymentIntentId", 2);
|
|
5515
5772
|
__decorateClass([
|
|
5516
|
-
|
|
5773
|
+
Column67({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
5517
5774
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
5518
5775
|
__decorateClass([
|
|
5519
|
-
|
|
5776
|
+
Column67({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
5520
5777
|
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
5521
5778
|
__decorateClass([
|
|
5522
|
-
|
|
5779
|
+
Column67({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
5523
5780
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
5524
5781
|
__decorateClass([
|
|
5525
|
-
|
|
5782
|
+
Column67({ name: "stripe_payment_method", type: "varchar", nullable: true })
|
|
5526
5783
|
], StripeTransaction.prototype, "stripePaymentMethod", 2);
|
|
5527
5784
|
__decorateClass([
|
|
5528
|
-
|
|
5785
|
+
Column67({ name: "stripe_payment_status", type: "varchar", nullable: true })
|
|
5529
5786
|
], StripeTransaction.prototype, "stripePaymentStatus", 2);
|
|
5530
5787
|
__decorateClass([
|
|
5531
|
-
|
|
5788
|
+
Column67({ name: "type", type: "enum", enum: StripeTransactionTypeEnum })
|
|
5532
5789
|
], StripeTransaction.prototype, "type", 2);
|
|
5533
5790
|
__decorateClass([
|
|
5534
|
-
|
|
5791
|
+
Column67({ name: "currency", type: "varchar", nullable: true })
|
|
5535
5792
|
], StripeTransaction.prototype, "currency", 2);
|
|
5536
5793
|
__decorateClass([
|
|
5537
|
-
|
|
5794
|
+
Column67({ name: "desired_deposit_cents", type: "bigint", nullable: true, comment: "Amount user wants in their wallet. Example: 10000 cents = $100.00. This is what gets credited to wallet" })
|
|
5538
5795
|
], StripeTransaction.prototype, "desiredDepositCents", 2);
|
|
5539
5796
|
__decorateClass([
|
|
5540
|
-
|
|
5797
|
+
Column67({ name: "platform_fee_cents", type: "bigint", default: 0, comment: "Your platform commission Example: 500 cents = $5.00 (5% of $100)" })
|
|
5541
5798
|
], StripeTransaction.prototype, "platformFeeCents", 2);
|
|
5542
5799
|
__decorateClass([
|
|
5543
|
-
|
|
5800
|
+
Column67({ name: "tax_cents", type: "bigint", nullable: true, comment: "Sales tax collected by Stripe" })
|
|
5544
5801
|
], StripeTransaction.prototype, "taxCents", 2);
|
|
5545
5802
|
__decorateClass([
|
|
5546
|
-
|
|
5803
|
+
Column67({ name: "estimated_stripe_fee_cents", type: "bigint", nullable: true, comment: "Your calculated estimate of Stripe fee, Example: 371 cents = $3.71" })
|
|
5547
5804
|
], StripeTransaction.prototype, "estimatedStripeFee", 2);
|
|
5548
5805
|
__decorateClass([
|
|
5549
|
-
|
|
5806
|
+
Column67({ name: "estimated_total_cents", type: "bigint", nullable: true, comment: "Your calculated total to charge, Example: 11386 cents = $113.86, desired_deposit_cents + platform_fee_cents + estimated_stripe_fee" })
|
|
5550
5807
|
], StripeTransaction.prototype, "estimatedTotalCents", 2);
|
|
5551
5808
|
__decorateClass([
|
|
5552
|
-
|
|
5809
|
+
Column67({ name: "actual_stripe_fee_cents", type: "bigint", nullable: true, comment: "ACTUAL Stripe fee charged, Example: 371 cents = $3.71" })
|
|
5553
5810
|
], StripeTransaction.prototype, "actualStripeFee", 2);
|
|
5554
5811
|
__decorateClass([
|
|
5555
|
-
|
|
5812
|
+
Column67({ name: "actual_total_paid_cents", type: "bigint", nullable: true, comment: "What customer ACTUALLY paid, Example: 11757 cents = $117.57, May differ from estimate" })
|
|
5556
5813
|
], StripeTransaction.prototype, "actualTotalPaidCents", 2);
|
|
5557
5814
|
__decorateClass([
|
|
5558
|
-
|
|
5815
|
+
Column67({ name: "net_received_cents", type: "bigint", nullable: true, comment: "What YOU receive after Stripe fee Example: 11386 cents = $113.86. This is your actual revenue + user deposit" })
|
|
5559
5816
|
], StripeTransaction.prototype, "netReceivedCents", 2);
|
|
5560
5817
|
__decorateClass([
|
|
5561
|
-
|
|
5818
|
+
Column67({ name: "description", type: "text", nullable: true })
|
|
5562
5819
|
], StripeTransaction.prototype, "description", 2);
|
|
5563
5820
|
__decorateClass([
|
|
5564
|
-
|
|
5821
|
+
Column67({ name: "status", type: "enum", enum: StripeTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5565
5822
|
], StripeTransaction.prototype, "status", 2);
|
|
5566
5823
|
__decorateClass([
|
|
5567
|
-
|
|
5824
|
+
Column67({ name: "checkout_session_completed_at", type: "timestamptz", nullable: true })
|
|
5568
5825
|
], StripeTransaction.prototype, "checkoutSessionCompletedAt", 2);
|
|
5569
5826
|
__decorateClass([
|
|
5570
|
-
|
|
5827
|
+
Column67({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5571
5828
|
], StripeTransaction.prototype, "completedAt", 2);
|
|
5572
5829
|
__decorateClass([
|
|
5573
|
-
|
|
5830
|
+
Column67({ name: "billing_details", type: "jsonb", nullable: true })
|
|
5574
5831
|
], StripeTransaction.prototype, "billingDetails", 2);
|
|
5575
5832
|
__decorateClass([
|
|
5576
|
-
|
|
5833
|
+
Column67({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
5577
5834
|
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
5578
5835
|
__decorateClass([
|
|
5579
|
-
|
|
5836
|
+
Column67({ name: "raw_session_payload", type: "jsonb", nullable: true })
|
|
5580
5837
|
], StripeTransaction.prototype, "rawSessionPayload", 2);
|
|
5581
5838
|
__decorateClass([
|
|
5582
|
-
|
|
5839
|
+
Column67({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
5583
5840
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
5584
5841
|
StripeTransaction = __decorateClass([
|
|
5585
|
-
|
|
5842
|
+
Entity66("stripe_transactions")
|
|
5586
5843
|
], StripeTransaction);
|
|
5587
5844
|
|
|
5588
5845
|
// src/entities/wallet.entity.ts
|
|
5589
|
-
import { Entity as
|
|
5846
|
+
import { Entity as Entity68, Column as Column69, Index as Index61, JoinColumn as JoinColumn64, OneToOne as OneToOne11, OneToMany as OneToMany23 } from "typeorm";
|
|
5590
5847
|
|
|
5591
5848
|
// src/entities/wallet-transaction.entity.ts
|
|
5592
|
-
import { Entity as
|
|
5849
|
+
import { Entity as Entity67, Column as Column68, Index as Index60, ManyToOne as ManyToOne63, JoinColumn as JoinColumn63 } from "typeorm";
|
|
5593
5850
|
var WalletTransactionTypeEnum = /* @__PURE__ */ ((WalletTransactionTypeEnum2) => {
|
|
5594
5851
|
WalletTransactionTypeEnum2["CR"] = "CR";
|
|
5595
5852
|
WalletTransactionTypeEnum2["DR"] = "DR";
|
|
@@ -5606,46 +5863,46 @@ var WalletTransactionStatusEnum = /* @__PURE__ */ ((WalletTransactionStatusEnum2
|
|
|
5606
5863
|
var WalletTransaction = class extends BaseEntity {
|
|
5607
5864
|
};
|
|
5608
5865
|
__decorateClass([
|
|
5609
|
-
|
|
5610
|
-
|
|
5866
|
+
Column68({ name: "wallet_id", type: "integer", nullable: true }),
|
|
5867
|
+
Index60()
|
|
5611
5868
|
], WalletTransaction.prototype, "walletId", 2);
|
|
5612
5869
|
__decorateClass([
|
|
5613
|
-
|
|
5614
|
-
|
|
5870
|
+
ManyToOne63(() => Wallet, (wallet) => wallet.walletTransactions),
|
|
5871
|
+
JoinColumn63({ name: "wallet_id" })
|
|
5615
5872
|
], WalletTransaction.prototype, "wallet", 2);
|
|
5616
5873
|
__decorateClass([
|
|
5617
|
-
|
|
5874
|
+
Column68({ name: "amount", type: "bigint", nullable: true })
|
|
5618
5875
|
], WalletTransaction.prototype, "amount", 2);
|
|
5619
5876
|
__decorateClass([
|
|
5620
|
-
|
|
5877
|
+
Column68({ name: "balance_before", type: "bigint", nullable: true })
|
|
5621
5878
|
], WalletTransaction.prototype, "balanceBefore", 2);
|
|
5622
5879
|
__decorateClass([
|
|
5623
|
-
|
|
5880
|
+
Column68({ name: "balance_after", type: "bigint", nullable: true })
|
|
5624
5881
|
], WalletTransaction.prototype, "balanceAfter", 2);
|
|
5625
5882
|
__decorateClass([
|
|
5626
|
-
|
|
5883
|
+
Column68({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
|
|
5627
5884
|
], WalletTransaction.prototype, "type", 2);
|
|
5628
5885
|
__decorateClass([
|
|
5629
|
-
|
|
5886
|
+
Column68({ name: "status", type: "enum", enum: WalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
|
|
5630
5887
|
], WalletTransaction.prototype, "status", 2);
|
|
5631
5888
|
__decorateClass([
|
|
5632
|
-
|
|
5889
|
+
Column68({ name: "description", type: "text", nullable: true })
|
|
5633
5890
|
], WalletTransaction.prototype, "description", 2);
|
|
5634
5891
|
__decorateClass([
|
|
5635
|
-
|
|
5892
|
+
Column68({ name: "completed_at", type: "timestamptz", nullable: true })
|
|
5636
5893
|
], WalletTransaction.prototype, "completedAt", 2);
|
|
5637
5894
|
__decorateClass([
|
|
5638
|
-
|
|
5895
|
+
Column68({ name: "transaction_for", type: "varchar", nullable: true })
|
|
5639
5896
|
], WalletTransaction.prototype, "transactionFor", 2);
|
|
5640
5897
|
__decorateClass([
|
|
5641
|
-
|
|
5898
|
+
Column68({ name: "meta_data", type: "varchar", nullable: true })
|
|
5642
5899
|
], WalletTransaction.prototype, "metaData", 2);
|
|
5643
5900
|
__decorateClass([
|
|
5644
|
-
|
|
5645
|
-
|
|
5901
|
+
Column68({ name: "stripe_transaction_id", type: "integer", nullable: true }),
|
|
5902
|
+
Index60()
|
|
5646
5903
|
], WalletTransaction.prototype, "stripeTransactionId", 2);
|
|
5647
5904
|
WalletTransaction = __decorateClass([
|
|
5648
|
-
|
|
5905
|
+
Entity67("wallet_transactions")
|
|
5649
5906
|
], WalletTransaction);
|
|
5650
5907
|
|
|
5651
5908
|
// src/entities/wallet.entity.ts
|
|
@@ -5663,48 +5920,48 @@ var WalletOnboardingStatusEnum = /* @__PURE__ */ ((WalletOnboardingStatusEnum2)
|
|
|
5663
5920
|
var Wallet = class extends BaseEntity {
|
|
5664
5921
|
};
|
|
5665
5922
|
__decorateClass([
|
|
5666
|
-
|
|
5667
|
-
|
|
5923
|
+
Column69({ name: "user_id", type: "integer", nullable: true }),
|
|
5924
|
+
Index61()
|
|
5668
5925
|
], Wallet.prototype, "userId", 2);
|
|
5669
5926
|
__decorateClass([
|
|
5670
|
-
|
|
5671
|
-
|
|
5927
|
+
OneToOne11(() => User, (user) => user.wallet),
|
|
5928
|
+
JoinColumn64({ name: "user_id" })
|
|
5672
5929
|
], Wallet.prototype, "user", 2);
|
|
5673
5930
|
__decorateClass([
|
|
5674
|
-
|
|
5931
|
+
Column69({ name: "account_type", type: "enum", enum: WalletAccountTypeEnum, nullable: true })
|
|
5675
5932
|
], Wallet.prototype, "accountType", 2);
|
|
5676
5933
|
__decorateClass([
|
|
5677
|
-
|
|
5934
|
+
Column69({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
5678
5935
|
], Wallet.prototype, "stripeAccountId", 2);
|
|
5679
5936
|
__decorateClass([
|
|
5680
|
-
|
|
5937
|
+
Column69({ name: "stripe_customer_id", type: "varchar", nullable: true })
|
|
5681
5938
|
], Wallet.prototype, "stripeCustomerId", 2);
|
|
5682
5939
|
__decorateClass([
|
|
5683
|
-
|
|
5940
|
+
Column69({ name: "wallet_balance", type: "varchar", default: "0", comment: "This column is just used to show balance, It will not be used in any computation" })
|
|
5684
5941
|
], Wallet.prototype, "walletBalance", 2);
|
|
5685
5942
|
__decorateClass([
|
|
5686
|
-
|
|
5943
|
+
Column69({ name: "wallet_balance_cents", type: "bigint", default: 0, comment: "This column is used to store wallet balance in cents Example: 371 cents = $3.71, All computation will be handled by this column" })
|
|
5687
5944
|
], Wallet.prototype, "walletBalanceCents", 2);
|
|
5688
5945
|
__decorateClass([
|
|
5689
|
-
|
|
5946
|
+
Column69({ name: "onboarding_status", type: "enum", enum: WalletOnboardingStatusEnum, nullable: true })
|
|
5690
5947
|
], Wallet.prototype, "onboardingStatus", 2);
|
|
5691
5948
|
__decorateClass([
|
|
5692
|
-
|
|
5949
|
+
Column69({ name: "stripe_metadata", type: "jsonb", nullable: true })
|
|
5693
5950
|
], Wallet.prototype, "stripeMetadata", 2);
|
|
5694
5951
|
__decorateClass([
|
|
5695
5952
|
OneToMany23(() => WalletTransaction, (walletTransaction) => walletTransaction.wallet)
|
|
5696
5953
|
], Wallet.prototype, "walletTransactions", 2);
|
|
5697
5954
|
Wallet = __decorateClass([
|
|
5698
|
-
|
|
5955
|
+
Entity68("wallets")
|
|
5699
5956
|
], Wallet);
|
|
5700
5957
|
|
|
5701
5958
|
// src/entities/freelancer-assessment-request.entity.ts
|
|
5702
5959
|
import {
|
|
5703
|
-
Entity as
|
|
5704
|
-
Column as
|
|
5705
|
-
ManyToOne as
|
|
5706
|
-
Index as
|
|
5707
|
-
JoinColumn as
|
|
5960
|
+
Entity as Entity69,
|
|
5961
|
+
Column as Column70,
|
|
5962
|
+
ManyToOne as ManyToOne64,
|
|
5963
|
+
Index as Index62,
|
|
5964
|
+
JoinColumn as JoinColumn65
|
|
5708
5965
|
} from "typeorm";
|
|
5709
5966
|
var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2) => {
|
|
5710
5967
|
AssessmentRequestStatusEnum2["PENDING"] = "PENDING";
|
|
@@ -5715,23 +5972,23 @@ var AssessmentRequestStatusEnum = /* @__PURE__ */ ((AssessmentRequestStatusEnum2
|
|
|
5715
5972
|
var FreelancerAssessmentRequest = class extends BaseEntity {
|
|
5716
5973
|
};
|
|
5717
5974
|
__decorateClass([
|
|
5718
|
-
|
|
5719
|
-
|
|
5975
|
+
Column70({ name: "freelancer_id", type: "integer", nullable: true }),
|
|
5976
|
+
Index62()
|
|
5720
5977
|
], FreelancerAssessmentRequest.prototype, "freelancerId", 2);
|
|
5721
5978
|
__decorateClass([
|
|
5722
|
-
|
|
5723
|
-
|
|
5979
|
+
ManyToOne64(() => User, (user) => user.freelancerAssessmentRequests),
|
|
5980
|
+
JoinColumn65({ name: "freelancer_id" })
|
|
5724
5981
|
], FreelancerAssessmentRequest.prototype, "freelancer", 2);
|
|
5725
5982
|
__decorateClass([
|
|
5726
|
-
|
|
5727
|
-
|
|
5983
|
+
Column70({ name: "approved_by_id", type: "integer", nullable: true }),
|
|
5984
|
+
Index62()
|
|
5728
5985
|
], FreelancerAssessmentRequest.prototype, "approvedById", 2);
|
|
5729
5986
|
__decorateClass([
|
|
5730
|
-
|
|
5731
|
-
|
|
5987
|
+
ManyToOne64(() => User, (user) => user.assessmentRequests),
|
|
5988
|
+
JoinColumn65({ name: "approved_by_id" })
|
|
5732
5989
|
], FreelancerAssessmentRequest.prototype, "approvedBy", 2);
|
|
5733
5990
|
__decorateClass([
|
|
5734
|
-
|
|
5991
|
+
Column70({
|
|
5735
5992
|
name: "status",
|
|
5736
5993
|
type: "enum",
|
|
5737
5994
|
enum: AssessmentRequestStatusEnum,
|
|
@@ -5739,44 +5996,44 @@ __decorateClass([
|
|
|
5739
5996
|
})
|
|
5740
5997
|
], FreelancerAssessmentRequest.prototype, "status", 2);
|
|
5741
5998
|
__decorateClass([
|
|
5742
|
-
|
|
5999
|
+
Column70({ name: "assessment_link", type: "text", nullable: true })
|
|
5743
6000
|
], FreelancerAssessmentRequest.prototype, "assessmentLink", 2);
|
|
5744
6001
|
FreelancerAssessmentRequest = __decorateClass([
|
|
5745
|
-
|
|
6002
|
+
Entity69({ name: "freelancer_assessment_requests" })
|
|
5746
6003
|
], FreelancerAssessmentRequest);
|
|
5747
6004
|
|
|
5748
6005
|
// src/entities/in-app-notification.entity.ts
|
|
5749
|
-
import { Entity as
|
|
6006
|
+
import { Entity as Entity70, Column as Column71, Index as Index63, ManyToOne as ManyToOne65, JoinColumn as JoinColumn66 } from "typeorm";
|
|
5750
6007
|
var InAppNotification = class extends BaseEntity {
|
|
5751
6008
|
};
|
|
5752
6009
|
__decorateClass([
|
|
5753
|
-
|
|
5754
|
-
|
|
6010
|
+
Column71({ name: "user_id", type: "integer", nullable: true }),
|
|
6011
|
+
Index63()
|
|
5755
6012
|
], InAppNotification.prototype, "userId", 2);
|
|
5756
6013
|
__decorateClass([
|
|
5757
|
-
|
|
5758
|
-
|
|
6014
|
+
ManyToOne65(() => User, (user) => user.inAppNotifications),
|
|
6015
|
+
JoinColumn66({ name: "user_id" })
|
|
5759
6016
|
], InAppNotification.prototype, "user", 2);
|
|
5760
6017
|
__decorateClass([
|
|
5761
|
-
|
|
6018
|
+
Column71({ name: "event", type: "varchar", nullable: true })
|
|
5762
6019
|
], InAppNotification.prototype, "event", 2);
|
|
5763
6020
|
__decorateClass([
|
|
5764
|
-
|
|
6021
|
+
Column71({ name: "title", type: "varchar", nullable: true })
|
|
5765
6022
|
], InAppNotification.prototype, "title", 2);
|
|
5766
6023
|
__decorateClass([
|
|
5767
|
-
|
|
6024
|
+
Column71({ name: "message", type: "varchar", nullable: true })
|
|
5768
6025
|
], InAppNotification.prototype, "message", 2);
|
|
5769
6026
|
__decorateClass([
|
|
5770
|
-
|
|
6027
|
+
Column71({ name: "redirect_url", type: "varchar", nullable: true })
|
|
5771
6028
|
], InAppNotification.prototype, "redirectUrl", 2);
|
|
5772
6029
|
__decorateClass([
|
|
5773
|
-
|
|
6030
|
+
Column71({ name: "is_read", type: "boolean", default: false })
|
|
5774
6031
|
], InAppNotification.prototype, "isRead", 2);
|
|
5775
6032
|
__decorateClass([
|
|
5776
|
-
|
|
6033
|
+
Column71({ name: "meta_data", type: "jsonb", nullable: true })
|
|
5777
6034
|
], InAppNotification.prototype, "metaData", 2);
|
|
5778
6035
|
InAppNotification = __decorateClass([
|
|
5779
|
-
|
|
6036
|
+
Entity70("in_app_notifications")
|
|
5780
6037
|
], InAppNotification);
|
|
5781
6038
|
|
|
5782
6039
|
// src/entities/user.entity.ts
|
|
@@ -5805,51 +6062,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
5805
6062
|
var User = class extends BaseEntity {
|
|
5806
6063
|
};
|
|
5807
6064
|
__decorateClass([
|
|
5808
|
-
|
|
6065
|
+
Column72({ name: "unique_id", type: "varchar", unique: true })
|
|
5809
6066
|
], User.prototype, "uniqueId", 2);
|
|
5810
6067
|
__decorateClass([
|
|
5811
|
-
|
|
5812
|
-
|
|
6068
|
+
Column72({ name: "parent_id", type: "integer", nullable: true }),
|
|
6069
|
+
Index64()
|
|
5813
6070
|
], User.prototype, "parentId", 2);
|
|
5814
6071
|
__decorateClass([
|
|
5815
|
-
|
|
5816
|
-
|
|
6072
|
+
ManyToOne66(() => User, (user) => user.children, { nullable: true }),
|
|
6073
|
+
JoinColumn67({ name: "parent_id" })
|
|
5817
6074
|
], User.prototype, "parent", 2);
|
|
5818
6075
|
__decorateClass([
|
|
5819
6076
|
OneToMany24(() => User, (user) => user.parent)
|
|
5820
6077
|
], User.prototype, "children", 2);
|
|
5821
6078
|
__decorateClass([
|
|
5822
|
-
|
|
6079
|
+
Column72({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
5823
6080
|
], User.prototype, "username", 2);
|
|
5824
6081
|
__decorateClass([
|
|
5825
|
-
|
|
6082
|
+
Column72({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
5826
6083
|
], User.prototype, "firstName", 2);
|
|
5827
6084
|
__decorateClass([
|
|
5828
|
-
|
|
6085
|
+
Column72({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
5829
6086
|
], User.prototype, "lastName", 2);
|
|
5830
6087
|
__decorateClass([
|
|
5831
|
-
|
|
6088
|
+
Column72({ name: "date_of_birth", type: "date", nullable: true })
|
|
5832
6089
|
], User.prototype, "dateOfBirth", 2);
|
|
5833
6090
|
__decorateClass([
|
|
5834
|
-
|
|
6091
|
+
Column72({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
5835
6092
|
], User.prototype, "gender", 2);
|
|
5836
6093
|
__decorateClass([
|
|
5837
|
-
|
|
6094
|
+
Column72({ name: "profile_picture_url", type: "text", nullable: true })
|
|
5838
6095
|
], User.prototype, "profilePictureUrl", 2);
|
|
5839
6096
|
__decorateClass([
|
|
5840
|
-
|
|
6097
|
+
Column72({ name: "email", type: "varchar", unique: true })
|
|
5841
6098
|
], User.prototype, "email", 2);
|
|
5842
6099
|
__decorateClass([
|
|
5843
|
-
|
|
6100
|
+
Column72({ name: "mobile_code", type: "varchar", nullable: true })
|
|
5844
6101
|
], User.prototype, "mobileCode", 2);
|
|
5845
6102
|
__decorateClass([
|
|
5846
|
-
|
|
6103
|
+
Column72({ name: "mobile", type: "varchar", nullable: true })
|
|
5847
6104
|
], User.prototype, "mobile", 2);
|
|
5848
6105
|
__decorateClass([
|
|
5849
|
-
|
|
6106
|
+
Column72({ name: "password", type: "varchar", nullable: true })
|
|
5850
6107
|
], User.prototype, "password", 2);
|
|
5851
6108
|
__decorateClass([
|
|
5852
|
-
|
|
6109
|
+
Column72({
|
|
5853
6110
|
name: "account_type",
|
|
5854
6111
|
type: "enum",
|
|
5855
6112
|
enum: AccountType2,
|
|
@@ -5857,7 +6114,7 @@ __decorateClass([
|
|
|
5857
6114
|
})
|
|
5858
6115
|
], User.prototype, "accountType", 2);
|
|
5859
6116
|
__decorateClass([
|
|
5860
|
-
|
|
6117
|
+
Column72({
|
|
5861
6118
|
name: "account_status",
|
|
5862
6119
|
type: "enum",
|
|
5863
6120
|
enum: AccountStatus,
|
|
@@ -5865,45 +6122,45 @@ __decorateClass([
|
|
|
5865
6122
|
})
|
|
5866
6123
|
], User.prototype, "accountStatus", 2);
|
|
5867
6124
|
__decorateClass([
|
|
5868
|
-
|
|
6125
|
+
Column72({ name: "is_email_verified", type: "boolean", default: false })
|
|
5869
6126
|
], User.prototype, "isEmailVerified", 2);
|
|
5870
6127
|
__decorateClass([
|
|
5871
|
-
|
|
6128
|
+
Column72({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
5872
6129
|
], User.prototype, "isMobileVerified", 2);
|
|
5873
6130
|
__decorateClass([
|
|
5874
|
-
|
|
6131
|
+
Column72({ name: "is_social", type: "boolean", default: false })
|
|
5875
6132
|
], User.prototype, "isSocial", 2);
|
|
5876
6133
|
__decorateClass([
|
|
5877
|
-
|
|
6134
|
+
Column72({ name: "is_referral_user", type: "boolean", default: false })
|
|
5878
6135
|
], User.prototype, "isReferralUser", 2);
|
|
5879
6136
|
__decorateClass([
|
|
5880
|
-
|
|
6137
|
+
Column72({
|
|
5881
6138
|
name: "last_login_at",
|
|
5882
6139
|
type: "timestamp with time zone",
|
|
5883
6140
|
nullable: true
|
|
5884
6141
|
})
|
|
5885
6142
|
], User.prototype, "lastLoginAt", 2);
|
|
5886
6143
|
__decorateClass([
|
|
5887
|
-
|
|
6144
|
+
Column72({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
5888
6145
|
], User.prototype, "lastLoginIp", 2);
|
|
5889
6146
|
__decorateClass([
|
|
5890
|
-
|
|
6147
|
+
Column72({ name: "reset_token", type: "varchar", nullable: true })
|
|
5891
6148
|
], User.prototype, "resetToken", 2);
|
|
5892
6149
|
__decorateClass([
|
|
5893
|
-
|
|
6150
|
+
Column72({
|
|
5894
6151
|
name: "reset_token_expire_at",
|
|
5895
6152
|
type: "timestamp with time zone",
|
|
5896
6153
|
nullable: true
|
|
5897
6154
|
})
|
|
5898
6155
|
], User.prototype, "resetTokenExpireAt", 2);
|
|
5899
6156
|
__decorateClass([
|
|
5900
|
-
|
|
6157
|
+
Column72({ name: "set_password_token", type: "varchar", nullable: true })
|
|
5901
6158
|
], User.prototype, "setPasswordToken", 2);
|
|
5902
6159
|
__decorateClass([
|
|
5903
6160
|
OneToMany24(() => RefreshToken, (token) => token.user)
|
|
5904
6161
|
], User.prototype, "refreshTokens", 2);
|
|
5905
6162
|
__decorateClass([
|
|
5906
|
-
|
|
6163
|
+
Column72({
|
|
5907
6164
|
name: "provider",
|
|
5908
6165
|
type: "enum",
|
|
5909
6166
|
enum: Provider,
|
|
@@ -5912,19 +6169,19 @@ __decorateClass([
|
|
|
5912
6169
|
})
|
|
5913
6170
|
], User.prototype, "provider", 2);
|
|
5914
6171
|
__decorateClass([
|
|
5915
|
-
|
|
6172
|
+
Column72({ name: "provider_token", type: "varchar", nullable: true })
|
|
5916
6173
|
], User.prototype, "providerToken", 2);
|
|
5917
6174
|
__decorateClass([
|
|
5918
|
-
|
|
6175
|
+
Column72({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
5919
6176
|
], User.prototype, "linkedInId", 2);
|
|
5920
6177
|
__decorateClass([
|
|
5921
|
-
|
|
6178
|
+
Column72({ name: "google_id", type: "varchar", nullable: true })
|
|
5922
6179
|
], User.prototype, "googleId", 2);
|
|
5923
6180
|
__decorateClass([
|
|
5924
|
-
|
|
6181
|
+
Column72({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
5925
6182
|
], User.prototype, "gitLabsId", 2);
|
|
5926
6183
|
__decorateClass([
|
|
5927
|
-
|
|
6184
|
+
Column72({ name: "onboarded_by", type: "varchar", nullable: true })
|
|
5928
6185
|
], User.prototype, "onBoardedBy", 2);
|
|
5929
6186
|
__decorateClass([
|
|
5930
6187
|
OneToMany24(() => Otp, (otp) => otp.user)
|
|
@@ -5933,7 +6190,7 @@ __decorateClass([
|
|
|
5933
6190
|
OneToMany24(() => SenseloafLog, (senseloafLog) => senseloafLog.user)
|
|
5934
6191
|
], User.prototype, "senseloafLogs", 2);
|
|
5935
6192
|
__decorateClass([
|
|
5936
|
-
|
|
6193
|
+
OneToOne12(() => CompanyProfile, (companyProfile) => companyProfile.user)
|
|
5937
6194
|
], User.prototype, "companyProfile", 2);
|
|
5938
6195
|
__decorateClass([
|
|
5939
6196
|
OneToMany24(() => CompanySkill, (companySkill) => companySkill.user)
|
|
@@ -5951,13 +6208,13 @@ __decorateClass([
|
|
|
5951
6208
|
OneToMany24(() => F2FInterview, (F2FInterview2) => F2FInterview2.interviwer)
|
|
5952
6209
|
], User.prototype, "clientF2FInterviews", 2);
|
|
5953
6210
|
__decorateClass([
|
|
5954
|
-
|
|
6211
|
+
OneToOne12(
|
|
5955
6212
|
() => FreelancerProfile,
|
|
5956
6213
|
(freelancerProfile) => freelancerProfile.user
|
|
5957
6214
|
)
|
|
5958
6215
|
], User.prototype, "freelancerProfile", 2);
|
|
5959
6216
|
__decorateClass([
|
|
5960
|
-
|
|
6217
|
+
OneToOne12(() => FreelancerResume, (freelancerResume) => freelancerResume.user)
|
|
5961
6218
|
], User.prototype, "freelancerResume", 2);
|
|
5962
6219
|
__decorateClass([
|
|
5963
6220
|
OneToMany24(
|
|
@@ -6020,7 +6277,7 @@ __decorateClass([
|
|
|
6020
6277
|
)
|
|
6021
6278
|
], User.prototype, "freelancerFramework", 2);
|
|
6022
6279
|
__decorateClass([
|
|
6023
|
-
|
|
6280
|
+
OneToOne12(
|
|
6024
6281
|
() => FreelancerDeclaration,
|
|
6025
6282
|
(freelancerDeclaration) => freelancerDeclaration.user
|
|
6026
6283
|
)
|
|
@@ -6055,6 +6312,12 @@ __decorateClass([
|
|
|
6055
6312
|
__decorateClass([
|
|
6056
6313
|
OneToMany24(() => Job, (job) => job.user)
|
|
6057
6314
|
], User.prototype, "jobs", 2);
|
|
6315
|
+
__decorateClass([
|
|
6316
|
+
OneToMany24(() => Task, (task) => task.client)
|
|
6317
|
+
], User.prototype, "clientTasks", 2);
|
|
6318
|
+
__decorateClass([
|
|
6319
|
+
OneToMany24(() => Task, (task) => task.freelancer)
|
|
6320
|
+
], User.prototype, "freelancerTasks", 2);
|
|
6058
6321
|
__decorateClass([
|
|
6059
6322
|
OneToMany24(() => JobApplication, (jobApplication) => jobApplication.user)
|
|
6060
6323
|
], User.prototype, "jobApplications", 2);
|
|
@@ -6108,7 +6371,7 @@ __decorateClass([
|
|
|
6108
6371
|
OneToMany24(() => EscrowWallet, (escrowWallet) => escrowWallet.freelancer)
|
|
6109
6372
|
], User.prototype, "freelancerEscrowWallets", 2);
|
|
6110
6373
|
__decorateClass([
|
|
6111
|
-
|
|
6374
|
+
OneToOne12(() => Signature, (signature) => signature.user)
|
|
6112
6375
|
], User.prototype, "signatures", 2);
|
|
6113
6376
|
__decorateClass([
|
|
6114
6377
|
OneToMany24(() => Timesheet, (timesheet) => timesheet.client)
|
|
@@ -6141,7 +6404,7 @@ __decorateClass([
|
|
|
6141
6404
|
OneToMany24(() => Dispute, (dispute) => dispute.respondent, { cascade: true })
|
|
6142
6405
|
], User.prototype, "respondentDisputes", 2);
|
|
6143
6406
|
__decorateClass([
|
|
6144
|
-
|
|
6407
|
+
OneToOne12(() => Wallet, (wallet) => wallet.user)
|
|
6145
6408
|
], User.prototype, "wallet", 2);
|
|
6146
6409
|
__decorateClass([
|
|
6147
6410
|
OneToMany24(() => StripeTransaction, (stripeTransaction) => stripeTransaction.user, { cascade: true })
|
|
@@ -6156,7 +6419,7 @@ __decorateClass([
|
|
|
6156
6419
|
OneToMany24(() => InAppNotification, (inAppNotification) => inAppNotification.user)
|
|
6157
6420
|
], User.prototype, "inAppNotifications", 2);
|
|
6158
6421
|
User = __decorateClass([
|
|
6159
|
-
|
|
6422
|
+
Entity71("users")
|
|
6160
6423
|
], User);
|
|
6161
6424
|
|
|
6162
6425
|
// src/modules/user/subadmin/dto/update-subadmin-account-status.dto.ts
|
|
@@ -12630,6 +12893,289 @@ __decorateClass([
|
|
|
12630
12893
|
Type31(() => Number)
|
|
12631
12894
|
], ArchiveSubmissionDto.prototype, "submissionId", 2);
|
|
12632
12895
|
|
|
12896
|
+
// src/modules/task/pattern/pattern.ts
|
|
12897
|
+
var TASK_PATTERN = {
|
|
12898
|
+
createTask: "create.task",
|
|
12899
|
+
fetchTaskForBusiness: "fetch.task.for.business",
|
|
12900
|
+
fetchTaskForFreelancer: "fetch.task.for.freelancer",
|
|
12901
|
+
fetchTaskDetail: "fetch.task.detail",
|
|
12902
|
+
updateTask: "update.task",
|
|
12903
|
+
deleteTask: "delete.task",
|
|
12904
|
+
addClientRemark: "task.client.remark",
|
|
12905
|
+
markTaskAsCompleted: "task.client.mark.as.completed",
|
|
12906
|
+
updateEstimateTime: "task.freelancer.update.estimate.time"
|
|
12907
|
+
};
|
|
12908
|
+
|
|
12909
|
+
// src/modules/task/dto/create-task.dto.ts
|
|
12910
|
+
import {
|
|
12911
|
+
IsArray as IsArray31,
|
|
12912
|
+
IsDateString as IsDateString12,
|
|
12913
|
+
IsOptional as IsOptional88,
|
|
12914
|
+
IsString as IsString94,
|
|
12915
|
+
ValidateNested as ValidateNested13
|
|
12916
|
+
} from "class-validator";
|
|
12917
|
+
import { Type as Type32 } from "class-transformer";
|
|
12918
|
+
var TaskDeliverableDto = class {
|
|
12919
|
+
};
|
|
12920
|
+
__decorateClass([
|
|
12921
|
+
IsString94()
|
|
12922
|
+
], TaskDeliverableDto.prototype, "name", 2);
|
|
12923
|
+
__decorateClass([
|
|
12924
|
+
IsOptional88(),
|
|
12925
|
+
IsString94()
|
|
12926
|
+
], TaskDeliverableDto.prototype, "description", 2);
|
|
12927
|
+
__decorateClass([
|
|
12928
|
+
IsOptional88(),
|
|
12929
|
+
IsString94()
|
|
12930
|
+
], TaskDeliverableDto.prototype, "type", 2);
|
|
12931
|
+
var TaskResourceDto = class {
|
|
12932
|
+
};
|
|
12933
|
+
__decorateClass([
|
|
12934
|
+
IsString94()
|
|
12935
|
+
], TaskResourceDto.prototype, "name", 2);
|
|
12936
|
+
__decorateClass([
|
|
12937
|
+
IsOptional88(),
|
|
12938
|
+
IsString94()
|
|
12939
|
+
], TaskResourceDto.prototype, "description", 2);
|
|
12940
|
+
__decorateClass([
|
|
12941
|
+
IsOptional88(),
|
|
12942
|
+
IsString94()
|
|
12943
|
+
], TaskResourceDto.prototype, "type", 2);
|
|
12944
|
+
__decorateClass([
|
|
12945
|
+
IsOptional88(),
|
|
12946
|
+
IsString94()
|
|
12947
|
+
], TaskResourceDto.prototype, "url", 2);
|
|
12948
|
+
var TaskChecklistItemDto = class {
|
|
12949
|
+
};
|
|
12950
|
+
__decorateClass([
|
|
12951
|
+
IsString94()
|
|
12952
|
+
], TaskChecklistItemDto.prototype, "item", 2);
|
|
12953
|
+
__decorateClass([
|
|
12954
|
+
IsOptional88(),
|
|
12955
|
+
IsString94()
|
|
12956
|
+
], TaskChecklistItemDto.prototype, "notes", 2);
|
|
12957
|
+
var TaskSubtaskDto = class {
|
|
12958
|
+
};
|
|
12959
|
+
__decorateClass([
|
|
12960
|
+
IsString94()
|
|
12961
|
+
], TaskSubtaskDto.prototype, "name", 2);
|
|
12962
|
+
__decorateClass([
|
|
12963
|
+
IsOptional88(),
|
|
12964
|
+
IsString94()
|
|
12965
|
+
], TaskSubtaskDto.prototype, "status", 2);
|
|
12966
|
+
__decorateClass([
|
|
12967
|
+
IsOptional88(),
|
|
12968
|
+
IsString94()
|
|
12969
|
+
], TaskSubtaskDto.prototype, "description", 2);
|
|
12970
|
+
var CreateTaskDto = class {
|
|
12971
|
+
};
|
|
12972
|
+
__decorateClass([
|
|
12973
|
+
IsString94()
|
|
12974
|
+
], CreateTaskDto.prototype, "title", 2);
|
|
12975
|
+
__decorateClass([
|
|
12976
|
+
IsDateString12()
|
|
12977
|
+
], CreateTaskDto.prototype, "dueDate", 2);
|
|
12978
|
+
__decorateClass([
|
|
12979
|
+
IsString94()
|
|
12980
|
+
], CreateTaskDto.prototype, "jobId", 2);
|
|
12981
|
+
__decorateClass([
|
|
12982
|
+
IsString94()
|
|
12983
|
+
], CreateTaskDto.prototype, "freelancerId", 2);
|
|
12984
|
+
__decorateClass([
|
|
12985
|
+
IsString94()
|
|
12986
|
+
], CreateTaskDto.prototype, "status", 2);
|
|
12987
|
+
__decorateClass([
|
|
12988
|
+
IsOptional88(),
|
|
12989
|
+
IsString94()
|
|
12990
|
+
], CreateTaskDto.prototype, "description", 2);
|
|
12991
|
+
__decorateClass([
|
|
12992
|
+
IsString94()
|
|
12993
|
+
], CreateTaskDto.prototype, "priority", 2);
|
|
12994
|
+
__decorateClass([
|
|
12995
|
+
IsDateString12()
|
|
12996
|
+
], CreateTaskDto.prototype, "createdOn", 2);
|
|
12997
|
+
__decorateClass([
|
|
12998
|
+
IsOptional88(),
|
|
12999
|
+
IsArray31(),
|
|
13000
|
+
ValidateNested13({ each: true }),
|
|
13001
|
+
Type32(() => TaskDeliverableDto)
|
|
13002
|
+
], CreateTaskDto.prototype, "deliverables", 2);
|
|
13003
|
+
__decorateClass([
|
|
13004
|
+
IsOptional88(),
|
|
13005
|
+
IsArray31(),
|
|
13006
|
+
ValidateNested13({ each: true }),
|
|
13007
|
+
Type32(() => TaskResourceDto)
|
|
13008
|
+
], CreateTaskDto.prototype, "resources", 2);
|
|
13009
|
+
__decorateClass([
|
|
13010
|
+
IsOptional88(),
|
|
13011
|
+
IsArray31(),
|
|
13012
|
+
ValidateNested13({ each: true }),
|
|
13013
|
+
Type32(() => TaskChecklistItemDto)
|
|
13014
|
+
], CreateTaskDto.prototype, "checklist", 2);
|
|
13015
|
+
__decorateClass([
|
|
13016
|
+
IsOptional88(),
|
|
13017
|
+
IsArray31(),
|
|
13018
|
+
ValidateNested13({ each: true }),
|
|
13019
|
+
Type32(() => TaskSubtaskDto)
|
|
13020
|
+
], CreateTaskDto.prototype, "subtasks", 2);
|
|
13021
|
+
|
|
13022
|
+
// src/modules/task/dto/update-task.dto.ts
|
|
13023
|
+
import {
|
|
13024
|
+
IsArray as IsArray32,
|
|
13025
|
+
IsDateString as IsDateString13,
|
|
13026
|
+
IsOptional as IsOptional89,
|
|
13027
|
+
IsString as IsString95,
|
|
13028
|
+
ValidateNested as ValidateNested14
|
|
13029
|
+
} from "class-validator";
|
|
13030
|
+
import { Type as Type33 } from "class-transformer";
|
|
13031
|
+
var TaskDeliverableDto2 = class {
|
|
13032
|
+
};
|
|
13033
|
+
__decorateClass([
|
|
13034
|
+
IsString95()
|
|
13035
|
+
], TaskDeliverableDto2.prototype, "name", 2);
|
|
13036
|
+
__decorateClass([
|
|
13037
|
+
IsOptional89(),
|
|
13038
|
+
IsString95()
|
|
13039
|
+
], TaskDeliverableDto2.prototype, "description", 2);
|
|
13040
|
+
__decorateClass([
|
|
13041
|
+
IsOptional89(),
|
|
13042
|
+
IsString95()
|
|
13043
|
+
], TaskDeliverableDto2.prototype, "type", 2);
|
|
13044
|
+
var TaskResourceDto2 = class {
|
|
13045
|
+
};
|
|
13046
|
+
__decorateClass([
|
|
13047
|
+
IsString95()
|
|
13048
|
+
], TaskResourceDto2.prototype, "name", 2);
|
|
13049
|
+
__decorateClass([
|
|
13050
|
+
IsOptional89(),
|
|
13051
|
+
IsString95()
|
|
13052
|
+
], TaskResourceDto2.prototype, "description", 2);
|
|
13053
|
+
__decorateClass([
|
|
13054
|
+
IsOptional89(),
|
|
13055
|
+
IsString95()
|
|
13056
|
+
], TaskResourceDto2.prototype, "type", 2);
|
|
13057
|
+
__decorateClass([
|
|
13058
|
+
IsOptional89(),
|
|
13059
|
+
IsString95()
|
|
13060
|
+
], TaskResourceDto2.prototype, "url", 2);
|
|
13061
|
+
var TaskChecklistItemDto2 = class {
|
|
13062
|
+
};
|
|
13063
|
+
__decorateClass([
|
|
13064
|
+
IsString95()
|
|
13065
|
+
], TaskChecklistItemDto2.prototype, "item", 2);
|
|
13066
|
+
__decorateClass([
|
|
13067
|
+
IsOptional89(),
|
|
13068
|
+
IsString95()
|
|
13069
|
+
], TaskChecklistItemDto2.prototype, "notes", 2);
|
|
13070
|
+
var TaskSubtaskDto2 = class {
|
|
13071
|
+
};
|
|
13072
|
+
__decorateClass([
|
|
13073
|
+
IsString95()
|
|
13074
|
+
], TaskSubtaskDto2.prototype, "name", 2);
|
|
13075
|
+
__decorateClass([
|
|
13076
|
+
IsOptional89(),
|
|
13077
|
+
IsString95()
|
|
13078
|
+
], TaskSubtaskDto2.prototype, "status", 2);
|
|
13079
|
+
__decorateClass([
|
|
13080
|
+
IsOptional89(),
|
|
13081
|
+
IsString95()
|
|
13082
|
+
], TaskSubtaskDto2.prototype, "description", 2);
|
|
13083
|
+
var UpdateTaskDto = class {
|
|
13084
|
+
};
|
|
13085
|
+
__decorateClass([
|
|
13086
|
+
IsOptional89(),
|
|
13087
|
+
IsString95()
|
|
13088
|
+
], UpdateTaskDto.prototype, "title", 2);
|
|
13089
|
+
__decorateClass([
|
|
13090
|
+
IsOptional89(),
|
|
13091
|
+
IsDateString13()
|
|
13092
|
+
], UpdateTaskDto.prototype, "dueDate", 2);
|
|
13093
|
+
__decorateClass([
|
|
13094
|
+
IsOptional89(),
|
|
13095
|
+
IsString95()
|
|
13096
|
+
], UpdateTaskDto.prototype, "jobId", 2);
|
|
13097
|
+
__decorateClass([
|
|
13098
|
+
IsOptional89(),
|
|
13099
|
+
IsString95()
|
|
13100
|
+
], UpdateTaskDto.prototype, "freelancerId", 2);
|
|
13101
|
+
__decorateClass([
|
|
13102
|
+
IsOptional89(),
|
|
13103
|
+
IsString95()
|
|
13104
|
+
], UpdateTaskDto.prototype, "status", 2);
|
|
13105
|
+
__decorateClass([
|
|
13106
|
+
IsOptional89(),
|
|
13107
|
+
IsString95()
|
|
13108
|
+
], UpdateTaskDto.prototype, "description", 2);
|
|
13109
|
+
__decorateClass([
|
|
13110
|
+
IsOptional89(),
|
|
13111
|
+
IsString95()
|
|
13112
|
+
], UpdateTaskDto.prototype, "priority", 2);
|
|
13113
|
+
__decorateClass([
|
|
13114
|
+
IsOptional89(),
|
|
13115
|
+
IsDateString13()
|
|
13116
|
+
], UpdateTaskDto.prototype, "createdOn", 2);
|
|
13117
|
+
__decorateClass([
|
|
13118
|
+
IsOptional89(),
|
|
13119
|
+
IsArray32(),
|
|
13120
|
+
ValidateNested14({ each: true }),
|
|
13121
|
+
Type33(() => TaskDeliverableDto2)
|
|
13122
|
+
], UpdateTaskDto.prototype, "deliverables", 2);
|
|
13123
|
+
__decorateClass([
|
|
13124
|
+
IsOptional89(),
|
|
13125
|
+
IsArray32(),
|
|
13126
|
+
ValidateNested14({ each: true }),
|
|
13127
|
+
Type33(() => TaskResourceDto2)
|
|
13128
|
+
], UpdateTaskDto.prototype, "resources", 2);
|
|
13129
|
+
__decorateClass([
|
|
13130
|
+
IsOptional89(),
|
|
13131
|
+
IsArray32(),
|
|
13132
|
+
ValidateNested14({ each: true }),
|
|
13133
|
+
Type33(() => TaskChecklistItemDto2)
|
|
13134
|
+
], UpdateTaskDto.prototype, "checklist", 2);
|
|
13135
|
+
__decorateClass([
|
|
13136
|
+
IsOptional89(),
|
|
13137
|
+
IsArray32(),
|
|
13138
|
+
ValidateNested14({ each: true }),
|
|
13139
|
+
Type33(() => TaskSubtaskDto2)
|
|
13140
|
+
], UpdateTaskDto.prototype, "subtasks", 2);
|
|
13141
|
+
|
|
13142
|
+
// src/modules/task/dto/task-uuid-param.dto.ts
|
|
13143
|
+
import { IsString as IsString96 } from "class-validator";
|
|
13144
|
+
var TaskUuidParamDto = class {
|
|
13145
|
+
};
|
|
13146
|
+
__decorateClass([
|
|
13147
|
+
IsString96()
|
|
13148
|
+
], TaskUuidParamDto.prototype, "uuid", 2);
|
|
13149
|
+
|
|
13150
|
+
// src/modules/task/dto/add-client-remark.dto.ts
|
|
13151
|
+
import { IsString as IsString97 } from "class-validator";
|
|
13152
|
+
var AddClientRemarkDto = class {
|
|
13153
|
+
};
|
|
13154
|
+
__decorateClass([
|
|
13155
|
+
IsString97()
|
|
13156
|
+
], AddClientRemarkDto.prototype, "remark", 2);
|
|
13157
|
+
|
|
13158
|
+
// src/modules/task/dto/mark-task-as-completed.dto.ts
|
|
13159
|
+
import { IsString as IsString98 } from "class-validator";
|
|
13160
|
+
var MarkTaskAsCompletedDto = class {
|
|
13161
|
+
};
|
|
13162
|
+
__decorateClass([
|
|
13163
|
+
IsString98()
|
|
13164
|
+
], MarkTaskAsCompletedDto.prototype, "status", 2);
|
|
13165
|
+
|
|
13166
|
+
// src/modules/task/dto/update-estimate-time.dto.ts
|
|
13167
|
+
import { Type as Type34 } from "class-transformer";
|
|
13168
|
+
import { IsNumber as IsNumber47, IsString as IsString99 } from "class-validator";
|
|
13169
|
+
var UpdateEstimateTimeDto = class {
|
|
13170
|
+
};
|
|
13171
|
+
__decorateClass([
|
|
13172
|
+
Type34(() => Number),
|
|
13173
|
+
IsNumber47()
|
|
13174
|
+
], UpdateEstimateTimeDto.prototype, "estimateHours", 2);
|
|
13175
|
+
__decorateClass([
|
|
13176
|
+
IsString99()
|
|
13177
|
+
], UpdateEstimateTimeDto.prototype, "additionalWorkNote", 2);
|
|
13178
|
+
|
|
12633
13179
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
12634
13180
|
import { config } from "dotenv";
|
|
12635
13181
|
import { Transport as Transport2 } from "@nestjs/microservices";
|
|
@@ -12991,11 +13537,11 @@ var ChatRMQAdapter = (mode = "microservice") => {
|
|
|
12991
13537
|
};
|
|
12992
13538
|
|
|
12993
13539
|
// src/entities/sequence-generator.entity.ts
|
|
12994
|
-
import { Entity as
|
|
13540
|
+
import { Entity as Entity72, Column as Column73 } from "typeorm";
|
|
12995
13541
|
var SequenceGenerator = class extends BaseEntity {
|
|
12996
13542
|
};
|
|
12997
13543
|
__decorateClass([
|
|
12998
|
-
|
|
13544
|
+
Column73({
|
|
12999
13545
|
name: "module",
|
|
13000
13546
|
type: "varchar",
|
|
13001
13547
|
length: 50,
|
|
@@ -13004,7 +13550,7 @@ __decorateClass([
|
|
|
13004
13550
|
})
|
|
13005
13551
|
], SequenceGenerator.prototype, "module", 2);
|
|
13006
13552
|
__decorateClass([
|
|
13007
|
-
|
|
13553
|
+
Column73({
|
|
13008
13554
|
name: "prefix",
|
|
13009
13555
|
type: "varchar",
|
|
13010
13556
|
length: 10,
|
|
@@ -13013,7 +13559,7 @@ __decorateClass([
|
|
|
13013
13559
|
})
|
|
13014
13560
|
], SequenceGenerator.prototype, "prefix", 2);
|
|
13015
13561
|
__decorateClass([
|
|
13016
|
-
|
|
13562
|
+
Column73({
|
|
13017
13563
|
name: "last_sequence",
|
|
13018
13564
|
type: "int",
|
|
13019
13565
|
nullable: false,
|
|
@@ -13021,7 +13567,7 @@ __decorateClass([
|
|
|
13021
13567
|
})
|
|
13022
13568
|
], SequenceGenerator.prototype, "lastSequence", 2);
|
|
13023
13569
|
__decorateClass([
|
|
13024
|
-
|
|
13570
|
+
Column73({
|
|
13025
13571
|
name: "year",
|
|
13026
13572
|
type: "int",
|
|
13027
13573
|
nullable: true,
|
|
@@ -13029,11 +13575,11 @@ __decorateClass([
|
|
|
13029
13575
|
})
|
|
13030
13576
|
], SequenceGenerator.prototype, "year", 2);
|
|
13031
13577
|
SequenceGenerator = __decorateClass([
|
|
13032
|
-
|
|
13578
|
+
Entity72("sequence_generators")
|
|
13033
13579
|
], SequenceGenerator);
|
|
13034
13580
|
|
|
13035
13581
|
// src/entities/question.entity.ts
|
|
13036
|
-
import { Entity as
|
|
13582
|
+
import { Entity as Entity73, Column as Column74 } from "typeorm";
|
|
13037
13583
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
13038
13584
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
13039
13585
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -13042,16 +13588,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
13042
13588
|
var Question = class extends BaseEntity {
|
|
13043
13589
|
};
|
|
13044
13590
|
__decorateClass([
|
|
13045
|
-
|
|
13591
|
+
Column74({ name: "question", type: "varchar" })
|
|
13046
13592
|
], Question.prototype, "question", 2);
|
|
13047
13593
|
__decorateClass([
|
|
13048
|
-
|
|
13594
|
+
Column74({ name: "hint", type: "varchar", nullable: true })
|
|
13049
13595
|
], Question.prototype, "hint", 2);
|
|
13050
13596
|
__decorateClass([
|
|
13051
|
-
|
|
13597
|
+
Column74({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13052
13598
|
], Question.prototype, "slug", 2);
|
|
13053
13599
|
__decorateClass([
|
|
13054
|
-
|
|
13600
|
+
Column74({
|
|
13055
13601
|
name: "question_for",
|
|
13056
13602
|
type: "enum",
|
|
13057
13603
|
enum: QuestionFor,
|
|
@@ -13059,49 +13605,49 @@ __decorateClass([
|
|
|
13059
13605
|
})
|
|
13060
13606
|
], Question.prototype, "questionFor", 2);
|
|
13061
13607
|
__decorateClass([
|
|
13062
|
-
|
|
13608
|
+
Column74({ name: "type", type: "varchar", nullable: true })
|
|
13063
13609
|
], Question.prototype, "type", 2);
|
|
13064
13610
|
__decorateClass([
|
|
13065
|
-
|
|
13611
|
+
Column74({ name: "options", type: "jsonb", nullable: true })
|
|
13066
13612
|
], Question.prototype, "options", 2);
|
|
13067
13613
|
__decorateClass([
|
|
13068
|
-
|
|
13614
|
+
Column74({ name: "is_active", type: "boolean", default: false })
|
|
13069
13615
|
], Question.prototype, "isActive", 2);
|
|
13070
13616
|
Question = __decorateClass([
|
|
13071
|
-
|
|
13617
|
+
Entity73("questions")
|
|
13072
13618
|
], Question);
|
|
13073
13619
|
|
|
13074
13620
|
// src/entities/skill.entity.ts
|
|
13075
|
-
import { Entity as
|
|
13621
|
+
import { Entity as Entity74, Column as Column75 } from "typeorm";
|
|
13076
13622
|
var Skill = class extends BaseEntity {
|
|
13077
13623
|
};
|
|
13078
13624
|
__decorateClass([
|
|
13079
|
-
|
|
13625
|
+
Column75({ name: "name", type: "varchar", nullable: true })
|
|
13080
13626
|
], Skill.prototype, "name", 2);
|
|
13081
13627
|
__decorateClass([
|
|
13082
|
-
|
|
13628
|
+
Column75({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13083
13629
|
], Skill.prototype, "slug", 2);
|
|
13084
13630
|
__decorateClass([
|
|
13085
|
-
|
|
13631
|
+
Column75({ name: "is_active", type: "boolean", default: false })
|
|
13086
13632
|
], Skill.prototype, "isActive", 2);
|
|
13087
13633
|
Skill = __decorateClass([
|
|
13088
|
-
|
|
13634
|
+
Entity74("skills")
|
|
13089
13635
|
], Skill);
|
|
13090
13636
|
|
|
13091
13637
|
// src/entities/skill-catalog.entity.ts
|
|
13092
13638
|
import {
|
|
13093
|
-
Entity as
|
|
13094
|
-
Column as
|
|
13095
|
-
Index as
|
|
13639
|
+
Entity as Entity75,
|
|
13640
|
+
Column as Column76,
|
|
13641
|
+
Index as Index65
|
|
13096
13642
|
} from "typeorm";
|
|
13097
13643
|
var SkillCatalog = class extends BaseEntity {
|
|
13098
13644
|
};
|
|
13099
13645
|
__decorateClass([
|
|
13100
|
-
|
|
13101
|
-
|
|
13646
|
+
Column76({ name: "canonical_name", type: "varchar", length: 100, unique: true }),
|
|
13647
|
+
Index65()
|
|
13102
13648
|
], SkillCatalog.prototype, "canonicalName", 2);
|
|
13103
13649
|
__decorateClass([
|
|
13104
|
-
|
|
13650
|
+
Column76({
|
|
13105
13651
|
name: "aliases",
|
|
13106
13652
|
type: "text",
|
|
13107
13653
|
array: true,
|
|
@@ -13109,20 +13655,20 @@ __decorateClass([
|
|
|
13109
13655
|
})
|
|
13110
13656
|
], SkillCatalog.prototype, "aliases", 2);
|
|
13111
13657
|
__decorateClass([
|
|
13112
|
-
|
|
13658
|
+
Column76({
|
|
13113
13659
|
name: "variations",
|
|
13114
13660
|
type: "jsonb",
|
|
13115
13661
|
default: "{}"
|
|
13116
13662
|
})
|
|
13117
13663
|
], SkillCatalog.prototype, "variations", 2);
|
|
13118
13664
|
__decorateClass([
|
|
13119
|
-
|
|
13665
|
+
Column76({ name: "category", type: "varchar", length: 50, nullable: true })
|
|
13120
13666
|
], SkillCatalog.prototype, "category", 2);
|
|
13121
13667
|
__decorateClass([
|
|
13122
|
-
|
|
13668
|
+
Column76({ name: "parent_skill", type: "varchar", length: 100, nullable: true })
|
|
13123
13669
|
], SkillCatalog.prototype, "parentSkill", 2);
|
|
13124
13670
|
__decorateClass([
|
|
13125
|
-
|
|
13671
|
+
Column76({
|
|
13126
13672
|
name: "related_skills",
|
|
13127
13673
|
type: "text",
|
|
13128
13674
|
array: true,
|
|
@@ -13130,70 +13676,70 @@ __decorateClass([
|
|
|
13130
13676
|
})
|
|
13131
13677
|
], SkillCatalog.prototype, "relatedSkills", 2);
|
|
13132
13678
|
__decorateClass([
|
|
13133
|
-
|
|
13134
|
-
|
|
13679
|
+
Column76({ name: "usage_count", type: "integer", default: 0 }),
|
|
13680
|
+
Index65()
|
|
13135
13681
|
], SkillCatalog.prototype, "usageCount", 2);
|
|
13136
13682
|
__decorateClass([
|
|
13137
|
-
|
|
13683
|
+
Column76({ name: "is_verified", type: "boolean", default: false })
|
|
13138
13684
|
], SkillCatalog.prototype, "isVerified", 2);
|
|
13139
13685
|
__decorateClass([
|
|
13140
|
-
|
|
13686
|
+
Column76({ name: "first_seen_date", type: "date" })
|
|
13141
13687
|
], SkillCatalog.prototype, "firstSeenDate", 2);
|
|
13142
13688
|
__decorateClass([
|
|
13143
|
-
|
|
13689
|
+
Column76({ name: "last_updated_date", type: "date" })
|
|
13144
13690
|
], SkillCatalog.prototype, "lastUpdatedDate", 2);
|
|
13145
13691
|
__decorateClass([
|
|
13146
|
-
|
|
13692
|
+
Column76({
|
|
13147
13693
|
name: "search_vector",
|
|
13148
13694
|
type: "tsvector",
|
|
13149
13695
|
nullable: true
|
|
13150
13696
|
})
|
|
13151
13697
|
], SkillCatalog.prototype, "searchVector", 2);
|
|
13152
13698
|
SkillCatalog = __decorateClass([
|
|
13153
|
-
|
|
13699
|
+
Entity75("skill_catalogs")
|
|
13154
13700
|
], SkillCatalog);
|
|
13155
13701
|
|
|
13156
13702
|
// src/entities/job-role.entity.ts
|
|
13157
|
-
import { Entity as
|
|
13703
|
+
import { Entity as Entity76, Column as Column77 } from "typeorm";
|
|
13158
13704
|
var JobRoles = class extends BaseEntity {
|
|
13159
13705
|
};
|
|
13160
13706
|
__decorateClass([
|
|
13161
|
-
|
|
13707
|
+
Column77({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13162
13708
|
], JobRoles.prototype, "slug", 2);
|
|
13163
13709
|
__decorateClass([
|
|
13164
|
-
|
|
13710
|
+
Column77({ name: "name", type: "varchar", nullable: true })
|
|
13165
13711
|
], JobRoles.prototype, "name", 2);
|
|
13166
13712
|
__decorateClass([
|
|
13167
|
-
|
|
13713
|
+
Column77({ name: "is_active", type: "boolean", default: true })
|
|
13168
13714
|
], JobRoles.prototype, "isActive", 2);
|
|
13169
13715
|
JobRoles = __decorateClass([
|
|
13170
|
-
|
|
13716
|
+
Entity76("job_roles")
|
|
13171
13717
|
], JobRoles);
|
|
13172
13718
|
|
|
13173
13719
|
// src/entities/cms.entity.ts
|
|
13174
|
-
import { Entity as
|
|
13720
|
+
import { Entity as Entity77, Column as Column78 } from "typeorm";
|
|
13175
13721
|
var Cms = class extends BaseEntity {
|
|
13176
13722
|
};
|
|
13177
13723
|
__decorateClass([
|
|
13178
|
-
|
|
13724
|
+
Column78({ name: "title", type: "varchar", nullable: true })
|
|
13179
13725
|
], Cms.prototype, "title", 2);
|
|
13180
13726
|
__decorateClass([
|
|
13181
|
-
|
|
13727
|
+
Column78({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
13182
13728
|
], Cms.prototype, "slug", 2);
|
|
13183
13729
|
__decorateClass([
|
|
13184
|
-
|
|
13730
|
+
Column78({ name: "content", type: "varchar", nullable: true })
|
|
13185
13731
|
], Cms.prototype, "content", 2);
|
|
13186
13732
|
__decorateClass([
|
|
13187
|
-
|
|
13733
|
+
Column78({ name: "is_active", type: "boolean", default: true })
|
|
13188
13734
|
], Cms.prototype, "isActive", 2);
|
|
13189
13735
|
Cms = __decorateClass([
|
|
13190
|
-
|
|
13736
|
+
Entity77("cms")
|
|
13191
13737
|
], Cms);
|
|
13192
13738
|
|
|
13193
13739
|
// src/entities/lead.entity.ts
|
|
13194
13740
|
import {
|
|
13195
|
-
Entity as
|
|
13196
|
-
Column as
|
|
13741
|
+
Entity as Entity78,
|
|
13742
|
+
Column as Column79
|
|
13197
13743
|
} from "typeorm";
|
|
13198
13744
|
var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
13199
13745
|
CategoryEmum2["BUSINESS"] = "BUSINESS";
|
|
@@ -13203,22 +13749,22 @@ var CategoryEmum = /* @__PURE__ */ ((CategoryEmum2) => {
|
|
|
13203
13749
|
var Lead = class extends BaseEntity {
|
|
13204
13750
|
};
|
|
13205
13751
|
__decorateClass([
|
|
13206
|
-
|
|
13752
|
+
Column79({ name: "name", type: "varchar", nullable: true })
|
|
13207
13753
|
], Lead.prototype, "name", 2);
|
|
13208
13754
|
__decorateClass([
|
|
13209
|
-
|
|
13755
|
+
Column79({ name: "mobile_code", type: "varchar", nullable: true })
|
|
13210
13756
|
], Lead.prototype, "mobileCode", 2);
|
|
13211
13757
|
__decorateClass([
|
|
13212
|
-
|
|
13758
|
+
Column79({ name: "mobile", type: "varchar", nullable: true })
|
|
13213
13759
|
], Lead.prototype, "mobile", 2);
|
|
13214
13760
|
__decorateClass([
|
|
13215
|
-
|
|
13761
|
+
Column79({ name: "email", type: "varchar", nullable: true })
|
|
13216
13762
|
], Lead.prototype, "email", 2);
|
|
13217
13763
|
__decorateClass([
|
|
13218
|
-
|
|
13764
|
+
Column79({ name: "description", type: "varchar", nullable: true })
|
|
13219
13765
|
], Lead.prototype, "description", 2);
|
|
13220
13766
|
__decorateClass([
|
|
13221
|
-
|
|
13767
|
+
Column79({
|
|
13222
13768
|
name: "category",
|
|
13223
13769
|
type: "enum",
|
|
13224
13770
|
enum: CategoryEmum,
|
|
@@ -13226,7 +13772,7 @@ __decorateClass([
|
|
|
13226
13772
|
})
|
|
13227
13773
|
], Lead.prototype, "category", 2);
|
|
13228
13774
|
Lead = __decorateClass([
|
|
13229
|
-
|
|
13775
|
+
Entity78("leads")
|
|
13230
13776
|
], Lead);
|
|
13231
13777
|
|
|
13232
13778
|
// src/entities/job-freelancer-recommendation.entity.ts
|
|
@@ -13467,7 +14013,7 @@ ClientFreelancerRecommendation = __decorateClass([
|
|
|
13467
14013
|
], ClientFreelancerRecommendation);
|
|
13468
14014
|
|
|
13469
14015
|
// src/entities/commission.entity.ts
|
|
13470
|
-
import { Entity as
|
|
14016
|
+
import { Entity as Entity79, Column as Column80 } from "typeorm";
|
|
13471
14017
|
var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
13472
14018
|
CommissionTypeEnum2["PERCENTAGE"] = "PERCENTAGE";
|
|
13473
14019
|
CommissionTypeEnum2["FLAT"] = "FLAT";
|
|
@@ -13476,7 +14022,7 @@ var CommissionTypeEnum = /* @__PURE__ */ ((CommissionTypeEnum2) => {
|
|
|
13476
14022
|
var Commission = class extends BaseEntity {
|
|
13477
14023
|
};
|
|
13478
14024
|
__decorateClass([
|
|
13479
|
-
|
|
14025
|
+
Column80({
|
|
13480
14026
|
name: "freelancer_commission_type",
|
|
13481
14027
|
type: "enum",
|
|
13482
14028
|
enum: CommissionTypeEnum,
|
|
@@ -13484,10 +14030,10 @@ __decorateClass([
|
|
|
13484
14030
|
})
|
|
13485
14031
|
], Commission.prototype, "freelancerCommissionType", 2);
|
|
13486
14032
|
__decorateClass([
|
|
13487
|
-
|
|
14033
|
+
Column80({ name: "freelancer_commission", type: "integer", default: 0 })
|
|
13488
14034
|
], Commission.prototype, "freelancerCommission", 2);
|
|
13489
14035
|
__decorateClass([
|
|
13490
|
-
|
|
14036
|
+
Column80({
|
|
13491
14037
|
name: "client_commission_type",
|
|
13492
14038
|
type: "enum",
|
|
13493
14039
|
enum: CommissionTypeEnum,
|
|
@@ -13495,58 +14041,58 @@ __decorateClass([
|
|
|
13495
14041
|
})
|
|
13496
14042
|
], Commission.prototype, "clientCommissionType", 2);
|
|
13497
14043
|
__decorateClass([
|
|
13498
|
-
|
|
14044
|
+
Column80({ name: "client_commission", type: "integer", default: 0 })
|
|
13499
14045
|
], Commission.prototype, "clientCommission", 2);
|
|
13500
14046
|
Commission = __decorateClass([
|
|
13501
|
-
|
|
14047
|
+
Entity79("commissions")
|
|
13502
14048
|
], Commission);
|
|
13503
14049
|
|
|
13504
14050
|
// src/entities/calendly-meeting-log.entity.ts
|
|
13505
14051
|
import {
|
|
13506
|
-
Entity as
|
|
13507
|
-
Column as
|
|
13508
|
-
Index as
|
|
14052
|
+
Entity as Entity80,
|
|
14053
|
+
Column as Column81,
|
|
14054
|
+
Index as Index66
|
|
13509
14055
|
} from "typeorm";
|
|
13510
14056
|
var CalendlyMeetingLog = class extends BaseEntity {
|
|
13511
14057
|
};
|
|
13512
14058
|
__decorateClass([
|
|
13513
|
-
|
|
13514
|
-
|
|
14059
|
+
Column81({ name: "calendly_event_id", type: "varchar", nullable: true }),
|
|
14060
|
+
Index66()
|
|
13515
14061
|
], CalendlyMeetingLog.prototype, "calendlyEventId", 2);
|
|
13516
14062
|
__decorateClass([
|
|
13517
|
-
|
|
14063
|
+
Column81({ name: "calendly_event_type", type: "varchar", nullable: true })
|
|
13518
14064
|
], CalendlyMeetingLog.prototype, "calendlyEventType", 2);
|
|
13519
14065
|
__decorateClass([
|
|
13520
|
-
|
|
14066
|
+
Column81({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13521
14067
|
], CalendlyMeetingLog.prototype, "rawWebhookData", 2);
|
|
13522
14068
|
CalendlyMeetingLog = __decorateClass([
|
|
13523
|
-
|
|
14069
|
+
Entity80("calendly_meeting_logs")
|
|
13524
14070
|
], CalendlyMeetingLog);
|
|
13525
14071
|
|
|
13526
14072
|
// src/entities/zoom-meeting-log.entity.ts
|
|
13527
14073
|
import {
|
|
13528
|
-
Entity as
|
|
13529
|
-
Column as
|
|
13530
|
-
Index as
|
|
14074
|
+
Entity as Entity81,
|
|
14075
|
+
Column as Column82,
|
|
14076
|
+
Index as Index67
|
|
13531
14077
|
} from "typeorm";
|
|
13532
14078
|
var ZoomMeetingLog = class extends BaseEntity {
|
|
13533
14079
|
};
|
|
13534
14080
|
__decorateClass([
|
|
13535
|
-
|
|
13536
|
-
|
|
14081
|
+
Column82({ name: "zoom_meeting_id", type: "varchar", nullable: true }),
|
|
14082
|
+
Index67()
|
|
13537
14083
|
], ZoomMeetingLog.prototype, "zoomMeetingId", 2);
|
|
13538
14084
|
__decorateClass([
|
|
13539
|
-
|
|
14085
|
+
Column82({ name: "zoom_event_type", type: "varchar", nullable: true })
|
|
13540
14086
|
], ZoomMeetingLog.prototype, "zoomEventType", 2);
|
|
13541
14087
|
__decorateClass([
|
|
13542
|
-
|
|
14088
|
+
Column82({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13543
14089
|
], ZoomMeetingLog.prototype, "rawWebhookData", 2);
|
|
13544
14090
|
ZoomMeetingLog = __decorateClass([
|
|
13545
|
-
|
|
14091
|
+
Entity81("zoom_meeting_logs")
|
|
13546
14092
|
], ZoomMeetingLog);
|
|
13547
14093
|
|
|
13548
14094
|
// src/entities/docuseal.entity.ts
|
|
13549
|
-
import { Entity as
|
|
14095
|
+
import { Entity as Entity82, Column as Column83, Index as Index68 } from "typeorm";
|
|
13550
14096
|
var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
13551
14097
|
DocuSealTypeEnum2["FREELANCER_SERVICE_AGGREMENT"] = "FREELANCER_SERVICE_AGGREMENT";
|
|
13552
14098
|
DocuSealTypeEnum2["CLIENT_SERVICE_AGGREMENT"] = "CLIENT_SERVICE_AGGREMENT";
|
|
@@ -13556,101 +14102,101 @@ var DocuSealTypeEnum = /* @__PURE__ */ ((DocuSealTypeEnum2) => {
|
|
|
13556
14102
|
var DocuSeal = class extends BaseEntity {
|
|
13557
14103
|
};
|
|
13558
14104
|
__decorateClass([
|
|
13559
|
-
|
|
13560
|
-
|
|
14105
|
+
Column83({ name: "reference_id", type: "integer", nullable: false }),
|
|
14106
|
+
Index68()
|
|
13561
14107
|
], DocuSeal.prototype, "referenceId", 2);
|
|
13562
14108
|
__decorateClass([
|
|
13563
|
-
|
|
13564
|
-
|
|
14109
|
+
Column83({ name: "submitter_id", type: "integer", nullable: true }),
|
|
14110
|
+
Index68()
|
|
13565
14111
|
], DocuSeal.prototype, "submitterId", 2);
|
|
13566
14112
|
__decorateClass([
|
|
13567
|
-
|
|
14113
|
+
Column83({ name: "submitter_response", type: "jsonb", nullable: true })
|
|
13568
14114
|
], DocuSeal.prototype, "submitterResponse", 2);
|
|
13569
14115
|
__decorateClass([
|
|
13570
|
-
|
|
14116
|
+
Column83({ name: "webhook_response", type: "jsonb", nullable: true })
|
|
13571
14117
|
], DocuSeal.prototype, "webhookResponse", 2);
|
|
13572
14118
|
__decorateClass([
|
|
13573
|
-
|
|
14119
|
+
Column83({ name: "type", type: "enum", enum: DocuSealTypeEnum, nullable: true })
|
|
13574
14120
|
], DocuSeal.prototype, "type", 2);
|
|
13575
14121
|
DocuSeal = __decorateClass([
|
|
13576
|
-
|
|
14122
|
+
Entity82("docuseal")
|
|
13577
14123
|
], DocuSeal);
|
|
13578
14124
|
|
|
13579
14125
|
// src/entities/stripe-logs.entity.ts
|
|
13580
|
-
import { Entity as
|
|
14126
|
+
import { Entity as Entity83, Column as Column84 } from "typeorm";
|
|
13581
14127
|
var StripeLog = class extends BaseEntity {
|
|
13582
14128
|
};
|
|
13583
14129
|
__decorateClass([
|
|
13584
|
-
|
|
14130
|
+
Column84({ name: "stripe_event_id", type: "varchar", nullable: true })
|
|
13585
14131
|
], StripeLog.prototype, "stripeEventId", 2);
|
|
13586
14132
|
__decorateClass([
|
|
13587
|
-
|
|
14133
|
+
Column84({ name: "event_type", type: "varchar", nullable: true })
|
|
13588
14134
|
], StripeLog.prototype, "eventType", 2);
|
|
13589
14135
|
__decorateClass([
|
|
13590
|
-
|
|
14136
|
+
Column84({ name: "stripe_account_id", type: "varchar", nullable: true })
|
|
13591
14137
|
], StripeLog.prototype, "stripeAccountId", 2);
|
|
13592
14138
|
__decorateClass([
|
|
13593
|
-
|
|
14139
|
+
Column84({ name: "raw_webhook_data", type: "jsonb", nullable: true })
|
|
13594
14140
|
], StripeLog.prototype, "rawWebhookData", 2);
|
|
13595
14141
|
StripeLog = __decorateClass([
|
|
13596
|
-
|
|
14142
|
+
Entity83("stripe_logs")
|
|
13597
14143
|
], StripeLog);
|
|
13598
14144
|
|
|
13599
14145
|
// src/entities/recommendation-weightage-config.entity.ts
|
|
13600
14146
|
import {
|
|
13601
|
-
Entity as
|
|
13602
|
-
Column as
|
|
13603
|
-
Index as
|
|
14147
|
+
Entity as Entity84,
|
|
14148
|
+
Column as Column85,
|
|
14149
|
+
Index as Index69
|
|
13604
14150
|
} from "typeorm";
|
|
13605
14151
|
var RecommendationWeightageConfig = class extends BaseEntity {
|
|
13606
14152
|
};
|
|
13607
14153
|
__decorateClass([
|
|
13608
|
-
|
|
14154
|
+
Column85({
|
|
13609
14155
|
type: "varchar",
|
|
13610
14156
|
length: 100,
|
|
13611
14157
|
unique: true,
|
|
13612
14158
|
comment: "Unique key identifier (e.g., full_time_weights, hourly_weights)"
|
|
13613
14159
|
}),
|
|
13614
|
-
|
|
14160
|
+
Index69()
|
|
13615
14161
|
], RecommendationWeightageConfig.prototype, "key", 2);
|
|
13616
14162
|
__decorateClass([
|
|
13617
|
-
|
|
14163
|
+
Column85({
|
|
13618
14164
|
type: "jsonb",
|
|
13619
14165
|
comment: "JSON object containing weight values",
|
|
13620
14166
|
nullable: true
|
|
13621
14167
|
})
|
|
13622
14168
|
], RecommendationWeightageConfig.prototype, "value", 2);
|
|
13623
14169
|
__decorateClass([
|
|
13624
|
-
|
|
14170
|
+
Column85({ name: "is_active", type: "boolean", default: true })
|
|
13625
14171
|
], RecommendationWeightageConfig.prototype, "isActive", 2);
|
|
13626
14172
|
RecommendationWeightageConfig = __decorateClass([
|
|
13627
|
-
|
|
14173
|
+
Entity84("recommendation_weightage_configs")
|
|
13628
14174
|
], RecommendationWeightageConfig);
|
|
13629
14175
|
|
|
13630
14176
|
// src/entities/global-setting.entity.ts
|
|
13631
14177
|
import {
|
|
13632
|
-
Entity as
|
|
13633
|
-
Column as
|
|
13634
|
-
Index as
|
|
14178
|
+
Entity as Entity85,
|
|
14179
|
+
Column as Column86,
|
|
14180
|
+
Index as Index70
|
|
13635
14181
|
} from "typeorm";
|
|
13636
14182
|
var GlobalSetting = class extends BaseEntity {
|
|
13637
14183
|
};
|
|
13638
14184
|
__decorateClass([
|
|
13639
|
-
|
|
14185
|
+
Column86({ name: "key", type: "varchar", length: 255, nullable: false, unique: true })
|
|
13640
14186
|
], GlobalSetting.prototype, "key", 2);
|
|
13641
14187
|
__decorateClass([
|
|
13642
|
-
|
|
14188
|
+
Column86({ name: "value", type: "text", nullable: false })
|
|
13643
14189
|
], GlobalSetting.prototype, "value", 2);
|
|
13644
14190
|
GlobalSetting = __decorateClass([
|
|
13645
|
-
|
|
13646
|
-
|
|
14191
|
+
Entity85("global_settings"),
|
|
14192
|
+
Index70(["key"], { unique: true })
|
|
13647
14193
|
], GlobalSetting);
|
|
13648
14194
|
|
|
13649
14195
|
// src/entities/plan.entity.ts
|
|
13650
14196
|
import {
|
|
13651
|
-
Entity as
|
|
13652
|
-
Column as
|
|
13653
|
-
Index as
|
|
14197
|
+
Entity as Entity88,
|
|
14198
|
+
Column as Column89,
|
|
14199
|
+
Index as Index73,
|
|
13654
14200
|
Check as Check4,
|
|
13655
14201
|
BeforeInsert as BeforeInsert2,
|
|
13656
14202
|
BeforeUpdate as BeforeUpdate2,
|
|
@@ -13659,57 +14205,57 @@ import {
|
|
|
13659
14205
|
|
|
13660
14206
|
// src/entities/plan-feature.entity.ts
|
|
13661
14207
|
import {
|
|
13662
|
-
Entity as
|
|
13663
|
-
Column as
|
|
13664
|
-
ManyToOne as
|
|
13665
|
-
JoinColumn as
|
|
13666
|
-
Index as
|
|
14208
|
+
Entity as Entity86,
|
|
14209
|
+
Column as Column87,
|
|
14210
|
+
ManyToOne as ManyToOne68,
|
|
14211
|
+
JoinColumn as JoinColumn69,
|
|
14212
|
+
Index as Index71,
|
|
13667
14213
|
Check as Check2
|
|
13668
14214
|
} from "typeorm";
|
|
13669
14215
|
var PlanFeature = class extends BaseEntity {
|
|
13670
14216
|
};
|
|
13671
14217
|
// individual index to find features by plan
|
|
13672
14218
|
__decorateClass([
|
|
13673
|
-
|
|
13674
|
-
|
|
14219
|
+
Column87({ name: "plan_id", type: "integer", nullable: false }),
|
|
14220
|
+
Index71()
|
|
13675
14221
|
], PlanFeature.prototype, "planId", 2);
|
|
13676
14222
|
__decorateClass([
|
|
13677
|
-
|
|
14223
|
+
ManyToOne68(() => Plan, (plan) => plan.features, {
|
|
13678
14224
|
onDelete: "CASCADE",
|
|
13679
14225
|
nullable: false
|
|
13680
14226
|
}),
|
|
13681
|
-
|
|
14227
|
+
JoinColumn69({ name: "plan_id" })
|
|
13682
14228
|
], PlanFeature.prototype, "plan", 2);
|
|
13683
14229
|
__decorateClass([
|
|
13684
|
-
|
|
14230
|
+
Column87({ name: "name", type: "varchar", length: 200 })
|
|
13685
14231
|
], PlanFeature.prototype, "name", 2);
|
|
13686
14232
|
__decorateClass([
|
|
13687
|
-
|
|
13688
|
-
|
|
14233
|
+
Column87({ name: "slug", type: "varchar", length: 100 }),
|
|
14234
|
+
Index71()
|
|
13689
14235
|
], PlanFeature.prototype, "slug", 2);
|
|
13690
14236
|
__decorateClass([
|
|
13691
|
-
|
|
14237
|
+
Column87({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
13692
14238
|
], PlanFeature.prototype, "tooltip", 2);
|
|
13693
14239
|
__decorateClass([
|
|
13694
|
-
|
|
14240
|
+
Column87({ name: "sort_order", type: "smallint", default: 0 })
|
|
13695
14241
|
], PlanFeature.prototype, "sortOrder", 2);
|
|
13696
14242
|
__decorateClass([
|
|
13697
|
-
|
|
14243
|
+
Column87({ name: "is_active", type: "boolean", default: true })
|
|
13698
14244
|
], PlanFeature.prototype, "isActive", 2);
|
|
13699
14245
|
PlanFeature = __decorateClass([
|
|
13700
|
-
|
|
13701
|
-
|
|
13702
|
-
|
|
14246
|
+
Entity86("plan_features"),
|
|
14247
|
+
Index71("idx_plan_features_plan_id", ["planId"]),
|
|
14248
|
+
Index71("idx_plan_features_plan_sort", ["planId", "sortOrder"]),
|
|
13703
14249
|
Check2("chk_plan_features_sort_order_positive", '"sort_order" >= 0')
|
|
13704
14250
|
], PlanFeature);
|
|
13705
14251
|
|
|
13706
14252
|
// src/entities/plan-pricing.entity.ts
|
|
13707
14253
|
import {
|
|
13708
|
-
Entity as
|
|
13709
|
-
Column as
|
|
13710
|
-
ManyToOne as
|
|
13711
|
-
JoinColumn as
|
|
13712
|
-
Index as
|
|
14254
|
+
Entity as Entity87,
|
|
14255
|
+
Column as Column88,
|
|
14256
|
+
ManyToOne as ManyToOne69,
|
|
14257
|
+
JoinColumn as JoinColumn70,
|
|
14258
|
+
Index as Index72,
|
|
13713
14259
|
Unique,
|
|
13714
14260
|
Check as Check3,
|
|
13715
14261
|
BeforeInsert,
|
|
@@ -13769,56 +14315,56 @@ var PlanPricing = class extends BaseEntity {
|
|
|
13769
14315
|
};
|
|
13770
14316
|
// individual index to find pricing by plan
|
|
13771
14317
|
__decorateClass([
|
|
13772
|
-
|
|
13773
|
-
|
|
14318
|
+
Column88({ name: "plan_id", type: "integer", nullable: false }),
|
|
14319
|
+
Index72()
|
|
13774
14320
|
], PlanPricing.prototype, "planId", 2);
|
|
13775
14321
|
__decorateClass([
|
|
13776
|
-
|
|
14322
|
+
ManyToOne69(() => Plan, (plan) => plan.pricing, {
|
|
13777
14323
|
onDelete: "CASCADE",
|
|
13778
14324
|
nullable: false
|
|
13779
14325
|
}),
|
|
13780
|
-
|
|
14326
|
+
JoinColumn70({ name: "plan_id" })
|
|
13781
14327
|
], PlanPricing.prototype, "plan", 2);
|
|
13782
14328
|
__decorateClass([
|
|
13783
|
-
|
|
14329
|
+
Column88({
|
|
13784
14330
|
name: "billing_cycle",
|
|
13785
14331
|
type: "enum",
|
|
13786
14332
|
enum: PlanPricingBillingCycleEnum
|
|
13787
14333
|
})
|
|
13788
14334
|
], PlanPricing.prototype, "billingCycle", 2);
|
|
13789
14335
|
__decorateClass([
|
|
13790
|
-
|
|
14336
|
+
Column88({ name: "price", type: "decimal", precision: 10, scale: 2, default: 0 })
|
|
13791
14337
|
], PlanPricing.prototype, "price", 2);
|
|
13792
14338
|
__decorateClass([
|
|
13793
|
-
|
|
14339
|
+
Column88({ name: "original_price", type: "decimal", precision: 10, scale: 2, nullable: true })
|
|
13794
14340
|
], PlanPricing.prototype, "originalPrice", 2);
|
|
13795
14341
|
__decorateClass([
|
|
13796
|
-
|
|
14342
|
+
Column88({ name: "discount_pct", type: "smallint", nullable: true })
|
|
13797
14343
|
], PlanPricing.prototype, "discountPct", 2);
|
|
13798
14344
|
__decorateClass([
|
|
13799
|
-
|
|
14345
|
+
Column88({ name: "currency", type: "varchar", length: 3, default: "USD" })
|
|
13800
14346
|
], PlanPricing.prototype, "currency", 2);
|
|
13801
14347
|
__decorateClass([
|
|
13802
|
-
|
|
14348
|
+
Column88({ name: "is_free", type: "boolean", default: false })
|
|
13803
14349
|
], PlanPricing.prototype, "isFree", 2);
|
|
13804
14350
|
__decorateClass([
|
|
13805
|
-
|
|
14351
|
+
Column88({ name: "stripe_price_id", type: "varchar", length: 100, nullable: true, unique: true })
|
|
13806
14352
|
], PlanPricing.prototype, "stripePriceId", 2);
|
|
13807
14353
|
__decorateClass([
|
|
13808
|
-
|
|
14354
|
+
Column88({ name: "trial_days", type: "smallint", default: 0 })
|
|
13809
14355
|
], PlanPricing.prototype, "trialDays", 2);
|
|
13810
14356
|
__decorateClass([
|
|
13811
|
-
|
|
14357
|
+
Column88({ name: "is_active", type: "boolean", default: true })
|
|
13812
14358
|
], PlanPricing.prototype, "isActive", 2);
|
|
13813
14359
|
__decorateClass([
|
|
13814
14360
|
BeforeInsert(),
|
|
13815
14361
|
BeforeUpdate()
|
|
13816
14362
|
], PlanPricing.prototype, "sanitize", 1);
|
|
13817
14363
|
PlanPricing = __decorateClass([
|
|
13818
|
-
|
|
14364
|
+
Entity87("plan_pricings"),
|
|
13819
14365
|
Unique("uq_plan_pricings_plan_cycle", ["planId", "billingCycle"]),
|
|
13820
|
-
|
|
13821
|
-
|
|
14366
|
+
Index72("idx_plan_pricings_plan_id", ["planId"]),
|
|
14367
|
+
Index72("idx_plan_pricings_active", ["isActive", "billingCycle"]),
|
|
13822
14368
|
Check3("chk_plan_pricings_free_price_zero", '("is_free" = false) OR ("is_free" = true AND "price" = 0)'),
|
|
13823
14369
|
Check3("chk_plan_pricings_trial_days_non_negative", '"trial_days" >= 0'),
|
|
13824
14370
|
Check3("chk_plan_pricings_discount_range", '"discount_pct" IS NULL OR ("discount_pct" >= 1 AND "discount_pct" <= 99)'),
|
|
@@ -13840,22 +14386,22 @@ var Plan = class extends BaseEntity {
|
|
|
13840
14386
|
}
|
|
13841
14387
|
};
|
|
13842
14388
|
__decorateClass([
|
|
13843
|
-
|
|
14389
|
+
Column89({ name: "name", type: "varchar", length: 100 })
|
|
13844
14390
|
], Plan.prototype, "name", 2);
|
|
13845
14391
|
__decorateClass([
|
|
13846
|
-
|
|
14392
|
+
Column89({ name: "slug", type: "varchar", length: 100 })
|
|
13847
14393
|
], Plan.prototype, "slug", 2);
|
|
13848
14394
|
__decorateClass([
|
|
13849
|
-
|
|
14395
|
+
Column89({ name: "badge_label", type: "varchar", length: 60, nullable: true })
|
|
13850
14396
|
], Plan.prototype, "badgeLabel", 2);
|
|
13851
14397
|
__decorateClass([
|
|
13852
|
-
|
|
14398
|
+
Column89({ name: "sort_order", type: "smallint", default: 0 })
|
|
13853
14399
|
], Plan.prototype, "sortOrder", 2);
|
|
13854
14400
|
__decorateClass([
|
|
13855
|
-
|
|
14401
|
+
Column89({ name: "is_active", type: "boolean", default: true })
|
|
13856
14402
|
], Plan.prototype, "isActive", 2);
|
|
13857
14403
|
__decorateClass([
|
|
13858
|
-
|
|
14404
|
+
Column89({
|
|
13859
14405
|
name: "plan_type",
|
|
13860
14406
|
type: "enum",
|
|
13861
14407
|
enum: PlanTypeEnum,
|
|
@@ -13863,7 +14409,7 @@ __decorateClass([
|
|
|
13863
14409
|
})
|
|
13864
14410
|
], Plan.prototype, "planType", 2);
|
|
13865
14411
|
__decorateClass([
|
|
13866
|
-
|
|
14412
|
+
Column89({ name: "metadata", type: "jsonb", default: {} })
|
|
13867
14413
|
], Plan.prototype, "metadata", 2);
|
|
13868
14414
|
__decorateClass([
|
|
13869
14415
|
BeforeInsert2(),
|
|
@@ -13880,18 +14426,18 @@ __decorateClass([
|
|
|
13880
14426
|
})
|
|
13881
14427
|
], Plan.prototype, "pricing", 2);
|
|
13882
14428
|
Plan = __decorateClass([
|
|
13883
|
-
|
|
13884
|
-
|
|
13885
|
-
|
|
14429
|
+
Entity88("plans"),
|
|
14430
|
+
Index73("idx_plans_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14431
|
+
Index73("idx_plans_active_sort", ["isActive", "sortOrder"]),
|
|
13886
14432
|
Check4("chk_plans_sort_order_positive", '"sort_order" >= 0')
|
|
13887
14433
|
], Plan);
|
|
13888
14434
|
|
|
13889
14435
|
// src/entities/subscription-feature.entity.ts
|
|
13890
14436
|
import {
|
|
13891
|
-
Entity as
|
|
13892
|
-
Column as
|
|
14437
|
+
Entity as Entity89,
|
|
14438
|
+
Column as Column90,
|
|
13893
14439
|
Check as Check5,
|
|
13894
|
-
Index as
|
|
14440
|
+
Index as Index74,
|
|
13895
14441
|
BeforeInsert as BeforeInsert3,
|
|
13896
14442
|
BeforeUpdate as BeforeUpdate3
|
|
13897
14443
|
} from "typeorm";
|
|
@@ -13909,28 +14455,28 @@ var SubscriptionFeature = class extends BaseEntity {
|
|
|
13909
14455
|
}
|
|
13910
14456
|
};
|
|
13911
14457
|
__decorateClass([
|
|
13912
|
-
|
|
14458
|
+
Column90({ name: "name", type: "varchar", length: 200 })
|
|
13913
14459
|
], SubscriptionFeature.prototype, "name", 2);
|
|
13914
14460
|
__decorateClass([
|
|
13915
|
-
|
|
14461
|
+
Column90({ name: "slug", type: "varchar", length: 100 })
|
|
13916
14462
|
], SubscriptionFeature.prototype, "slug", 2);
|
|
13917
14463
|
__decorateClass([
|
|
13918
|
-
|
|
14464
|
+
Column90({ name: "tooltip", type: "varchar", length: 300, nullable: true })
|
|
13919
14465
|
], SubscriptionFeature.prototype, "tooltip", 2);
|
|
13920
14466
|
__decorateClass([
|
|
13921
|
-
|
|
14467
|
+
Column90({ name: "sort_order", type: "smallint", default: 0 })
|
|
13922
14468
|
], SubscriptionFeature.prototype, "sortOrder", 2);
|
|
13923
14469
|
__decorateClass([
|
|
13924
|
-
|
|
14470
|
+
Column90({ name: "is_active", type: "boolean", default: true })
|
|
13925
14471
|
], SubscriptionFeature.prototype, "isActive", 2);
|
|
13926
14472
|
__decorateClass([
|
|
13927
14473
|
BeforeInsert3(),
|
|
13928
14474
|
BeforeUpdate3()
|
|
13929
14475
|
], SubscriptionFeature.prototype, "createSlug", 1);
|
|
13930
14476
|
SubscriptionFeature = __decorateClass([
|
|
13931
|
-
|
|
13932
|
-
|
|
13933
|
-
|
|
14477
|
+
Entity89("subscription_features"),
|
|
14478
|
+
Index74("idx_subscription_features_slug", ["slug"], { unique: true, where: '"is_deleted" IS FALSE' }),
|
|
14479
|
+
Index74("idx_subscription_features_active_sort", ["isActive", "sortOrder"]),
|
|
13934
14480
|
Check5("chk_subscription_features_sort_order_positive", '"sort_order" >= 0')
|
|
13935
14481
|
], SubscriptionFeature);
|
|
13936
14482
|
export {
|
|
@@ -13943,6 +14489,7 @@ export {
|
|
|
13943
14489
|
AUTHENTICATION_PATTERN,
|
|
13944
14490
|
AccountStatus,
|
|
13945
14491
|
AccountType2 as AccountType,
|
|
14492
|
+
AddClientRemarkDto,
|
|
13946
14493
|
AddGlobalSettingDto,
|
|
13947
14494
|
AddTopupEscrowAmountDto,
|
|
13948
14495
|
AdminCreateJobInformationDto,
|
|
@@ -14060,6 +14607,7 @@ export {
|
|
|
14060
14607
|
CreateQuestionDto,
|
|
14061
14608
|
CreateRatingDto,
|
|
14062
14609
|
CreateSubAdminDto,
|
|
14610
|
+
CreateTaskDto,
|
|
14063
14611
|
CreateUserSigningDto,
|
|
14064
14612
|
CustomQuestionItemDto,
|
|
14065
14613
|
DISPUTE_PATTERN,
|
|
@@ -14200,6 +14748,7 @@ export {
|
|
|
14200
14748
|
MAINTENANCE_PATTERN,
|
|
14201
14749
|
MarkCandidateStatusBulkDto,
|
|
14202
14750
|
MarkCandidateStatusDto,
|
|
14751
|
+
MarkTaskAsCompletedDto,
|
|
14203
14752
|
McqStatusEnum,
|
|
14204
14753
|
ModeOfHire,
|
|
14205
14754
|
ModeOfWork,
|
|
@@ -14289,8 +14838,20 @@ export {
|
|
|
14289
14838
|
SubscriptionFeature,
|
|
14290
14839
|
SystemPreference,
|
|
14291
14840
|
SystemPreferenceDto,
|
|
14841
|
+
TASK_PATTERN,
|
|
14292
14842
|
TIMESHEET_CLIENT_PATTERN,
|
|
14293
14843
|
TIMESHEET_FREELANCER_PATTERN,
|
|
14844
|
+
Task,
|
|
14845
|
+
TaskChecklistItem,
|
|
14846
|
+
TaskDeliverable,
|
|
14847
|
+
TaskDeliverableTypeEnum,
|
|
14848
|
+
TaskPriorityEnum,
|
|
14849
|
+
TaskResource,
|
|
14850
|
+
TaskResourceTypeEnum,
|
|
14851
|
+
TaskStatusEnum,
|
|
14852
|
+
TaskSubtask,
|
|
14853
|
+
TaskSubtaskStatusEnum,
|
|
14854
|
+
TaskUuidParamDto,
|
|
14294
14855
|
TestNotificationDto,
|
|
14295
14856
|
Timesheet,
|
|
14296
14857
|
TimesheetLine,
|
|
@@ -14317,6 +14878,7 @@ export {
|
|
|
14317
14878
|
UpdateCompanyMemberDto,
|
|
14318
14879
|
UpdateCompanyProfileDto,
|
|
14319
14880
|
UpdateCompanyRoleDto,
|
|
14881
|
+
UpdateEstimateTimeDto,
|
|
14320
14882
|
UpdateFreelancerDto,
|
|
14321
14883
|
UpdateFreelancerProfileDto,
|
|
14322
14884
|
UpdateFreelancerTimesheetDto,
|
|
@@ -14327,6 +14889,7 @@ export {
|
|
|
14327
14889
|
UpdateIsReadDto,
|
|
14328
14890
|
UpdateSubAdminAccountStatusDto,
|
|
14329
14891
|
UpdateSubAdminDto,
|
|
14892
|
+
UpdateTaskDto,
|
|
14330
14893
|
User,
|
|
14331
14894
|
UserRMQAdapter,
|
|
14332
14895
|
UserTCPAdapter,
|