@duvdu-v1/duvdu 1.1.309 → 1.1.311
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.
|
@@ -34,6 +34,7 @@ export interface IFundedTransaction {
|
|
|
34
34
|
fundAttachment: string;
|
|
35
35
|
status: FundedTransactionStatus;
|
|
36
36
|
createdBy: Types.ObjectId;
|
|
37
|
+
withdrawMethod: Types.ObjectId;
|
|
37
38
|
}
|
|
38
39
|
export declare const FundedTransaction: import("mongoose").Model<IFundedTransaction, {}, {}, {}, import("mongoose").Document<unknown, {}, IFundedTransaction> & IFundedTransaction & {
|
|
39
40
|
_id: Types.ObjectId;
|
|
@@ -15,4 +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
|
status: { type: String, default: FundedTransactionStatus.PENDING },
|
|
18
|
+
withdrawMethod: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.withdrawMethod },
|
|
18
19
|
}, { timestamps: true, collection: model_names_1.MODELS.fundedTransaction }));
|
|
@@ -24,8 +24,14 @@
|
|
|
24
24
|
/// <reference types="mongoose" />
|
|
25
25
|
/// <reference types="mongoose/types/inferschematype" />
|
|
26
26
|
export interface IPage {
|
|
27
|
-
title:
|
|
28
|
-
|
|
27
|
+
title: {
|
|
28
|
+
ar: string;
|
|
29
|
+
en: string;
|
|
30
|
+
};
|
|
31
|
+
content: {
|
|
32
|
+
ar: string;
|
|
33
|
+
en: string;
|
|
34
|
+
};
|
|
29
35
|
}
|
|
30
36
|
export declare const Pages: import("mongoose").Model<IPage, {}, {}, {}, import("mongoose").Document<unknown, {}, IPage> & IPage & {
|
|
31
37
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -4,8 +4,8 @@ exports.Pages = void 0;
|
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const model_names_1 = require("../types/model-names");
|
|
6
6
|
exports.Pages = (0, mongoose_1.model)(model_names_1.MODELS.page, new mongoose_1.Schema({
|
|
7
|
-
title: { type: String, default: null },
|
|
8
|
-
content: { type: String, default: null },
|
|
7
|
+
title: { ar: { type: String, default: null }, en: { type: String, default: null } },
|
|
8
|
+
content: { ar: { type: String, default: null }, en: { type: String, default: null } },
|
|
9
9
|
}, {
|
|
10
10
|
timestamps: true,
|
|
11
11
|
collection: model_names_1.MODELS.page,
|