@duvdu-v1/duvdu 1.1.310 → 1.1.312

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.
@@ -24,8 +24,14 @@
24
24
  /// <reference types="mongoose" />
25
25
  /// <reference types="mongoose/types/inferschematype" />
26
26
  export interface IPage {
27
- title: string;
28
- content: string;
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,
@@ -49,6 +49,10 @@ export declare enum PERMISSIONS {
49
49
  fundTransactions = "fund-transactions",
50
50
  createFundTransactions = "create-fund-transactions",
51
51
  listFundTransactions = "list-fund-transactions",
52
+ createSetting = "create-setting",
53
+ updateSetting = "update-setting",
54
+ deleteSetting = "delete-setting",
55
+ listSettings = "list-settings",
52
56
  bookmarks = "bookmarks",
53
57
  createTicket = "create ticket",
54
58
  getAllTickets = "get-all-tickets",
@@ -67,6 +67,11 @@ var PERMISSIONS;
67
67
  PERMISSIONS["fundTransactions"] = "fund-transactions";
68
68
  PERMISSIONS["createFundTransactions"] = "create-fund-transactions";
69
69
  PERMISSIONS["listFundTransactions"] = "list-fund-transactions";
70
+ // settings
71
+ PERMISSIONS["createSetting"] = "create-setting";
72
+ PERMISSIONS["updateSetting"] = "update-setting";
73
+ PERMISSIONS["deleteSetting"] = "delete-setting";
74
+ PERMISSIONS["listSettings"] = "list-settings";
70
75
  PERMISSIONS["bookmarks"] = "bookmarks";
71
76
  PERMISSIONS["createTicket"] = "create ticket";
72
77
  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.310",
3
+ "version": "1.1.312",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [