@duvdu-v1/duvdu 1.1.88 → 1.1.89

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.
@@ -38,7 +38,7 @@ export interface IcopyRights {
38
38
  };
39
39
  searchKeywords: string[];
40
40
  showOnHome: boolean;
41
- cycle: number;
41
+ cycle: string;
42
42
  rate: {
43
43
  ratersCounter: number;
44
44
  totalRates: number;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CopyRights = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
+ const cycles_1 = require("../types/cycles");
5
6
  const model_names_1 = require("../types/model-names");
6
7
  exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new mongoose_1.Schema({
7
8
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
@@ -11,7 +12,7 @@ exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new
11
12
  address: { type: String, default: null },
12
13
  searchKeywords: [String],
13
14
  showOnHome: { type: Boolean, default: true },
14
- cycle: { type: Number, default: 3 },
15
+ cycle: { type: String, default: cycles_1.CYCLES.copyRights },
15
16
  isDeleted: { type: Boolean, default: false },
16
17
  rate: {
17
18
  ratersCounter: { type: Number, default: 0 },
@@ -20,12 +21,12 @@ exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new
20
21
  tags: [{ ar: { type: String, default: null }, en: { type: String, default: null } }],
21
22
  subCategory: {
22
23
  ar: String,
23
- en: String
24
+ en: String,
24
25
  },
25
26
  location: {
26
27
  lat: { type: Number, default: null },
27
28
  lng: { type: Number, default: null },
28
- }
29
+ },
29
30
  }, {
30
31
  timestamps: true,
31
32
  collection: model_names_1.MODELS.copyrights,
@@ -56,7 +56,7 @@ export interface IportfolioPost {
56
56
  time: 'minutes' | 'hours';
57
57
  };
58
58
  showOnHome: boolean;
59
- cycle: number;
59
+ cycle: string;
60
60
  rate: {
61
61
  ratersCounter: number;
62
62
  totalRates: number;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PortfolioPosts = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
+ const cycles_1 = require("../types/cycles");
5
6
  const model_names_1 = require("../types/model-names");
6
7
  exports.PortfolioPosts = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost, new mongoose_1.Schema({
7
8
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
@@ -21,13 +22,13 @@ exports.PortfolioPosts = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPos
21
22
  tags: [{ ar: { type: String, default: null }, en: { type: String, default: null } }],
22
23
  subCategory: {
23
24
  ar: String,
24
- en: String
25
+ en: String,
25
26
  },
26
27
  projectBudget: { type: Number, default: null },
27
28
  category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category, required: true },
28
29
  projectScale: { scale: { type: Number, default: 0 }, time: { type: String, default: null } },
29
30
  showOnHome: { type: Boolean, default: true },
30
- cycle: { type: Number, default: 1 },
31
+ cycle: { type: String, default: cycles_1.CYCLES.portfolioPost },
31
32
  isDeleted: { type: Boolean, default: false },
32
33
  rate: {
33
34
  ratersCounter: { type: Number, default: 0 },
@@ -43,7 +44,7 @@ exports.PortfolioPosts = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPos
43
44
  if (ret.attachments)
44
45
  ret.attachments = ret.attachments.map((el) => process.env.BUCKET_HOST + '/' + el);
45
46
  },
46
- }
47
+ },
47
48
  })
48
49
  .index({ createdAt: 1, updatedAt: -1 })
49
50
  .index({ title: 'text', desc: 'text', tools: 'text', searchKeywords: 'text' }));
@@ -47,7 +47,7 @@ export interface IstudioBooking {
47
47
  insurance: number;
48
48
  showOnHome: boolean;
49
49
  category: Types.ObjectId;
50
- cycle: number;
50
+ cycle: string;
51
51
  rate: {
52
52
  ratersCounter: number;
53
53
  totalRates: number;
@@ -25,6 +25,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.studioBooking = void 0;
27
27
  const mongoose_1 = __importStar(require("mongoose"));
28
+ const cycles_1 = require("../types/cycles");
28
29
  const model_names_1 = require("../types/model-names");
29
30
  exports.studioBooking = (0, mongoose_1.model)(model_names_1.MODELS.studioBooking, new mongoose_1.Schema({
30
31
  user: {
@@ -53,7 +54,7 @@ exports.studioBooking = (0, mongoose_1.model)(model_names_1.MODELS.studioBooking
53
54
  ref: model_names_1.MODELS.category,
54
55
  required: true,
55
56
  },
56
- cycle: { type: Number, default: 2 },
57
+ cycle: { type: String, default: cycles_1.CYCLES.studioBooking },
57
58
  isDeleted: { type: Boolean, default: false },
58
59
  creatives: [
59
60
  {
@@ -80,5 +81,5 @@ exports.studioBooking = (0, mongoose_1.model)(model_names_1.MODELS.studioBooking
80
81
  if (ret.attachments)
81
82
  ret.attachments = ret.attachments.map((el) => process.env.BUCKET_HOST + '/' + el);
82
83
  },
83
- }
84
+ },
84
85
  }));
package/package.json CHANGED
@@ -1,55 +1,55 @@
1
- {
2
- "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.88",
4
- "main": "./build/index.js",
5
- "types": "./build/index.d.ts",
6
- "files": [
7
- "build/**/*"
8
- ],
9
- "scripts": {
10
- "clean": "rimraf ./build",
11
- "build": "npm run clean && tsc",
12
- "fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/common",
13
- "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
14
- "lint": "eslint .",
15
- "lint:fix": "eslint --fix .",
16
- "format": "prettier --write ."
17
- },
18
- "keywords": [],
19
- "author": "motemed khaled",
20
- "license": "ISC",
21
- "dependencies": {
22
- "@duvdu-v1/duvdu": "^1.1.4",
23
- "@types/express": "^4.17.21",
24
- "@types/express-session": "^1.18.0",
25
- "@types/jsonwebtoken": "^9.0.5",
26
- "@types/multer": "^1.4.11",
27
- "@types/node": "^20.11.0",
28
- "@typescript-eslint/eslint-plugin": "^6.19.0",
29
- "@typescript-eslint/parser": "^6.19.0",
30
- "aws-sdk": "^2.1595.0",
31
- "connect-redis": "^7.1.1",
32
- "express": "^4.18.2",
33
- "express-async-errors": "^3.1.1",
34
- "express-session": "^1.18.0",
35
- "express-validator": "^7.0.1",
36
- "jsonwebtoken": "^9.0.2",
37
- "mongoose": "^8.0.4",
38
- "multer": "^1.4.5-lts.1",
39
- "node-nats-streaming": "^0.3.2",
40
- "redis": "^4.6.13",
41
- "rimraf": "^5.0.5",
42
- "typescript": "^5.3.3",
43
- "uuid": "^9.0.1"
44
- },
45
- "devDependencies": {
46
- "@types/uuid": "^9.0.8",
47
- "del-cli": "^5.1.0",
48
- "eslint": "^8.56.0",
49
- "eslint-config-prettier": "^9.1.0",
50
- "eslint-plugin-import": "^2.29.1",
51
- "eslint-plugin-prettier": "^5.1.3",
52
- "prettier": "^3.2.4"
53
- },
54
- "description": ""
55
- }
1
+ {
2
+ "name": "@duvdu-v1/duvdu",
3
+ "version": "1.1.89",
4
+ "main": "./build/index.js",
5
+ "types": "./build/index.d.ts",
6
+ "files": [
7
+ "build/**/*"
8
+ ],
9
+ "scripts": {
10
+ "clean": "rimraf ./build",
11
+ "build": "npm run clean && tsc",
12
+ "fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/common",
13
+ "pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
14
+ "lint": "eslint .",
15
+ "lint:fix": "eslint --fix .",
16
+ "format": "prettier --write ."
17
+ },
18
+ "keywords": [],
19
+ "author": "motemed khaled",
20
+ "license": "ISC",
21
+ "dependencies": {
22
+ "@duvdu-v1/duvdu": "^1.1.4",
23
+ "@types/express": "^4.17.21",
24
+ "@types/express-session": "^1.18.0",
25
+ "@types/jsonwebtoken": "^9.0.5",
26
+ "@types/multer": "^1.4.11",
27
+ "@types/node": "^20.11.0",
28
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
29
+ "@typescript-eslint/parser": "^6.19.0",
30
+ "aws-sdk": "^2.1595.0",
31
+ "connect-redis": "^7.1.1",
32
+ "express": "^4.18.2",
33
+ "express-async-errors": "^3.1.1",
34
+ "express-session": "^1.18.0",
35
+ "express-validator": "^7.0.1",
36
+ "jsonwebtoken": "^9.0.2",
37
+ "mongoose": "^8.0.4",
38
+ "multer": "^1.4.5-lts.1",
39
+ "node-nats-streaming": "^0.3.2",
40
+ "redis": "^4.6.13",
41
+ "rimraf": "^5.0.5",
42
+ "typescript": "^5.3.3",
43
+ "uuid": "^9.0.1"
44
+ },
45
+ "devDependencies": {
46
+ "@types/uuid": "^9.0.8",
47
+ "del-cli": "^5.1.0",
48
+ "eslint": "^8.56.0",
49
+ "eslint-config-prettier": "^9.1.0",
50
+ "eslint-plugin-import": "^2.29.1",
51
+ "eslint-plugin-prettier": "^5.1.3",
52
+ "prettier": "^3.2.4"
53
+ },
54
+ "description": ""
55
+ }