@duvdu-v1/duvdu 1.1.195 → 1.1.197

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.
@@ -54,7 +54,10 @@ export interface IcopyRights {
54
54
  subCategory: {
55
55
  ar: string;
56
56
  en: string;
57
+ _id: string;
57
58
  };
59
+ minBudget: number;
60
+ maxBudget: number;
58
61
  }
59
62
  export declare const CopyRights: import("mongoose").Model<IcopyRights, {}, {}, {}, import("mongoose").Document<unknown, {}, IcopyRights> & IcopyRights & {
60
63
  _id: Types.ObjectId;
@@ -22,11 +22,14 @@ exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new
22
22
  subCategory: {
23
23
  ar: String,
24
24
  en: String,
25
+ _id: String
25
26
  },
26
27
  location: {
27
28
  lat: { type: Number, default: null },
28
29
  lng: { type: Number, default: null },
29
30
  },
31
+ minBudget: { type: Number, default: null },
32
+ maxBudget: { type: Number, default: null },
30
33
  }, {
31
34
  timestamps: true,
32
35
  collection: model_names_1.MODELS.copyrights,
@@ -35,6 +35,7 @@ export interface IprojectCycle {
35
35
  subCategory: {
36
36
  ar: string;
37
37
  en: string;
38
+ _id: string;
38
39
  };
39
40
  tags: {
40
41
  ar: string;
@@ -82,6 +83,8 @@ export interface IprojectCycle {
82
83
  url: string;
83
84
  note: string;
84
85
  };
86
+ minBudget: number;
87
+ maxBudget: number;
85
88
  }
86
89
  export declare const ProjectCycle: import("mongoose").Model<IprojectCycle, {}, {}, {}, import("mongoose").Document<unknown, {}, IprojectCycle> & IprojectCycle & {
87
90
  _id: Types.ObjectId;
@@ -12,7 +12,7 @@ var InviteStatus;
12
12
  exports.ProjectCycle = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost, new mongoose_1.Schema({
13
13
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
14
14
  category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category },
15
- subCategory: { ar: { type: String, default: null }, en: { type: String, default: null } },
15
+ subCategory: { ar: { type: String, default: null }, en: { type: String, default: null }, _id: String },
16
16
  tags: [{ ar: { type: String, default: null }, en: { type: String, default: null } }],
17
17
  cover: { type: String, default: null },
18
18
  audioCover: { type: String, default: null },
@@ -23,7 +23,12 @@ exports.ProjectCycle = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost,
23
23
  functions: [
24
24
  { name: { type: String, default: null }, unitPrice: { type: Number, default: 0 } },
25
25
  ],
26
- creatives: [{ creative: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user }, inviteStatus: { type: String, enum: InviteStatus, default: InviteStatus.pending } }],
26
+ creatives: [
27
+ {
28
+ creative: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
29
+ inviteStatus: { type: String, enum: InviteStatus, default: InviteStatus.pending },
30
+ },
31
+ ],
27
32
  location: { lat: { type: Number, default: 0 }, lng: { type: Number, default: 0 } },
28
33
  address: { type: String, default: null },
29
34
  searchKeyWords: [String],
@@ -43,4 +48,6 @@ exports.ProjectCycle = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPost,
43
48
  url: { type: String, default: null },
44
49
  note: { type: String, default: null },
45
50
  },
51
+ minBudget: { type: Number, default: null },
52
+ maxBudget: { type: Number, default: null },
46
53
  }, { timestamps: true, collection: model_names_1.MODELS.portfolioPost }));
@@ -39,6 +39,7 @@ export interface Irental {
39
39
  subCategory: {
40
40
  ar: string;
41
41
  en: string;
42
+ _id: string;
42
43
  };
43
44
  tags: {
44
45
  ar: string;
@@ -71,6 +72,8 @@ export interface Irental {
71
72
  };
72
73
  createdAt: Date;
73
74
  updatedAt: Date;
75
+ minBudget: number;
76
+ maxBudget: number;
74
77
  }
75
78
  export declare const Rentals: import("mongoose").Model<Irental, {}, {}, {}, import("mongoose").Document<unknown, {}, Irental> & Irental & {
76
79
  _id: Types.ObjectId;
@@ -14,7 +14,7 @@ var RentalUnits;
14
14
  exports.Rentals = (0, mongoose_1.model)('rentals', new mongoose_1.Schema({
15
15
  user: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.user },
16
16
  category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category },
17
- subCategory: { ar: String, en: String },
17
+ subCategory: { ar: String, en: String, _id: String },
18
18
  tags: [{ ar: String, en: String }],
19
19
  attachments: [String],
20
20
  cover: String,
@@ -35,4 +35,6 @@ exports.Rentals = (0, mongoose_1.model)('rentals', new mongoose_1.Schema({
35
35
  },
36
36
  isDeleted: { type: Boolean, default: false },
37
37
  rate: { ratersCounter: Number, totalRates: Number },
38
+ minBudget: { type: Number, default: null },
39
+ maxBudget: { type: Number, default: null },
38
40
  }, { collection: 'rentals', timestamps: true }).index({ createdAt: 1, updatedAt: -1 }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.195",
3
+ "version": "1.1.197",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [