@duvdu-v1/duvdu 1.1.63 → 1.1.65

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.
@@ -23,6 +23,7 @@
23
23
  /// <reference types="mongoose/types/virtuals" />
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import { Document, Types } from 'mongoose';
26
+ import { Icategory } from '../types/Category';
26
27
  export interface IteamProject extends Document {
27
28
  user: Types.ObjectId;
28
29
  cover: string;
@@ -41,7 +42,7 @@ export interface IteamProject extends Document {
41
42
  status: 'pending' | 'completed';
42
43
  creatives: [
43
44
  {
44
- jobTitle: string;
45
+ category: Types.ObjectId | Icategory;
45
46
  users: [
46
47
  {
47
48
  user: Types.ObjectId;
@@ -53,7 +54,6 @@ export interface IteamProject extends Document {
53
54
  }
54
55
  ];
55
56
  isDeleted: boolean;
56
- showOnHome: boolean;
57
57
  }
58
58
  export declare const TeamProject: import("mongoose").Model<IteamProject, {}, {}, {}, Document<unknown, {}, IteamProject> & IteamProject & {
59
59
  _id: Types.ObjectId;
@@ -27,10 +27,10 @@ const UserSchema = new mongoose_1.Schema({
27
27
  }
28
28
  });
29
29
  const CreativeSchema = new mongoose_1.Schema({
30
- jobTitle: {
31
- type: String,
30
+ category: {
31
+ type: mongoose_1.Schema.Types.ObjectId,
32
32
  required: true,
33
- default: null
33
+ ref: model_names_1.MODELS.category
34
34
  },
35
35
  users: [UserSchema]
36
36
  });
@@ -94,10 +94,6 @@ exports.TeamProject = (0, mongoose_1.model)(model_names_1.MODELS.teamProject, ne
94
94
  isDeleted: {
95
95
  type: Boolean,
96
96
  default: false
97
- },
98
- showOnHome: {
99
- type: Boolean,
100
- default: true
101
97
  }
102
98
  }, { timestamps: true, collection: model_names_1.MODELS.teamProject,
103
99
  toJSON: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.63",
3
+ "version": "1.1.65",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [