@duvdu-v1/duvdu 1.1.319 → 1.1.321

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.
@@ -36,6 +36,7 @@ export interface IFundedTransaction {
36
36
  createdBy: Types.ObjectId;
37
37
  withdrawMethod: Types.ObjectId;
38
38
  contract: Types.ObjectId;
39
+ ticketNumber: string;
39
40
  }
40
41
  export declare const FundedTransaction: import("mongoose").Model<IFundedTransaction, {}, {}, {}, import("mongoose").Document<unknown, {}, IFundedTransaction> & IFundedTransaction & {
41
42
  _id: Types.ObjectId;
@@ -17,4 +17,5 @@ exports.FundedTransaction = (0, mongoose_1.model)(model_names_1.MODELS.fundedTra
17
17
  contract: { type: mongoose_1.Schema.Types.ObjectId },
18
18
  status: { type: String, default: FundedTransactionStatus.PENDING },
19
19
  withdrawMethod: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.withdrawMethod },
20
+ ticketNumber: { type: String, default: null },
20
21
  }, { timestamps: true, collection: model_names_1.MODELS.fundedTransaction }));
@@ -47,6 +47,7 @@ export interface ITransaction {
47
47
  fundAttachment: string[];
48
48
  fundingAmount: number;
49
49
  fundedBy: Types.ObjectId;
50
+ ticketNumber: string;
50
51
  }
51
52
  export declare const Transaction: import("mongoose").Model<ITransaction, {}, {}, {}, import("mongoose").Document<unknown, {}, ITransaction> & ITransaction & {
52
53
  _id: Types.ObjectId;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Transaction = exports.TransactionType = exports.TransactionStatus = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
+ const all_contracts_model_1 = require("./all-contracts.model");
5
6
  const model_names_1 = require("../types/model-names");
6
7
  var TransactionStatus;
7
8
  (function (TransactionStatus) {
@@ -29,4 +30,5 @@ exports.Transaction = (0, mongoose_1.model)(model_names_1.MODELS.transaction, ne
29
30
  fundAttachment: { type: [String], default: [] },
30
31
  fundingAmount: { type: Number, default: 0 },
31
32
  fundedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
33
+ ticketNumber: { type: String, default: all_contracts_model_1.generateTicketNumber, unique: true, sparse: true },
32
34
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.319",
3
+ "version": "1.1.321",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [