@experts_hub/shared 1.0.458 → 1.0.460
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/interview-invite.entity.d.ts +3 -0
- package/dist/entities/job.entity.d.ts +2 -0
- package/dist/entities/stripe-transaction.entity.d.ts +3 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +26 -1
- package/dist/index.mjs +26 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from "./base.entity";
|
|
2
2
|
import { Interview } from "./interview.entity";
|
|
3
3
|
import { User } from "./user.entity";
|
|
4
|
+
import { Job } from "./job.entity";
|
|
4
5
|
export declare enum InterviewInviteStatusEnum {
|
|
5
6
|
PENDING = "PENDING",
|
|
6
7
|
ACCEPTED = "ACCEPTED",
|
|
@@ -12,6 +13,8 @@ export declare class InterviewInvite extends BaseEntity {
|
|
|
12
13
|
interview: Interview;
|
|
13
14
|
userId: number;
|
|
14
15
|
user: User;
|
|
16
|
+
jobId: number;
|
|
17
|
+
job: Job;
|
|
15
18
|
fullName: string;
|
|
16
19
|
email: string;
|
|
17
20
|
status: InterviewInviteStatusEnum;
|
|
@@ -13,6 +13,7 @@ import { TimesheetLine } from "./timesheet-line.entity";
|
|
|
13
13
|
import { ClientCandidatePreference } from "./client-candidate-preference.entity";
|
|
14
14
|
import { Invoice } from "./invoice.entity";
|
|
15
15
|
import { F2FInterview } from "./f2f-interview.entity";
|
|
16
|
+
import { InterviewInvite } from "./interview-invite.entity";
|
|
16
17
|
export declare enum JobLocationEnum {
|
|
17
18
|
ONSITE = "ONSITE",
|
|
18
19
|
REMOTE = "REMOTE",
|
|
@@ -87,6 +88,7 @@ export declare class Job extends BaseEntity {
|
|
|
87
88
|
applicationCount: number;
|
|
88
89
|
isContractSigned: boolean;
|
|
89
90
|
isInterviewCreated: boolean;
|
|
91
|
+
interviewInvites: InterviewInvite[];
|
|
90
92
|
jobSkills: JobSkill[];
|
|
91
93
|
jobApplications: JobApplication[];
|
|
92
94
|
interviews: Interview[];
|
|
@@ -31,9 +31,12 @@ export declare class StripeTransaction extends BaseEntity {
|
|
|
31
31
|
totalPaidCents: number;
|
|
32
32
|
netReceivedCents: number;
|
|
33
33
|
stripeChargeId: string;
|
|
34
|
+
stripeReceiptUrl: string;
|
|
34
35
|
stripeBalanceTransactionId: string;
|
|
35
36
|
checkoutSessionCompletedAt: Date;
|
|
36
37
|
completedAt: Date;
|
|
37
38
|
rawSessionPayload: Record<string, any> | null;
|
|
38
39
|
rawSessionResponse: Record<string, any> | null;
|
|
40
|
+
billingDetails: Record<string, any> | null;
|
|
41
|
+
paymentMethodDetails: Record<string, any> | null;
|
|
39
42
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -905,6 +905,8 @@ declare class InterviewInvite extends BaseEntity {
|
|
|
905
905
|
interview: Interview;
|
|
906
906
|
userId: number;
|
|
907
907
|
user: User;
|
|
908
|
+
jobId: number;
|
|
909
|
+
job: Job;
|
|
908
910
|
fullName: string;
|
|
909
911
|
email: string;
|
|
910
912
|
status: InterviewInviteStatusEnum;
|
|
@@ -1335,6 +1337,7 @@ declare class Job extends BaseEntity {
|
|
|
1335
1337
|
applicationCount: number;
|
|
1336
1338
|
isContractSigned: boolean;
|
|
1337
1339
|
isInterviewCreated: boolean;
|
|
1340
|
+
interviewInvites: InterviewInvite[];
|
|
1338
1341
|
jobSkills: JobSkill[];
|
|
1339
1342
|
jobApplications: JobApplication[];
|
|
1340
1343
|
interviews: Interview[];
|
|
@@ -1655,11 +1658,14 @@ declare class StripeTransaction extends BaseEntity {
|
|
|
1655
1658
|
totalPaidCents: number;
|
|
1656
1659
|
netReceivedCents: number;
|
|
1657
1660
|
stripeChargeId: string;
|
|
1661
|
+
stripeReceiptUrl: string;
|
|
1658
1662
|
stripeBalanceTransactionId: string;
|
|
1659
1663
|
checkoutSessionCompletedAt: Date;
|
|
1660
1664
|
completedAt: Date;
|
|
1661
1665
|
rawSessionPayload: Record<string, any> | null;
|
|
1662
1666
|
rawSessionResponse: Record<string, any> | null;
|
|
1667
|
+
billingDetails: Record<string, any> | null;
|
|
1668
|
+
paymentMethodDetails: Record<string, any> | null;
|
|
1663
1669
|
}
|
|
1664
1670
|
|
|
1665
1671
|
declare enum WalletTransactionTypeEnum {
|
package/dist/index.d.ts
CHANGED
|
@@ -905,6 +905,8 @@ declare class InterviewInvite extends BaseEntity {
|
|
|
905
905
|
interview: Interview;
|
|
906
906
|
userId: number;
|
|
907
907
|
user: User;
|
|
908
|
+
jobId: number;
|
|
909
|
+
job: Job;
|
|
908
910
|
fullName: string;
|
|
909
911
|
email: string;
|
|
910
912
|
status: InterviewInviteStatusEnum;
|
|
@@ -1335,6 +1337,7 @@ declare class Job extends BaseEntity {
|
|
|
1335
1337
|
applicationCount: number;
|
|
1336
1338
|
isContractSigned: boolean;
|
|
1337
1339
|
isInterviewCreated: boolean;
|
|
1340
|
+
interviewInvites: InterviewInvite[];
|
|
1338
1341
|
jobSkills: JobSkill[];
|
|
1339
1342
|
jobApplications: JobApplication[];
|
|
1340
1343
|
interviews: Interview[];
|
|
@@ -1655,11 +1658,14 @@ declare class StripeTransaction extends BaseEntity {
|
|
|
1655
1658
|
totalPaidCents: number;
|
|
1656
1659
|
netReceivedCents: number;
|
|
1657
1660
|
stripeChargeId: string;
|
|
1661
|
+
stripeReceiptUrl: string;
|
|
1658
1662
|
stripeBalanceTransactionId: string;
|
|
1659
1663
|
checkoutSessionCompletedAt: Date;
|
|
1660
1664
|
completedAt: Date;
|
|
1661
1665
|
rawSessionPayload: Record<string, any> | null;
|
|
1662
1666
|
rawSessionResponse: Record<string, any> | null;
|
|
1667
|
+
billingDetails: Record<string, any> | null;
|
|
1668
|
+
paymentMethodDetails: Record<string, any> | null;
|
|
1663
1669
|
}
|
|
1664
1670
|
|
|
1665
1671
|
declare enum WalletTransactionTypeEnum {
|
package/dist/index.js
CHANGED
|
@@ -2564,6 +2564,19 @@ __decorateClass([
|
|
|
2564
2564
|
(0, import_typeorm14.ManyToOne)(() => User),
|
|
2565
2565
|
(0, import_typeorm14.JoinColumn)({ name: "user_id" })
|
|
2566
2566
|
], InterviewInvite.prototype, "user", 2);
|
|
2567
|
+
__decorateClass([
|
|
2568
|
+
(0, import_typeorm14.Column)({
|
|
2569
|
+
name: "job_id",
|
|
2570
|
+
type: "integer",
|
|
2571
|
+
comment: "Column to specify job id",
|
|
2572
|
+
nullable: true
|
|
2573
|
+
}),
|
|
2574
|
+
(0, import_typeorm14.Index)()
|
|
2575
|
+
], InterviewInvite.prototype, "jobId", 2);
|
|
2576
|
+
__decorateClass([
|
|
2577
|
+
(0, import_typeorm14.ManyToOne)(() => Job),
|
|
2578
|
+
(0, import_typeorm14.JoinColumn)({ name: "job_id" })
|
|
2579
|
+
], InterviewInvite.prototype, "job", 2);
|
|
2567
2580
|
__decorateClass([
|
|
2568
2581
|
(0, import_typeorm14.Column)({
|
|
2569
2582
|
name: "full_name",
|
|
@@ -3908,6 +3921,9 @@ __decorateClass([
|
|
|
3908
3921
|
__decorateClass([
|
|
3909
3922
|
(0, import_typeorm28.Column)({ name: "is_interview_created", type: "boolean", default: false })
|
|
3910
3923
|
], Job.prototype, "isInterviewCreated", 2);
|
|
3924
|
+
__decorateClass([
|
|
3925
|
+
(0, import_typeorm28.OneToMany)(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
3926
|
+
], Job.prototype, "interviewInvites", 2);
|
|
3911
3927
|
__decorateClass([
|
|
3912
3928
|
(0, import_typeorm28.OneToMany)(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
3913
3929
|
], Job.prototype, "jobSkills", 2);
|
|
@@ -4863,7 +4879,7 @@ var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2
|
|
|
4863
4879
|
return StripeTransactionStatusEnum2;
|
|
4864
4880
|
})(StripeTransactionStatusEnum || {});
|
|
4865
4881
|
var StripeTransaction = class extends BaseEntity {
|
|
4866
|
-
// Full Stripe
|
|
4882
|
+
// Full Stripe payment method details response
|
|
4867
4883
|
};
|
|
4868
4884
|
__decorateClass([
|
|
4869
4885
|
(0, import_typeorm55.Column)({ name: "user_id", type: "integer", nullable: true }),
|
|
@@ -4915,6 +4931,9 @@ __decorateClass([
|
|
|
4915
4931
|
__decorateClass([
|
|
4916
4932
|
(0, import_typeorm55.Column)({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4917
4933
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
4934
|
+
__decorateClass([
|
|
4935
|
+
(0, import_typeorm55.Column)({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
4936
|
+
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
4918
4937
|
__decorateClass([
|
|
4919
4938
|
(0, import_typeorm55.Column)({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4920
4939
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
@@ -4930,6 +4949,12 @@ __decorateClass([
|
|
|
4930
4949
|
__decorateClass([
|
|
4931
4950
|
(0, import_typeorm55.Column)({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
4932
4951
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
4952
|
+
__decorateClass([
|
|
4953
|
+
(0, import_typeorm55.Column)({ name: "billing_details", type: "jsonb", nullable: true })
|
|
4954
|
+
], StripeTransaction.prototype, "billingDetails", 2);
|
|
4955
|
+
__decorateClass([
|
|
4956
|
+
(0, import_typeorm55.Column)({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
4957
|
+
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
4933
4958
|
StripeTransaction = __decorateClass([
|
|
4934
4959
|
(0, import_typeorm55.Entity)("stripe_transactions")
|
|
4935
4960
|
], StripeTransaction);
|
package/dist/index.mjs
CHANGED
|
@@ -2455,6 +2455,19 @@ __decorateClass([
|
|
|
2455
2455
|
ManyToOne12(() => User),
|
|
2456
2456
|
JoinColumn12({ name: "user_id" })
|
|
2457
2457
|
], InterviewInvite.prototype, "user", 2);
|
|
2458
|
+
__decorateClass([
|
|
2459
|
+
Column14({
|
|
2460
|
+
name: "job_id",
|
|
2461
|
+
type: "integer",
|
|
2462
|
+
comment: "Column to specify job id",
|
|
2463
|
+
nullable: true
|
|
2464
|
+
}),
|
|
2465
|
+
Index9()
|
|
2466
|
+
], InterviewInvite.prototype, "jobId", 2);
|
|
2467
|
+
__decorateClass([
|
|
2468
|
+
ManyToOne12(() => Job),
|
|
2469
|
+
JoinColumn12({ name: "job_id" })
|
|
2470
|
+
], InterviewInvite.prototype, "job", 2);
|
|
2458
2471
|
__decorateClass([
|
|
2459
2472
|
Column14({
|
|
2460
2473
|
name: "full_name",
|
|
@@ -3831,6 +3844,9 @@ __decorateClass([
|
|
|
3831
3844
|
__decorateClass([
|
|
3832
3845
|
Column28({ name: "is_interview_created", type: "boolean", default: false })
|
|
3833
3846
|
], Job.prototype, "isInterviewCreated", 2);
|
|
3847
|
+
__decorateClass([
|
|
3848
|
+
OneToMany10(() => InterviewInvite, (interviewInvite) => interviewInvite.job, { cascade: true })
|
|
3849
|
+
], Job.prototype, "interviewInvites", 2);
|
|
3834
3850
|
__decorateClass([
|
|
3835
3851
|
OneToMany10(() => JobSkill, (jobSkill) => jobSkill.job, { cascade: true })
|
|
3836
3852
|
], Job.prototype, "jobSkills", 2);
|
|
@@ -4890,7 +4906,7 @@ var StripeTransactionStatusEnum = /* @__PURE__ */ ((StripeTransactionStatusEnum2
|
|
|
4890
4906
|
return StripeTransactionStatusEnum2;
|
|
4891
4907
|
})(StripeTransactionStatusEnum || {});
|
|
4892
4908
|
var StripeTransaction = class extends BaseEntity {
|
|
4893
|
-
// Full Stripe
|
|
4909
|
+
// Full Stripe payment method details response
|
|
4894
4910
|
};
|
|
4895
4911
|
__decorateClass([
|
|
4896
4912
|
Column55({ name: "user_id", type: "integer", nullable: true }),
|
|
@@ -4942,6 +4958,9 @@ __decorateClass([
|
|
|
4942
4958
|
__decorateClass([
|
|
4943
4959
|
Column55({ name: "stripe_charge_id", type: "varchar", nullable: true })
|
|
4944
4960
|
], StripeTransaction.prototype, "stripeChargeId", 2);
|
|
4961
|
+
__decorateClass([
|
|
4962
|
+
Column55({ name: "stripe_receipt_url", type: "varchar", nullable: true })
|
|
4963
|
+
], StripeTransaction.prototype, "stripeReceiptUrl", 2);
|
|
4945
4964
|
__decorateClass([
|
|
4946
4965
|
Column55({ name: "stripe_balance_transaction_id", type: "varchar", nullable: true })
|
|
4947
4966
|
], StripeTransaction.prototype, "stripeBalanceTransactionId", 2);
|
|
@@ -4957,6 +4976,12 @@ __decorateClass([
|
|
|
4957
4976
|
__decorateClass([
|
|
4958
4977
|
Column55({ name: "raw_session_response", type: "jsonb", nullable: true })
|
|
4959
4978
|
], StripeTransaction.prototype, "rawSessionResponse", 2);
|
|
4979
|
+
__decorateClass([
|
|
4980
|
+
Column55({ name: "billing_details", type: "jsonb", nullable: true })
|
|
4981
|
+
], StripeTransaction.prototype, "billingDetails", 2);
|
|
4982
|
+
__decorateClass([
|
|
4983
|
+
Column55({ name: "payment_method_details", type: "jsonb", nullable: true })
|
|
4984
|
+
], StripeTransaction.prototype, "paymentMethodDetails", 2);
|
|
4960
4985
|
StripeTransaction = __decorateClass([
|
|
4961
4986
|
Entity54("stripe_transactions")
|
|
4962
4987
|
], StripeTransaction);
|