@duvdu-v1/duvdu 1.1.306 → 1.1.308

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.
@@ -33,7 +33,6 @@ export interface IFundedTransaction {
33
33
  fundAmount: number;
34
34
  fundAttachment: string;
35
35
  fundingAmount: number;
36
- transaction: Types.ObjectId;
37
36
  status: FundedTransactionStatus;
38
37
  createdBy: Types.ObjectId;
39
38
  }
@@ -15,6 +15,5 @@ exports.FundedTransaction = (0, mongoose_1.model)(model_names_1.MODELS.fundedTra
15
15
  fundAmount: { type: Number, default: 0 },
16
16
  fundAttachment: { type: String, default: null },
17
17
  fundingAmount: { type: Number, default: 0 },
18
- transaction: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.transaction },
19
18
  status: { type: String, default: FundedTransactionStatus.PENDING },
20
19
  }, { timestamps: true, collection: model_names_1.MODELS.fundedTransaction }));
@@ -46,6 +46,7 @@ export interface ITransaction {
46
46
  fundedAt: Date;
47
47
  fundAttachment: string[];
48
48
  fundingAmount: number;
49
+ fundedBy: Types.ObjectId;
49
50
  }
50
51
  export declare const Transaction: import("mongoose").Model<ITransaction, {}, {}, {}, import("mongoose").Document<unknown, {}, ITransaction> & ITransaction & {
51
52
  _id: Types.ObjectId;
@@ -28,4 +28,5 @@ exports.Transaction = (0, mongoose_1.model)(model_names_1.MODELS.transaction, ne
28
28
  fundedAt: { type: Date, default: null },
29
29
  fundAttachment: { type: [String], default: [] },
30
30
  fundingAmount: { type: Number, default: 0 },
31
+ fundedBy: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
31
32
  }));
@@ -47,6 +47,8 @@ export declare enum PERMISSIONS {
47
47
  listPages = "list-pages",
48
48
  listTransactions = "list-transactions",
49
49
  fundTransactions = "fund-transactions",
50
+ createFundTransactions = "create-fund-transactions",
51
+ listFundTransactions = "list-fund-transactions",
50
52
  bookmarks = "bookmarks",
51
53
  createTicket = "create ticket",
52
54
  getAllTickets = "get-all-tickets",
@@ -65,6 +65,8 @@ var PERMISSIONS;
65
65
  // transactions
66
66
  PERMISSIONS["listTransactions"] = "list-transactions";
67
67
  PERMISSIONS["fundTransactions"] = "fund-transactions";
68
+ PERMISSIONS["createFundTransactions"] = "create-fund-transactions";
69
+ PERMISSIONS["listFundTransactions"] = "list-fund-transactions";
68
70
  PERMISSIONS["bookmarks"] = "bookmarks";
69
71
  PERMISSIONS["createTicket"] = "create ticket";
70
72
  PERMISSIONS["getAllTickets"] = "get-all-tickets";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.306",
3
+ "version": "1.1.308",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [