@experts_hub/shared 1.0.379 → 1.0.381

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.
@@ -2,6 +2,7 @@ import { BaseEntity } from "./base.entity";
2
2
  import { Job } from "./job.entity";
3
3
  import { User } from "./user.entity";
4
4
  export declare enum ContractStatusEnum {
5
+ GENERATED = "GENERATED",
5
6
  ACTIVE = "ACTIVE",
6
7
  SENT = "SENT",
7
8
  SIGNED = "SIGNED",
@@ -29,6 +30,7 @@ export declare class Contract extends BaseEntity {
29
30
  type: ContractTypeEnum;
30
31
  startDate: Date;
31
32
  endDate: Date;
33
+ originalDocumentUrl: string;
32
34
  contractDocumentUrl: string;
33
35
  clientSignedAt: Date;
34
36
  freelancerSignedAt: Date;
@@ -36,4 +38,5 @@ export declare class Contract extends BaseEntity {
36
38
  rejectReason: string;
37
39
  isWorkContractSent: boolean;
38
40
  isEscrowDeposited: boolean;
41
+ signaturePositions: any;
39
42
  }
@@ -9,8 +9,10 @@ export declare enum StripeWalletTransactionTypeEnum {
9
9
  }
10
10
  export declare enum StripeWalletTransactionStatusEnum {
11
11
  PENDING = "PENDING",
12
+ PROCESSING = "PROCESSING",
12
13
  SUCCESS = "SUCCESS",
13
- FAILED = "FAILED"
14
+ FAILED = "FAILED",
15
+ EXPIRED = "EXPIRED"
14
16
  }
15
17
  export declare class StripeWalletTransaction extends BaseEntity {
16
18
  walletId: number;
@@ -19,6 +21,7 @@ export declare class StripeWalletTransaction extends BaseEntity {
19
21
  currency: string;
20
22
  type: StripeWalletTransactionTypeEnum;
21
23
  status: StripeWalletTransactionStatusEnum;
22
- stripeReferenceId: string;
24
+ stripeSessionId: string;
25
+ stripePaymentIntentId: string;
23
26
  description: string;
24
27
  }
package/dist/index.d.mts CHANGED
@@ -1032,6 +1032,7 @@ declare class JobRecommendation {
1032
1032
  }
1033
1033
 
1034
1034
  declare enum ContractStatusEnum {
1035
+ GENERATED = "GENERATED",
1035
1036
  ACTIVE = "ACTIVE",
1036
1037
  SENT = "SENT",
1037
1038
  SIGNED = "SIGNED",
@@ -1059,6 +1060,7 @@ declare class Contract extends BaseEntity {
1059
1060
  type: ContractTypeEnum;
1060
1061
  startDate: Date;
1061
1062
  endDate: Date;
1063
+ originalDocumentUrl: string;
1062
1064
  contractDocumentUrl: string;
1063
1065
  clientSignedAt: Date;
1064
1066
  freelancerSignedAt: Date;
@@ -1066,6 +1068,7 @@ declare class Contract extends BaseEntity {
1066
1068
  rejectReason: string;
1067
1069
  isWorkContractSent: boolean;
1068
1070
  isEscrowDeposited: boolean;
1071
+ signaturePositions: any;
1069
1072
  }
1070
1073
 
1071
1074
  declare enum JobLocationEnum {
@@ -1390,8 +1393,10 @@ declare enum StripeWalletTransactionTypeEnum {
1390
1393
  }
1391
1394
  declare enum StripeWalletTransactionStatusEnum {
1392
1395
  PENDING = "PENDING",
1396
+ PROCESSING = "PROCESSING",
1393
1397
  SUCCESS = "SUCCESS",
1394
- FAILED = "FAILED"
1398
+ FAILED = "FAILED",
1399
+ EXPIRED = "EXPIRED"
1395
1400
  }
1396
1401
  declare class StripeWalletTransaction extends BaseEntity {
1397
1402
  walletId: number;
@@ -1400,7 +1405,8 @@ declare class StripeWalletTransaction extends BaseEntity {
1400
1405
  currency: string;
1401
1406
  type: StripeWalletTransactionTypeEnum;
1402
1407
  status: StripeWalletTransactionStatusEnum;
1403
- stripeReferenceId: string;
1408
+ stripeSessionId: string;
1409
+ stripePaymentIntentId: string;
1404
1410
  description: string;
1405
1411
  }
1406
1412
 
package/dist/index.d.ts CHANGED
@@ -1032,6 +1032,7 @@ declare class JobRecommendation {
1032
1032
  }
1033
1033
 
1034
1034
  declare enum ContractStatusEnum {
1035
+ GENERATED = "GENERATED",
1035
1036
  ACTIVE = "ACTIVE",
1036
1037
  SENT = "SENT",
1037
1038
  SIGNED = "SIGNED",
@@ -1059,6 +1060,7 @@ declare class Contract extends BaseEntity {
1059
1060
  type: ContractTypeEnum;
1060
1061
  startDate: Date;
1061
1062
  endDate: Date;
1063
+ originalDocumentUrl: string;
1062
1064
  contractDocumentUrl: string;
1063
1065
  clientSignedAt: Date;
1064
1066
  freelancerSignedAt: Date;
@@ -1066,6 +1068,7 @@ declare class Contract extends BaseEntity {
1066
1068
  rejectReason: string;
1067
1069
  isWorkContractSent: boolean;
1068
1070
  isEscrowDeposited: boolean;
1071
+ signaturePositions: any;
1069
1072
  }
1070
1073
 
1071
1074
  declare enum JobLocationEnum {
@@ -1390,8 +1393,10 @@ declare enum StripeWalletTransactionTypeEnum {
1390
1393
  }
1391
1394
  declare enum StripeWalletTransactionStatusEnum {
1392
1395
  PENDING = "PENDING",
1396
+ PROCESSING = "PROCESSING",
1393
1397
  SUCCESS = "SUCCESS",
1394
- FAILED = "FAILED"
1398
+ FAILED = "FAILED",
1399
+ EXPIRED = "EXPIRED"
1395
1400
  }
1396
1401
  declare class StripeWalletTransaction extends BaseEntity {
1397
1402
  walletId: number;
@@ -1400,7 +1405,8 @@ declare class StripeWalletTransaction extends BaseEntity {
1400
1405
  currency: string;
1401
1406
  type: StripeWalletTransactionTypeEnum;
1402
1407
  status: StripeWalletTransactionStatusEnum;
1403
- stripeReferenceId: string;
1408
+ stripeSessionId: string;
1409
+ stripePaymentIntentId: string;
1404
1410
  description: string;
1405
1411
  }
1406
1412
 
package/dist/index.js CHANGED
@@ -2953,6 +2953,7 @@ JobRecommendation = __decorateClass([
2953
2953
  // src/entities/contract.entity.ts
2954
2954
  var import_typeorm21 = require("typeorm");
2955
2955
  var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
2956
+ ContractStatusEnum2["GENERATED"] = "GENERATED";
2956
2957
  ContractStatusEnum2["ACTIVE"] = "ACTIVE";
2957
2958
  ContractStatusEnum2["SENT"] = "SENT";
2958
2959
  ContractStatusEnum2["SIGNED"] = "SIGNED";
@@ -2970,6 +2971,7 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
2970
2971
  return ContractTypeEnum2;
2971
2972
  })(ContractTypeEnum || {});
2972
2973
  var Contract = class extends BaseEntity {
2974
+ // stores the positions JSON
2973
2975
  };
2974
2976
  __decorateClass([
2975
2977
  (0, import_typeorm21.Column)({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
@@ -3031,6 +3033,9 @@ __decorateClass([
3031
3033
  nullable: true
3032
3034
  })
3033
3035
  ], Contract.prototype, "endDate", 2);
3036
+ __decorateClass([
3037
+ (0, import_typeorm21.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3038
+ ], Contract.prototype, "originalDocumentUrl", 2);
3034
3039
  __decorateClass([
3035
3040
  (0, import_typeorm21.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3036
3041
  ], Contract.prototype, "contractDocumentUrl", 2);
@@ -3064,6 +3069,9 @@ __decorateClass([
3064
3069
  __decorateClass([
3065
3070
  (0, import_typeorm21.Column)({ name: "is_escrow_deposited", type: "boolean", default: false })
3066
3071
  ], Contract.prototype, "isEscrowDeposited", 2);
3072
+ __decorateClass([
3073
+ (0, import_typeorm21.Column)({ name: "signature_positions", type: "jsonb", nullable: true })
3074
+ ], Contract.prototype, "signaturePositions", 2);
3067
3075
  Contract = __decorateClass([
3068
3076
  (0, import_typeorm21.Entity)("contracts")
3069
3077
  ], Contract);
@@ -4098,8 +4106,10 @@ var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionT
4098
4106
  })(StripeWalletTransactionTypeEnum || {});
4099
4107
  var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4100
4108
  StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4109
+ StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4101
4110
  StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4102
4111
  StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4112
+ StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4103
4113
  return StripeWalletTransactionStatusEnum2;
4104
4114
  })(StripeWalletTransactionStatusEnum || {});
4105
4115
  var StripeWalletTransaction = class extends BaseEntity {
@@ -4125,8 +4135,11 @@ __decorateClass([
4125
4135
  (0, import_typeorm47.Column)({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4126
4136
  ], StripeWalletTransaction.prototype, "status", 2);
4127
4137
  __decorateClass([
4128
- (0, import_typeorm47.Column)({ name: "stripe_reference_id", type: "varchar", nullable: true })
4129
- ], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
4138
+ (0, import_typeorm47.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
4139
+ ], StripeWalletTransaction.prototype, "stripeSessionId", 2);
4140
+ __decorateClass([
4141
+ (0, import_typeorm47.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4142
+ ], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
4130
4143
  __decorateClass([
4131
4144
  (0, import_typeorm47.Column)({ name: "description", type: "text", nullable: true })
4132
4145
  ], StripeWalletTransaction.prototype, "description", 2);
package/dist/index.mjs CHANGED
@@ -2897,6 +2897,7 @@ JobRecommendation = __decorateClass([
2897
2897
  // src/entities/contract.entity.ts
2898
2898
  import { Entity as Entity20, Column as Column21, Index as Index14, ManyToOne as ManyToOne19, JoinColumn as JoinColumn19 } from "typeorm";
2899
2899
  var ContractStatusEnum = /* @__PURE__ */ ((ContractStatusEnum2) => {
2900
+ ContractStatusEnum2["GENERATED"] = "GENERATED";
2900
2901
  ContractStatusEnum2["ACTIVE"] = "ACTIVE";
2901
2902
  ContractStatusEnum2["SENT"] = "SENT";
2902
2903
  ContractStatusEnum2["SIGNED"] = "SIGNED";
@@ -2914,6 +2915,7 @@ var ContractTypeEnum = /* @__PURE__ */ ((ContractTypeEnum2) => {
2914
2915
  return ContractTypeEnum2;
2915
2916
  })(ContractTypeEnum || {});
2916
2917
  var Contract = class extends BaseEntity {
2918
+ // stores the positions JSON
2917
2919
  };
2918
2920
  __decorateClass([
2919
2921
  Column21({ name: "contract_unique_id", type: "varchar", nullable: true, unique: true })
@@ -2975,6 +2977,9 @@ __decorateClass([
2975
2977
  nullable: true
2976
2978
  })
2977
2979
  ], Contract.prototype, "endDate", 2);
2980
+ __decorateClass([
2981
+ Column21({ name: "original_document_url", type: "varchar", nullable: true })
2982
+ ], Contract.prototype, "originalDocumentUrl", 2);
2978
2983
  __decorateClass([
2979
2984
  Column21({ name: "contract_document_url", type: "varchar", nullable: true })
2980
2985
  ], Contract.prototype, "contractDocumentUrl", 2);
@@ -3008,6 +3013,9 @@ __decorateClass([
3008
3013
  __decorateClass([
3009
3014
  Column21({ name: "is_escrow_deposited", type: "boolean", default: false })
3010
3015
  ], Contract.prototype, "isEscrowDeposited", 2);
3016
+ __decorateClass([
3017
+ Column21({ name: "signature_positions", type: "jsonb", nullable: true })
3018
+ ], Contract.prototype, "signaturePositions", 2);
3011
3019
  Contract = __decorateClass([
3012
3020
  Entity20("contracts")
3013
3021
  ], Contract);
@@ -4140,8 +4148,10 @@ var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionT
4140
4148
  })(StripeWalletTransactionTypeEnum || {});
4141
4149
  var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4142
4150
  StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4151
+ StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4143
4152
  StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4144
4153
  StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4154
+ StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4145
4155
  return StripeWalletTransactionStatusEnum2;
4146
4156
  })(StripeWalletTransactionStatusEnum || {});
4147
4157
  var StripeWalletTransaction = class extends BaseEntity {
@@ -4167,8 +4177,11 @@ __decorateClass([
4167
4177
  Column47({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4168
4178
  ], StripeWalletTransaction.prototype, "status", 2);
4169
4179
  __decorateClass([
4170
- Column47({ name: "stripe_reference_id", type: "varchar", nullable: true })
4171
- ], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
4180
+ Column47({ name: "stripe_session_id", type: "varchar", nullable: true })
4181
+ ], StripeWalletTransaction.prototype, "stripeSessionId", 2);
4182
+ __decorateClass([
4183
+ Column47({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4184
+ ], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
4172
4185
  __decorateClass([
4173
4186
  Column47({ name: "description", type: "text", nullable: true })
4174
4187
  ], StripeWalletTransaction.prototype, "description", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.379",
3
+ "version": "1.0.381",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",