@duvdu-v1/duvdu 1.1.280 → 1.1.281

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.
@@ -27,6 +27,10 @@ export declare enum WithdrawMethod {
27
27
  WALLET = "wallet",
28
28
  BANK = "bank"
29
29
  }
30
+ export declare enum WithdrawMethodStatus {
31
+ ACTIVE = "active",
32
+ INACTIVE = "inactive"
33
+ }
30
34
  export interface IWithdrawMethod {
31
35
  user: Types.ObjectId;
32
36
  method: WithdrawMethod;
@@ -34,6 +38,7 @@ export interface IWithdrawMethod {
34
38
  number: string;
35
39
  isDeleted: boolean;
36
40
  default: boolean;
41
+ status: WithdrawMethodStatus;
37
42
  }
38
43
  export declare const WithdrawMethodModel: import("mongoose").Model<IWithdrawMethod, {}, {}, {}, import("mongoose").Document<unknown, {}, IWithdrawMethod> & IWithdrawMethod & {
39
44
  _id: Types.ObjectId;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.WithdrawMethodModel = exports.WithdrawMethod = void 0;
3
+ exports.WithdrawMethodModel = exports.WithdrawMethodStatus = exports.WithdrawMethod = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const model_names_1 = require("../types/model-names");
6
6
  var WithdrawMethod;
@@ -8,6 +8,11 @@ var WithdrawMethod;
8
8
  WithdrawMethod["WALLET"] = "wallet";
9
9
  WithdrawMethod["BANK"] = "bank";
10
10
  })(WithdrawMethod || (exports.WithdrawMethod = WithdrawMethod = {}));
11
+ var WithdrawMethodStatus;
12
+ (function (WithdrawMethodStatus) {
13
+ WithdrawMethodStatus["ACTIVE"] = "active";
14
+ WithdrawMethodStatus["INACTIVE"] = "inactive";
15
+ })(WithdrawMethodStatus || (exports.WithdrawMethodStatus = WithdrawMethodStatus = {}));
11
16
  exports.WithdrawMethodModel = (0, mongoose_1.model)(model_names_1.MODELS.withdrawMethod, new mongoose_1.Schema({
12
17
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
13
18
  method: { type: String, enum: WithdrawMethod },
@@ -15,4 +20,5 @@ exports.WithdrawMethodModel = (0, mongoose_1.model)(model_names_1.MODELS.withdra
15
20
  number: { type: String, default: null },
16
21
  isDeleted: { type: Boolean, default: false },
17
22
  default: { type: Boolean, default: false },
23
+ status: { type: String, enum: WithdrawMethodStatus, default: WithdrawMethodStatus.ACTIVE },
18
24
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.280",
3
+ "version": "1.1.281",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [