@duvdu-v1/duvdu 1.1.338 → 1.1.340

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,7 +36,7 @@ export interface IWithdrawMethod {
36
36
  method: WithdrawMethod;
37
37
  name: string;
38
38
  number: string;
39
- iban: string;
39
+ iban: string | null;
40
40
  isDeleted: boolean;
41
41
  default: boolean;
42
42
  status: WithdrawMethodStatus;
@@ -13,13 +13,14 @@ var WithdrawMethodStatus;
13
13
  WithdrawMethodStatus["ACTIVE"] = "active";
14
14
  WithdrawMethodStatus["INACTIVE"] = "inactive";
15
15
  })(WithdrawMethodStatus || (exports.WithdrawMethodStatus = WithdrawMethodStatus = {}));
16
+ //
16
17
  exports.WithdrawMethodModel = (0, mongoose_1.model)(model_names_1.MODELS.withdrawMethod, new mongoose_1.Schema({
17
18
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
18
19
  method: { type: String, enum: WithdrawMethod },
19
20
  name: { type: String, default: null },
20
21
  number: { type: String, default: null },
21
- isDeleted: { type: Boolean, default: false },
22
22
  iban: { type: String, default: null },
23
+ isDeleted: { type: Boolean, default: false },
23
24
  default: { type: Boolean, default: false },
24
25
  status: { type: String, enum: WithdrawMethodStatus, default: WithdrawMethodStatus.ACTIVE },
25
26
  }));
@@ -8,6 +8,7 @@ export declare enum PERMISSIONS {
8
8
  blockUser = "block-user",
9
9
  unBlockUser = "un-block-user",
10
10
  listUsers = "list-users",
11
+ listAdmins = "list-admins",
11
12
  removeUser = "remove-user",
12
13
  createRoleHandler = "create-role",
13
14
  updateRoleHandler = "update-role",
@@ -14,6 +14,7 @@ var PERMISSIONS;
14
14
  PERMISSIONS["blockUser"] = "block-user";
15
15
  PERMISSIONS["unBlockUser"] = "un-block-user";
16
16
  PERMISSIONS["listUsers"] = "list-users";
17
+ PERMISSIONS["listAdmins"] = "list-admins";
17
18
  PERMISSIONS["removeUser"] = "remove-user";
18
19
  // roles
19
20
  PERMISSIONS["createRoleHandler"] = "create-role";
@@ -189,6 +190,7 @@ exports.permissions = {
189
190
  PERMISSIONS.listTransactions,
190
191
  PERMISSIONS.updateFundTransactions,
191
192
  PERMISSIONS.listUserAnalysis,
193
+ PERMISSIONS.listAdmins,
192
194
  ],
193
195
  category: [
194
196
  PERMISSIONS.createCategory,
@@ -212,6 +214,7 @@ exports.permissions = {
212
214
  PERMISSIONS.blockUser,
213
215
  PERMISSIONS.unBlockUser,
214
216
  PERMISSIONS.removeUser,
217
+ PERMISSIONS.listAdmins,
215
218
  ],
216
219
  messages: [PERMISSIONS.listMessagesFromTo, PERMISSIONS.sendNotificationToUsers],
217
220
  projects: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.338",
3
+ "version": "1.1.340",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [