@duvdu-v1/duvdu 1.1.300 → 1.1.301

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.
package/build/index.d.ts CHANGED
@@ -83,6 +83,7 @@ export * from './models/Bookmark.model';
83
83
  export * from './models/Bookmark-projects.model';
84
84
  export * from './models/contractCancel.model';
85
85
  export * from './models/transactions.model';
86
+ export * from './models/pages.model';
86
87
  export * from './services/category.service';
87
88
  export * from './services/projectView.service';
88
89
  export * from './services/rank.service';
package/build/index.js CHANGED
@@ -100,6 +100,7 @@ __exportStar(require("./models/Bookmark.model"), exports);
100
100
  __exportStar(require("./models/Bookmark-projects.model"), exports);
101
101
  __exportStar(require("./models/contractCancel.model"), exports);
102
102
  __exportStar(require("./models/transactions.model"), exports);
103
+ __exportStar(require("./models/pages.model"), exports);
103
104
  __exportStar(require("./services/category.service"), exports);
104
105
  __exportStar(require("./services/projectView.service"), exports);
105
106
  __exportStar(require("./services/rank.service"), exports);
@@ -0,0 +1,32 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="mongoose" />
25
+ /// <reference types="mongoose/types/inferschematype" />
26
+ export interface IPage {
27
+ title: string;
28
+ content: string;
29
+ }
30
+ export declare const Pages: import("mongoose").Model<IPage, {}, {}, {}, import("mongoose").Document<unknown, {}, IPage> & IPage & {
31
+ _id: import("mongoose").Types.ObjectId;
32
+ }, any>;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Pages = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const model_names_1 = require("../types/model-names");
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 },
9
+ }, {
10
+ timestamps: true,
11
+ collection: model_names_1.MODELS.page,
12
+ }));
@@ -39,5 +39,6 @@ export declare enum MODELS {
39
39
  favourites = "favourites",
40
40
  contractCancel = "contract_cancel",
41
41
  withdrawMethod = "withdraw-methods",
42
- transaction = "transactions"
42
+ transaction = "transactions",
43
+ page = "pages"
43
44
  }
@@ -44,4 +44,5 @@ var MODELS;
44
44
  MODELS["contractCancel"] = "contract_cancel";
45
45
  MODELS["withdrawMethod"] = "withdraw-methods";
46
46
  MODELS["transaction"] = "transactions";
47
+ MODELS["page"] = "pages";
47
48
  })(MODELS || (exports.MODELS = MODELS = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.300",
3
+ "version": "1.1.301",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [