@duvdu-v1/duvdu 1.1.34 → 1.1.36

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
@@ -59,3 +59,4 @@ export * from './models/studio-booking.model';
59
59
  export * from './models/allProjects.model';
60
60
  export * from './models/report.model';
61
61
  export * from './models/messages.model';
62
+ export * from './models/notification.model';
package/build/index.js CHANGED
@@ -75,3 +75,4 @@ __exportStar(require("./models/studio-booking.model"), exports);
75
75
  __exportStar(require("./models/allProjects.model"), exports);
76
76
  __exportStar(require("./models/report.model"), exports);
77
77
  __exportStar(require("./models/messages.model"), exports);
78
+ __exportStar(require("./models/notification.model"), exports);
@@ -32,6 +32,10 @@ export interface IcopyRights {
32
32
  price: number;
33
33
  duration: string;
34
34
  address: string;
35
+ location: {
36
+ lat: number;
37
+ lng: number;
38
+ };
35
39
  searchKeywords: string[];
36
40
  showOnHome: boolean;
37
41
  cycle: number;
@@ -40,6 +44,11 @@ export interface IcopyRights {
40
44
  totalRates: number;
41
45
  };
42
46
  isDeleted: boolean;
47
+ tags: string[];
48
+ subCategory: {
49
+ ar: string;
50
+ en: string;
51
+ };
43
52
  }
44
53
  export declare const CopyRights: import("mongoose").Model<IcopyRights, {}, {}, {}, import("mongoose").Document<unknown, {}, IcopyRights> & IcopyRights & {
45
54
  _id: Types.ObjectId;
@@ -17,6 +17,15 @@ exports.CopyRights = (0, mongoose_1.model)(model_names_1.MODELS.copyrights, new
17
17
  ratersCounter: { type: Number, default: 0 },
18
18
  totalRates: { type: Number, default: 0 },
19
19
  },
20
+ tags: [String],
21
+ subCategory: {
22
+ ar: String,
23
+ en: String
24
+ },
25
+ location: {
26
+ lat: { type: Number, default: null },
27
+ lng: { type: Number, default: null },
28
+ }
20
29
  }, {
21
30
  timestamps: true,
22
31
  collection: model_names_1.MODELS.copyrights,
@@ -0,0 +1,38 @@
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/types/inferschematype" />
25
+ import { Types } from 'mongoose';
26
+ import { Iuser } from '../types/User';
27
+ export interface Inotification {
28
+ sourceUser: Types.ObjectId | Iuser;
29
+ targetUser: Types.ObjectId | Iuser;
30
+ type: string;
31
+ target: Types.ObjectId;
32
+ watched: boolean;
33
+ message: string;
34
+ title: string;
35
+ }
36
+ export declare const Notification: import("mongoose").Model<Inotification, {}, {}, {}, import("mongoose").Document<unknown, {}, Inotification> & Inotification & {
37
+ _id: Types.ObjectId;
38
+ }, any>;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Notification = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const model_names_1 = require("../types/model-names");
6
+ exports.Notification = (0, mongoose_1.model)(model_names_1.MODELS.notifications, new mongoose_1.Schema({
7
+ sourceUser: {
8
+ type: mongoose_1.Schema.Types.ObjectId,
9
+ ref: model_names_1.MODELS.user,
10
+ required: true
11
+ },
12
+ targetUser: {
13
+ type: mongoose_1.Schema.Types.ObjectId,
14
+ ref: model_names_1.MODELS.user,
15
+ required: true
16
+ },
17
+ target: {
18
+ type: mongoose_1.Schema.Types.ObjectId,
19
+ required: true
20
+ },
21
+ type: {
22
+ type: String,
23
+ default: null
24
+ },
25
+ watched: {
26
+ type: Boolean,
27
+ default: false
28
+ },
29
+ title: {
30
+ type: String,
31
+ trim: true,
32
+ default: null,
33
+ },
34
+ message: {
35
+ type: String,
36
+ trim: true,
37
+ default: null
38
+ },
39
+ }, { timestamps: true }));
@@ -42,6 +42,10 @@ export interface IportfolioPost {
42
42
  fees: number;
43
43
  }[];
44
44
  tags: string[];
45
+ subCategory: {
46
+ ar: string;
47
+ en: string;
48
+ };
45
49
  projectBudget: number;
46
50
  category: Types.ObjectId;
47
51
  projectScale: {
@@ -19,6 +19,10 @@ exports.PortfolioPosts = (0, mongoose_1.model)(model_names_1.MODELS.portfolioPos
19
19
  },
20
20
  ],
21
21
  tags: [String],
22
+ subCategory: {
23
+ ar: String,
24
+ en: String
25
+ },
22
26
  projectBudget: { type: Number, default: null },
23
27
  category: { type: mongoose_1.Schema.Types.ObjectId, ref: model_names_1.MODELS.category, required: true },
24
28
  projectScale: { scale: { type: Number, default: 0 }, time: { type: String, default: null } },
@@ -56,6 +56,11 @@ export interface IstudioBooking {
56
56
  creative: Types.ObjectId | Iuser;
57
57
  fees: number;
58
58
  }[];
59
+ tags: string[];
60
+ subCategory: {
61
+ ar: string;
62
+ en: string;
63
+ };
59
64
  }
60
65
  export declare const studioBooking: mongoose.Model<IstudioBooking, {}, {}, {}, mongoose.Document<unknown, {}, IstudioBooking> & IstudioBooking & {
61
66
  _id: Types.ObjectId;
@@ -65,6 +65,11 @@ exports.studioBooking = (0, mongoose_1.model)(model_names_1.MODELS.studioBooking
65
65
  ratersCounter: { type: Number, default: 0 },
66
66
  totalRates: { type: Number, default: 0 },
67
67
  },
68
+ tags: [String],
69
+ subCategory: {
70
+ ar: String,
71
+ en: String
72
+ },
68
73
  }, {
69
74
  timestamps: true,
70
75
  collection: model_names_1.MODELS.studioBooking,
@@ -83,5 +83,5 @@ export interface Iuser {
83
83
  following: number;
84
84
  followers: number;
85
85
  };
86
- notificationToken: string;
86
+ notificationToken: string | null;
87
87
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [