@experts_hub/shared 1.0.138 → 1.0.140
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/freelancer-education.entity.d.ts +9 -0
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +37 -1
- package/dist/index.d.ts +37 -1
- package/dist/index.js +191 -84
- package/dist/index.mjs +174 -67
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/user/freelancer-education/dto/create-freelancer-education.dto.d.ts +8 -0
- package/dist/modules/user/freelancer-education/dto/index.d.ts +2 -0
- package/dist/modules/user/freelancer-education/dto/update-freelancer-education.dto.d.ts +9 -0
- package/dist/modules/user/freelancer-education/index.d.ts +2 -0
- package/dist/modules/user/freelancer-education/pattern/pattern.d.ts +5 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -955,10 +955,10 @@ import {
|
|
|
955
955
|
} from "class-validator";
|
|
956
956
|
|
|
957
957
|
// src/entities/rating.entity.ts
|
|
958
|
-
import { Entity as
|
|
958
|
+
import { Entity as Entity16, Column as Column17, ManyToOne as ManyToOne15, JoinColumn as JoinColumn15, Index as Index13 } from "typeorm";
|
|
959
959
|
|
|
960
960
|
// src/entities/user.entity.ts
|
|
961
|
-
import { Entity as
|
|
961
|
+
import { Entity as Entity15, Column as Column16, OneToMany as OneToMany6, OneToOne, Index as Index12, ManyToOne as ManyToOne14, JoinColumn as JoinColumn14 } from "typeorm";
|
|
962
962
|
|
|
963
963
|
// src/entities/base.entity.ts
|
|
964
964
|
import {
|
|
@@ -1691,6 +1691,12 @@ __decorateClass([
|
|
|
1691
1691
|
default: "DRAFT" /* DRAFT */
|
|
1692
1692
|
})
|
|
1693
1693
|
], Job.prototype, "status", 2);
|
|
1694
|
+
__decorateClass([
|
|
1695
|
+
Column10({ name: "viewed_count", type: "integer", default: 0 })
|
|
1696
|
+
], Job.prototype, "viewedCount", 2);
|
|
1697
|
+
__decorateClass([
|
|
1698
|
+
Column10({ name: "application_count", type: "integer", default: 0 })
|
|
1699
|
+
], Job.prototype, "applicationCount", 2);
|
|
1694
1700
|
__decorateClass([
|
|
1695
1701
|
OneToMany4(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
1696
1702
|
], Job.prototype, "jobSkills", 2);
|
|
@@ -1879,6 +1885,38 @@ FreelancerExperience = __decorateClass([
|
|
|
1879
1885
|
Entity13("freelancer_experiences")
|
|
1880
1886
|
], FreelancerExperience);
|
|
1881
1887
|
|
|
1888
|
+
// src/entities/freelancer-education.entity.ts
|
|
1889
|
+
import {
|
|
1890
|
+
Entity as Entity14,
|
|
1891
|
+
Column as Column15,
|
|
1892
|
+
Index as Index11,
|
|
1893
|
+
ManyToOne as ManyToOne13,
|
|
1894
|
+
JoinColumn as JoinColumn13
|
|
1895
|
+
} from "typeorm";
|
|
1896
|
+
var FreelancerEducation = class extends BaseEntity {
|
|
1897
|
+
};
|
|
1898
|
+
// individual index to find education by user
|
|
1899
|
+
__decorateClass([
|
|
1900
|
+
Column15({ name: "user_id", type: "integer", nullable: true }),
|
|
1901
|
+
Index11()
|
|
1902
|
+
], FreelancerEducation.prototype, "userId", 2);
|
|
1903
|
+
__decorateClass([
|
|
1904
|
+
ManyToOne13(() => User, (user) => user.freelancerEducation),
|
|
1905
|
+
JoinColumn13({ name: "user_id" })
|
|
1906
|
+
], FreelancerEducation.prototype, "user", 2);
|
|
1907
|
+
__decorateClass([
|
|
1908
|
+
Column15({ name: "degree", type: "varchar", nullable: true })
|
|
1909
|
+
], FreelancerEducation.prototype, "degree", 2);
|
|
1910
|
+
__decorateClass([
|
|
1911
|
+
Column15({ name: "university", type: "varchar", nullable: true })
|
|
1912
|
+
], FreelancerEducation.prototype, "university", 2);
|
|
1913
|
+
__decorateClass([
|
|
1914
|
+
Column15({ name: "year_of_graduation", type: "varchar", nullable: true })
|
|
1915
|
+
], FreelancerEducation.prototype, "yearOfGraduation", 2);
|
|
1916
|
+
FreelancerEducation = __decorateClass([
|
|
1917
|
+
Entity14("freelancer_educations")
|
|
1918
|
+
], FreelancerEducation);
|
|
1919
|
+
|
|
1882
1920
|
// src/entities/user.entity.ts
|
|
1883
1921
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
1884
1922
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -1903,51 +1941,51 @@ var Provider = /* @__PURE__ */ ((Provider2) => {
|
|
|
1903
1941
|
var User = class extends BaseEntity {
|
|
1904
1942
|
};
|
|
1905
1943
|
__decorateClass([
|
|
1906
|
-
|
|
1944
|
+
Column16({ name: "unique_id", type: "varchar", unique: true })
|
|
1907
1945
|
], User.prototype, "uniqueId", 2);
|
|
1908
1946
|
__decorateClass([
|
|
1909
|
-
|
|
1910
|
-
|
|
1947
|
+
Column16({ name: "parent_id", type: "integer", nullable: true }),
|
|
1948
|
+
Index12()
|
|
1911
1949
|
], User.prototype, "parentId", 2);
|
|
1912
1950
|
__decorateClass([
|
|
1913
|
-
|
|
1914
|
-
|
|
1951
|
+
ManyToOne14(() => User, (user) => user.children, { nullable: true }),
|
|
1952
|
+
JoinColumn14({ name: "parent_id" })
|
|
1915
1953
|
], User.prototype, "parent", 2);
|
|
1916
1954
|
__decorateClass([
|
|
1917
1955
|
OneToMany6(() => User, (user) => user.parent)
|
|
1918
1956
|
], User.prototype, "children", 2);
|
|
1919
1957
|
__decorateClass([
|
|
1920
|
-
|
|
1958
|
+
Column16({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
1921
1959
|
], User.prototype, "username", 2);
|
|
1922
1960
|
__decorateClass([
|
|
1923
|
-
|
|
1961
|
+
Column16({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
1924
1962
|
], User.prototype, "firstName", 2);
|
|
1925
1963
|
__decorateClass([
|
|
1926
|
-
|
|
1964
|
+
Column16({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
1927
1965
|
], User.prototype, "lastName", 2);
|
|
1928
1966
|
__decorateClass([
|
|
1929
|
-
|
|
1967
|
+
Column16({ name: "date_of_birth", type: "date", nullable: true })
|
|
1930
1968
|
], User.prototype, "dateOfBirth", 2);
|
|
1931
1969
|
__decorateClass([
|
|
1932
|
-
|
|
1970
|
+
Column16({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
1933
1971
|
], User.prototype, "gender", 2);
|
|
1934
1972
|
__decorateClass([
|
|
1935
|
-
|
|
1973
|
+
Column16({ name: "profile_picture_url", type: "text", nullable: true })
|
|
1936
1974
|
], User.prototype, "profilePictureUrl", 2);
|
|
1937
1975
|
__decorateClass([
|
|
1938
|
-
|
|
1976
|
+
Column16({ name: "email", type: "varchar", unique: true })
|
|
1939
1977
|
], User.prototype, "email", 2);
|
|
1940
1978
|
__decorateClass([
|
|
1941
|
-
|
|
1979
|
+
Column16({ name: "mobile_code", type: "varchar", nullable: true })
|
|
1942
1980
|
], User.prototype, "mobileCode", 2);
|
|
1943
1981
|
__decorateClass([
|
|
1944
|
-
|
|
1982
|
+
Column16({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
1945
1983
|
], User.prototype, "mobile", 2);
|
|
1946
1984
|
__decorateClass([
|
|
1947
|
-
|
|
1985
|
+
Column16({ name: "password", type: "varchar" })
|
|
1948
1986
|
], User.prototype, "password", 2);
|
|
1949
1987
|
__decorateClass([
|
|
1950
|
-
|
|
1988
|
+
Column16({
|
|
1951
1989
|
name: "account_type",
|
|
1952
1990
|
type: "enum",
|
|
1953
1991
|
enum: AccountType,
|
|
@@ -1955,7 +1993,7 @@ __decorateClass([
|
|
|
1955
1993
|
})
|
|
1956
1994
|
], User.prototype, "accountType", 2);
|
|
1957
1995
|
__decorateClass([
|
|
1958
|
-
|
|
1996
|
+
Column16({
|
|
1959
1997
|
name: "account_status",
|
|
1960
1998
|
type: "enum",
|
|
1961
1999
|
enum: AccountStatus,
|
|
@@ -1963,26 +2001,26 @@ __decorateClass([
|
|
|
1963
2001
|
})
|
|
1964
2002
|
], User.prototype, "accountStatus", 2);
|
|
1965
2003
|
__decorateClass([
|
|
1966
|
-
|
|
2004
|
+
Column16({ name: "is_email_verified", type: "boolean", default: false })
|
|
1967
2005
|
], User.prototype, "isEmailVerified", 2);
|
|
1968
2006
|
__decorateClass([
|
|
1969
|
-
|
|
2007
|
+
Column16({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
1970
2008
|
], User.prototype, "isMobileVerified", 2);
|
|
1971
2009
|
__decorateClass([
|
|
1972
|
-
|
|
2010
|
+
Column16({
|
|
1973
2011
|
name: "last_login_at",
|
|
1974
2012
|
type: "timestamp with time zone",
|
|
1975
2013
|
nullable: true
|
|
1976
2014
|
})
|
|
1977
2015
|
], User.prototype, "lastLoginAt", 2);
|
|
1978
2016
|
__decorateClass([
|
|
1979
|
-
|
|
2017
|
+
Column16({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
1980
2018
|
], User.prototype, "lastLoginIp", 2);
|
|
1981
2019
|
__decorateClass([
|
|
1982
|
-
|
|
2020
|
+
Column16({ name: "reset_token", type: "varchar", nullable: true })
|
|
1983
2021
|
], User.prototype, "resetToken", 2);
|
|
1984
2022
|
__decorateClass([
|
|
1985
|
-
|
|
2023
|
+
Column16({
|
|
1986
2024
|
name: "reset_token_expire_at",
|
|
1987
2025
|
type: "timestamp with time zone",
|
|
1988
2026
|
nullable: true
|
|
@@ -1992,7 +2030,7 @@ __decorateClass([
|
|
|
1992
2030
|
OneToMany6(() => RefreshToken, (token) => token.user)
|
|
1993
2031
|
], User.prototype, "refreshTokens", 2);
|
|
1994
2032
|
__decorateClass([
|
|
1995
|
-
|
|
2033
|
+
Column16({
|
|
1996
2034
|
name: "provider",
|
|
1997
2035
|
type: "enum",
|
|
1998
2036
|
enum: Provider,
|
|
@@ -2001,16 +2039,16 @@ __decorateClass([
|
|
|
2001
2039
|
})
|
|
2002
2040
|
], User.prototype, "provider", 2);
|
|
2003
2041
|
__decorateClass([
|
|
2004
|
-
|
|
2042
|
+
Column16({ name: "provider_token", type: "varchar", nullable: true })
|
|
2005
2043
|
], User.prototype, "providerToken", 2);
|
|
2006
2044
|
__decorateClass([
|
|
2007
|
-
|
|
2045
|
+
Column16({ name: "linkedin_id", type: "varchar", nullable: true })
|
|
2008
2046
|
], User.prototype, "linkedInId", 2);
|
|
2009
2047
|
__decorateClass([
|
|
2010
|
-
|
|
2048
|
+
Column16({ name: "google_id", type: "varchar", nullable: true })
|
|
2011
2049
|
], User.prototype, "googleId", 2);
|
|
2012
2050
|
__decorateClass([
|
|
2013
|
-
|
|
2051
|
+
Column16({ name: "gitlabs_id", type: "varchar", nullable: true })
|
|
2014
2052
|
], User.prototype, "gitLabsId", 2);
|
|
2015
2053
|
__decorateClass([
|
|
2016
2054
|
OneToMany6(() => Otp, (otp) => otp.user)
|
|
@@ -2054,8 +2092,11 @@ __decorateClass([
|
|
|
2054
2092
|
__decorateClass([
|
|
2055
2093
|
OneToOne(() => FreelancerExperience, (freelancerExperience) => freelancerExperience.user)
|
|
2056
2094
|
], User.prototype, "freelancerExperience", 2);
|
|
2095
|
+
__decorateClass([
|
|
2096
|
+
OneToOne(() => FreelancerEducation, (freelancerEducation) => freelancerEducation.user)
|
|
2097
|
+
], User.prototype, "freelancerEducation", 2);
|
|
2057
2098
|
User = __decorateClass([
|
|
2058
|
-
|
|
2099
|
+
Entity15("users")
|
|
2059
2100
|
], User);
|
|
2060
2101
|
|
|
2061
2102
|
// src/entities/rating.entity.ts
|
|
@@ -2067,36 +2108,36 @@ var RatingTypeEnum = /* @__PURE__ */ ((RatingTypeEnum2) => {
|
|
|
2067
2108
|
var Rating = class extends BaseEntity {
|
|
2068
2109
|
};
|
|
2069
2110
|
__decorateClass([
|
|
2070
|
-
|
|
2071
|
-
|
|
2111
|
+
Column17({ name: "reviewer_id", type: "integer" }),
|
|
2112
|
+
Index13()
|
|
2072
2113
|
], Rating.prototype, "reviewer_id", 2);
|
|
2073
2114
|
__decorateClass([
|
|
2074
|
-
|
|
2075
|
-
|
|
2115
|
+
ManyToOne15(() => User, { onDelete: "CASCADE" }),
|
|
2116
|
+
JoinColumn15({ name: "reviewer_id" })
|
|
2076
2117
|
], Rating.prototype, "reviewer", 2);
|
|
2077
2118
|
__decorateClass([
|
|
2078
|
-
|
|
2079
|
-
|
|
2119
|
+
Column17({ name: "reviewee_id", type: "integer" }),
|
|
2120
|
+
Index13()
|
|
2080
2121
|
], Rating.prototype, "reviewee_id", 2);
|
|
2081
2122
|
__decorateClass([
|
|
2082
|
-
|
|
2083
|
-
|
|
2123
|
+
ManyToOne15(() => User, { onDelete: "CASCADE" }),
|
|
2124
|
+
JoinColumn15({ name: "reviewee_id" })
|
|
2084
2125
|
], Rating.prototype, "reviewee", 2);
|
|
2085
2126
|
__decorateClass([
|
|
2086
|
-
|
|
2127
|
+
Column17({
|
|
2087
2128
|
type: "enum",
|
|
2088
2129
|
enum: RatingTypeEnum,
|
|
2089
2130
|
nullable: true
|
|
2090
2131
|
})
|
|
2091
2132
|
], Rating.prototype, "ratingType", 2);
|
|
2092
2133
|
__decorateClass([
|
|
2093
|
-
|
|
2134
|
+
Column17({ type: "integer", nullable: true })
|
|
2094
2135
|
], Rating.prototype, "rating", 2);
|
|
2095
2136
|
__decorateClass([
|
|
2096
|
-
|
|
2137
|
+
Column17({ type: "text", nullable: true })
|
|
2097
2138
|
], Rating.prototype, "review", 2);
|
|
2098
2139
|
Rating = __decorateClass([
|
|
2099
|
-
|
|
2140
|
+
Entity16("ratings")
|
|
2100
2141
|
], Rating);
|
|
2101
2142
|
|
|
2102
2143
|
// src/modules/rating/dto/add.rating.dto.ts
|
|
@@ -2285,6 +2326,66 @@ __decorateClass([
|
|
|
2285
2326
|
IsBoolean11()
|
|
2286
2327
|
], ToggleCompanyMemberVisibilityDto.prototype, "isActive", 2);
|
|
2287
2328
|
|
|
2329
|
+
// src/modules/user/freelancer-education/pattern/pattern.ts
|
|
2330
|
+
var FREELANCER_EDUCATION_PATTERN = {
|
|
2331
|
+
fetchFreelancerEducation: "fetch.freelancer.education",
|
|
2332
|
+
createFreelancerEducation: "create.freelancer.education",
|
|
2333
|
+
updateFreelancerEducation: "update.freelancer.education"
|
|
2334
|
+
};
|
|
2335
|
+
|
|
2336
|
+
// src/modules/user/freelancer-education/dto/create-freelancer-education.dto.ts
|
|
2337
|
+
import { IsArray as IsArray4, ValidateNested as ValidateNested3, IsString as IsString22, IsNotEmpty as IsNotEmpty30 } from "class-validator";
|
|
2338
|
+
import { Type as Type4 } from "class-transformer";
|
|
2339
|
+
var CreateEducationDto = class {
|
|
2340
|
+
};
|
|
2341
|
+
__decorateClass([
|
|
2342
|
+
IsString22(),
|
|
2343
|
+
IsNotEmpty30()
|
|
2344
|
+
], CreateEducationDto.prototype, "degree", 2);
|
|
2345
|
+
__decorateClass([
|
|
2346
|
+
IsString22(),
|
|
2347
|
+
IsNotEmpty30()
|
|
2348
|
+
], CreateEducationDto.prototype, "university", 2);
|
|
2349
|
+
__decorateClass([
|
|
2350
|
+
IsString22(),
|
|
2351
|
+
IsNotEmpty30()
|
|
2352
|
+
], CreateEducationDto.prototype, "yearOfGraduation", 2);
|
|
2353
|
+
var CreateFreelancerEducationDto = class {
|
|
2354
|
+
};
|
|
2355
|
+
__decorateClass([
|
|
2356
|
+
IsArray4(),
|
|
2357
|
+
ValidateNested3({ each: true }),
|
|
2358
|
+
Type4(() => CreateEducationDto)
|
|
2359
|
+
], CreateFreelancerEducationDto.prototype, "education", 2);
|
|
2360
|
+
|
|
2361
|
+
// src/modules/user/freelancer-education/dto/update-freelancer-education.dto.ts
|
|
2362
|
+
import { IsArray as IsArray5, ValidateNested as ValidateNested4, IsString as IsString23, IsNotEmpty as IsNotEmpty31, IsOptional as IsOptional15 } from "class-validator";
|
|
2363
|
+
import { Type as Type5 } from "class-transformer";
|
|
2364
|
+
var UpdateEducationDto = class {
|
|
2365
|
+
};
|
|
2366
|
+
__decorateClass([
|
|
2367
|
+
IsOptional15()
|
|
2368
|
+
], UpdateEducationDto.prototype, "uuid", 2);
|
|
2369
|
+
__decorateClass([
|
|
2370
|
+
IsString23(),
|
|
2371
|
+
IsNotEmpty31()
|
|
2372
|
+
], UpdateEducationDto.prototype, "degree", 2);
|
|
2373
|
+
__decorateClass([
|
|
2374
|
+
IsString23(),
|
|
2375
|
+
IsNotEmpty31()
|
|
2376
|
+
], UpdateEducationDto.prototype, "university", 2);
|
|
2377
|
+
__decorateClass([
|
|
2378
|
+
IsString23(),
|
|
2379
|
+
IsNotEmpty31()
|
|
2380
|
+
], UpdateEducationDto.prototype, "yearOfGraduation", 2);
|
|
2381
|
+
var UpdateFreelancerEducationDto = class {
|
|
2382
|
+
};
|
|
2383
|
+
__decorateClass([
|
|
2384
|
+
IsArray5(),
|
|
2385
|
+
ValidateNested4({ each: true }),
|
|
2386
|
+
Type5(() => UpdateEducationDto)
|
|
2387
|
+
], UpdateFreelancerEducationDto.prototype, "education", 2);
|
|
2388
|
+
|
|
2288
2389
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
2289
2390
|
import { config } from "dotenv";
|
|
2290
2391
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -2502,7 +2603,7 @@ var NotificationRMQAdapter = (mode = "microservice") => {
|
|
|
2502
2603
|
};
|
|
2503
2604
|
|
|
2504
2605
|
// src/entities/question.entity.ts
|
|
2505
|
-
import { Entity as
|
|
2606
|
+
import { Entity as Entity17, Column as Column18 } from "typeorm";
|
|
2506
2607
|
var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
2507
2608
|
QuestionFor2["CLIENT"] = "CLIENT";
|
|
2508
2609
|
QuestionFor2["FREELANCER"] = "FREELANCER";
|
|
@@ -2511,16 +2612,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
|
|
|
2511
2612
|
var Question = class extends BaseEntity {
|
|
2512
2613
|
};
|
|
2513
2614
|
__decorateClass([
|
|
2514
|
-
|
|
2615
|
+
Column18({ name: "question", type: "varchar" })
|
|
2515
2616
|
], Question.prototype, "question", 2);
|
|
2516
2617
|
__decorateClass([
|
|
2517
|
-
|
|
2618
|
+
Column18({ name: "hint", type: "varchar", nullable: true })
|
|
2518
2619
|
], Question.prototype, "hint", 2);
|
|
2519
2620
|
__decorateClass([
|
|
2520
|
-
|
|
2621
|
+
Column18({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2521
2622
|
], Question.prototype, "slug", 2);
|
|
2522
2623
|
__decorateClass([
|
|
2523
|
-
|
|
2624
|
+
Column18({
|
|
2524
2625
|
name: "question_for",
|
|
2525
2626
|
type: "enum",
|
|
2526
2627
|
enum: QuestionFor,
|
|
@@ -2528,76 +2629,76 @@ __decorateClass([
|
|
|
2528
2629
|
})
|
|
2529
2630
|
], Question.prototype, "questionFor", 2);
|
|
2530
2631
|
__decorateClass([
|
|
2531
|
-
|
|
2632
|
+
Column18({ name: "type", type: "varchar", nullable: true })
|
|
2532
2633
|
], Question.prototype, "type", 2);
|
|
2533
2634
|
__decorateClass([
|
|
2534
|
-
|
|
2635
|
+
Column18({ name: "options", type: "jsonb", nullable: true })
|
|
2535
2636
|
], Question.prototype, "options", 2);
|
|
2536
2637
|
__decorateClass([
|
|
2537
|
-
|
|
2638
|
+
Column18({ name: "is_active", type: "boolean", default: false })
|
|
2538
2639
|
], Question.prototype, "isActive", 2);
|
|
2539
2640
|
Question = __decorateClass([
|
|
2540
|
-
|
|
2641
|
+
Entity17("questions")
|
|
2541
2642
|
], Question);
|
|
2542
2643
|
|
|
2543
2644
|
// src/entities/job-role.entity.ts
|
|
2544
|
-
import { Entity as
|
|
2645
|
+
import { Entity as Entity18, Column as Column19 } from "typeorm";
|
|
2545
2646
|
var JobRoles = class extends BaseEntity {
|
|
2546
2647
|
};
|
|
2547
2648
|
__decorateClass([
|
|
2548
|
-
|
|
2649
|
+
Column19({ name: "slug", type: "varchar", nullable: true, unique: true })
|
|
2549
2650
|
], JobRoles.prototype, "slug", 2);
|
|
2550
2651
|
__decorateClass([
|
|
2551
|
-
|
|
2652
|
+
Column19({ name: "name", type: "varchar", nullable: true })
|
|
2552
2653
|
], JobRoles.prototype, "name", 2);
|
|
2553
2654
|
__decorateClass([
|
|
2554
|
-
|
|
2655
|
+
Column19({ name: "is_active", type: "boolean", default: true })
|
|
2555
2656
|
], JobRoles.prototype, "isActive", 2);
|
|
2556
2657
|
JobRoles = __decorateClass([
|
|
2557
|
-
|
|
2658
|
+
Entity18("job_roles")
|
|
2558
2659
|
], JobRoles);
|
|
2559
2660
|
|
|
2560
2661
|
// src/entities/plan.entity.ts
|
|
2561
|
-
import { Entity as
|
|
2662
|
+
import { Entity as Entity20, Column as Column21, ManyToMany as ManyToMany2, JoinTable } from "typeorm";
|
|
2562
2663
|
|
|
2563
2664
|
// src/entities/feature.entity.ts
|
|
2564
|
-
import { Entity as
|
|
2665
|
+
import { Entity as Entity19, Column as Column20, ManyToMany } from "typeorm";
|
|
2565
2666
|
var Feature = class extends BaseEntity {
|
|
2566
2667
|
};
|
|
2567
2668
|
__decorateClass([
|
|
2568
|
-
|
|
2669
|
+
Column20({ name: "name", type: "varchar", unique: true })
|
|
2569
2670
|
], Feature.prototype, "name", 2);
|
|
2570
2671
|
__decorateClass([
|
|
2571
2672
|
ManyToMany(() => Plan, (plan) => plan.features)
|
|
2572
2673
|
], Feature.prototype, "plans", 2);
|
|
2573
2674
|
Feature = __decorateClass([
|
|
2574
|
-
|
|
2675
|
+
Entity19("features")
|
|
2575
2676
|
], Feature);
|
|
2576
2677
|
|
|
2577
2678
|
// src/entities/plan.entity.ts
|
|
2578
2679
|
var Plan = class extends BaseEntity {
|
|
2579
2680
|
};
|
|
2580
2681
|
__decorateClass([
|
|
2581
|
-
|
|
2682
|
+
Column21({ name: "name", type: "varchar", unique: true })
|
|
2582
2683
|
], Plan.prototype, "name", 2);
|
|
2583
2684
|
__decorateClass([
|
|
2584
|
-
|
|
2685
|
+
Column21({ name: "description", type: "varchar", nullable: true })
|
|
2585
2686
|
], Plan.prototype, "description", 2);
|
|
2586
2687
|
__decorateClass([
|
|
2587
|
-
|
|
2688
|
+
Column21({ name: "price", type: "decimal", precision: 10, scale: 2 })
|
|
2588
2689
|
], Plan.prototype, "price", 2);
|
|
2589
2690
|
__decorateClass([
|
|
2590
|
-
|
|
2691
|
+
Column21({ name: "billing_period", type: "varchar" })
|
|
2591
2692
|
], Plan.prototype, "billingPeriod", 2);
|
|
2592
2693
|
__decorateClass([
|
|
2593
|
-
|
|
2694
|
+
Column21({ name: "is_current", type: "boolean", default: false })
|
|
2594
2695
|
], Plan.prototype, "isCurrent", 2);
|
|
2595
2696
|
__decorateClass([
|
|
2596
2697
|
ManyToMany2(() => Feature, (feature) => feature.plans, { cascade: true }),
|
|
2597
2698
|
JoinTable()
|
|
2598
2699
|
], Plan.prototype, "features", 2);
|
|
2599
2700
|
Plan = __decorateClass([
|
|
2600
|
-
|
|
2701
|
+
Entity20("plans")
|
|
2601
2702
|
], Plan);
|
|
2602
2703
|
export {
|
|
2603
2704
|
AUTHENTICATION_PATTERN,
|
|
@@ -2620,13 +2721,16 @@ export {
|
|
|
2620
2721
|
CompanyRole,
|
|
2621
2722
|
CreateCompanyMemberDto,
|
|
2622
2723
|
CreateCompanyRoleDto,
|
|
2724
|
+
CreateEducationDto,
|
|
2623
2725
|
CreateExperienceDto,
|
|
2726
|
+
CreateFreelancerEducationDto,
|
|
2624
2727
|
CreateFreelancerExperienceDto,
|
|
2625
2728
|
CreateQuestionDto,
|
|
2626
2729
|
CreateRatingDto,
|
|
2627
2730
|
CreateSubAdminDto,
|
|
2628
2731
|
DurationTypeEnum,
|
|
2629
2732
|
EmploymentType,
|
|
2733
|
+
FREELANCER_EDUCATION_PATTERN,
|
|
2630
2734
|
FREELANCER_EXPERIENCE_PATTERN,
|
|
2631
2735
|
Feature,
|
|
2632
2736
|
ForgotPasswordDto,
|
|
@@ -2634,6 +2738,7 @@ export {
|
|
|
2634
2738
|
FreelancerChangePasswordDto,
|
|
2635
2739
|
FreelancerCreateAccountDto,
|
|
2636
2740
|
FreelancerDevelopmentPreferenceDto,
|
|
2741
|
+
FreelancerEducation,
|
|
2637
2742
|
FreelancerExperience,
|
|
2638
2743
|
FreelancerProfile,
|
|
2639
2744
|
FreelancerProfileQuestionDto,
|
|
@@ -2700,7 +2805,9 @@ export {
|
|
|
2700
2805
|
UpdateCompanyMemberDto,
|
|
2701
2806
|
UpdateCompanyProfileDto,
|
|
2702
2807
|
UpdateCompanyRoleDto,
|
|
2808
|
+
UpdateEducationDto,
|
|
2703
2809
|
UpdateExperienceDto,
|
|
2810
|
+
UpdateFreelancerEducationDto,
|
|
2704
2811
|
UpdateFreelancerExperienceDto,
|
|
2705
2812
|
UpdateFreelancerProfileDto,
|
|
2706
2813
|
UpdateSubAdminAccountStatusDto,
|
package/dist/modules/index.d.ts
CHANGED