@experts_hub/shared 1.0.379 → 1.0.380

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;
@@ -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;
@@ -1390,8 +1392,10 @@ declare enum StripeWalletTransactionTypeEnum {
1390
1392
  }
1391
1393
  declare enum StripeWalletTransactionStatusEnum {
1392
1394
  PENDING = "PENDING",
1395
+ PROCESSING = "PROCESSING",
1393
1396
  SUCCESS = "SUCCESS",
1394
- FAILED = "FAILED"
1397
+ FAILED = "FAILED",
1398
+ EXPIRED = "EXPIRED"
1395
1399
  }
1396
1400
  declare class StripeWalletTransaction extends BaseEntity {
1397
1401
  walletId: number;
@@ -1400,7 +1404,8 @@ declare class StripeWalletTransaction extends BaseEntity {
1400
1404
  currency: string;
1401
1405
  type: StripeWalletTransactionTypeEnum;
1402
1406
  status: StripeWalletTransactionStatusEnum;
1403
- stripeReferenceId: string;
1407
+ stripeSessionId: string;
1408
+ stripePaymentIntentId: string;
1404
1409
  description: string;
1405
1410
  }
1406
1411
 
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;
@@ -1390,8 +1392,10 @@ declare enum StripeWalletTransactionTypeEnum {
1390
1392
  }
1391
1393
  declare enum StripeWalletTransactionStatusEnum {
1392
1394
  PENDING = "PENDING",
1395
+ PROCESSING = "PROCESSING",
1393
1396
  SUCCESS = "SUCCESS",
1394
- FAILED = "FAILED"
1397
+ FAILED = "FAILED",
1398
+ EXPIRED = "EXPIRED"
1395
1399
  }
1396
1400
  declare class StripeWalletTransaction extends BaseEntity {
1397
1401
  walletId: number;
@@ -1400,7 +1404,8 @@ declare class StripeWalletTransaction extends BaseEntity {
1400
1404
  currency: string;
1401
1405
  type: StripeWalletTransactionTypeEnum;
1402
1406
  status: StripeWalletTransactionStatusEnum;
1403
- stripeReferenceId: string;
1407
+ stripeSessionId: string;
1408
+ stripePaymentIntentId: string;
1404
1409
  description: string;
1405
1410
  }
1406
1411
 
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";
@@ -3031,6 +3032,9 @@ __decorateClass([
3031
3032
  nullable: true
3032
3033
  })
3033
3034
  ], Contract.prototype, "endDate", 2);
3035
+ __decorateClass([
3036
+ (0, import_typeorm21.Column)({ name: "original_document_url", type: "varchar", nullable: true })
3037
+ ], Contract.prototype, "originalDocumentUrl", 2);
3034
3038
  __decorateClass([
3035
3039
  (0, import_typeorm21.Column)({ name: "contract_document_url", type: "varchar", nullable: true })
3036
3040
  ], Contract.prototype, "contractDocumentUrl", 2);
@@ -4098,8 +4102,10 @@ var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionT
4098
4102
  })(StripeWalletTransactionTypeEnum || {});
4099
4103
  var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4100
4104
  StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4105
+ StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4101
4106
  StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4102
4107
  StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4108
+ StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4103
4109
  return StripeWalletTransactionStatusEnum2;
4104
4110
  })(StripeWalletTransactionStatusEnum || {});
4105
4111
  var StripeWalletTransaction = class extends BaseEntity {
@@ -4125,8 +4131,11 @@ __decorateClass([
4125
4131
  (0, import_typeorm47.Column)({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4126
4132
  ], StripeWalletTransaction.prototype, "status", 2);
4127
4133
  __decorateClass([
4128
- (0, import_typeorm47.Column)({ name: "stripe_reference_id", type: "varchar", nullable: true })
4129
- ], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
4134
+ (0, import_typeorm47.Column)({ name: "stripe_session_id", type: "varchar", nullable: true })
4135
+ ], StripeWalletTransaction.prototype, "stripeSessionId", 2);
4136
+ __decorateClass([
4137
+ (0, import_typeorm47.Column)({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4138
+ ], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
4130
4139
  __decorateClass([
4131
4140
  (0, import_typeorm47.Column)({ name: "description", type: "text", nullable: true })
4132
4141
  ], 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";
@@ -2975,6 +2976,9 @@ __decorateClass([
2975
2976
  nullable: true
2976
2977
  })
2977
2978
  ], Contract.prototype, "endDate", 2);
2979
+ __decorateClass([
2980
+ Column21({ name: "original_document_url", type: "varchar", nullable: true })
2981
+ ], Contract.prototype, "originalDocumentUrl", 2);
2978
2982
  __decorateClass([
2979
2983
  Column21({ name: "contract_document_url", type: "varchar", nullable: true })
2980
2984
  ], Contract.prototype, "contractDocumentUrl", 2);
@@ -4140,8 +4144,10 @@ var StripeWalletTransactionTypeEnum = /* @__PURE__ */ ((StripeWalletTransactionT
4140
4144
  })(StripeWalletTransactionTypeEnum || {});
4141
4145
  var StripeWalletTransactionStatusEnum = /* @__PURE__ */ ((StripeWalletTransactionStatusEnum2) => {
4142
4146
  StripeWalletTransactionStatusEnum2["PENDING"] = "PENDING";
4147
+ StripeWalletTransactionStatusEnum2["PROCESSING"] = "PROCESSING";
4143
4148
  StripeWalletTransactionStatusEnum2["SUCCESS"] = "SUCCESS";
4144
4149
  StripeWalletTransactionStatusEnum2["FAILED"] = "FAILED";
4150
+ StripeWalletTransactionStatusEnum2["EXPIRED"] = "EXPIRED";
4145
4151
  return StripeWalletTransactionStatusEnum2;
4146
4152
  })(StripeWalletTransactionStatusEnum || {});
4147
4153
  var StripeWalletTransaction = class extends BaseEntity {
@@ -4167,8 +4173,11 @@ __decorateClass([
4167
4173
  Column47({ name: "status", type: "enum", enum: StripeWalletTransactionStatusEnum, default: "PENDING" /* PENDING */ })
4168
4174
  ], StripeWalletTransaction.prototype, "status", 2);
4169
4175
  __decorateClass([
4170
- Column47({ name: "stripe_reference_id", type: "varchar", nullable: true })
4171
- ], StripeWalletTransaction.prototype, "stripeReferenceId", 2);
4176
+ Column47({ name: "stripe_session_id", type: "varchar", nullable: true })
4177
+ ], StripeWalletTransaction.prototype, "stripeSessionId", 2);
4178
+ __decorateClass([
4179
+ Column47({ name: "stripe_payment_intent_id", type: "varchar", nullable: true })
4180
+ ], StripeWalletTransaction.prototype, "stripePaymentIntentId", 2);
4172
4181
  __decorateClass([
4173
4182
  Column47({ name: "description", type: "text", nullable: true })
4174
4183
  ], 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.380",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",