@duvdu-v1/duvdu 1.1.19 → 1.1.21
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,8 @@ const uploadProjectMedia = (folder) => (0, multer_1.default)({
|
|
|
23
23
|
},
|
|
24
24
|
}).fields([
|
|
25
25
|
{ name: 'cover', maxCount: 1 },
|
|
26
|
+
{ name: 'profileImage', maxCount: 1 },
|
|
27
|
+
{ name: 'coverImage', maxCount: 1 },
|
|
26
28
|
{ name: 'attachments', maxCount: 10 },
|
|
27
29
|
]);
|
|
28
30
|
exports.uploadProjectMedia = uploadProjectMedia;
|
|
@@ -5,6 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Categories = void 0;
|
|
7
7
|
const mongoose_1 = __importDefault(require("mongoose"));
|
|
8
|
+
const cycles_1 = require("../types/cycles");
|
|
8
9
|
const model_names_1 = require("../types/model-names");
|
|
9
10
|
const categorySchema = new mongoose_1.default.Schema({
|
|
10
11
|
creativesCounter: {
|
|
@@ -21,12 +22,18 @@ const categorySchema = new mongoose_1.default.Schema({
|
|
|
21
22
|
},
|
|
22
23
|
cycle: {
|
|
23
24
|
type: Number,
|
|
24
|
-
enum:
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
tags: {
|
|
28
|
-
type: [String],
|
|
25
|
+
enum: cycles_1.CYCLES,
|
|
26
|
+
required: true,
|
|
29
27
|
},
|
|
28
|
+
// tags: {
|
|
29
|
+
// type: [String],
|
|
30
|
+
// },
|
|
31
|
+
subCategories: [
|
|
32
|
+
{
|
|
33
|
+
title: { ar: { type: String, default: null }, en: { type: String, default: null } },
|
|
34
|
+
tags: [{ ar: { type: String, default: null }, en: { type: String, default: null } }],
|
|
35
|
+
},
|
|
36
|
+
],
|
|
30
37
|
status: {
|
|
31
38
|
type: Number,
|
|
32
39
|
enum: [0, 1],
|
|
@@ -1,29 +1,4 @@
|
|
|
1
|
-
|
|
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 { Document } from 'mongoose';
|
|
26
|
-
export interface Icategory extends Document {
|
|
1
|
+
export interface Icategory {
|
|
27
2
|
id: string;
|
|
28
3
|
creativesCounter: number;
|
|
29
4
|
title: {
|
|
@@ -32,6 +7,16 @@ export interface Icategory extends Document {
|
|
|
32
7
|
};
|
|
33
8
|
image: string;
|
|
34
9
|
tags?: string[];
|
|
10
|
+
subCategories?: {
|
|
11
|
+
title: {
|
|
12
|
+
en: string;
|
|
13
|
+
ar: string;
|
|
14
|
+
};
|
|
15
|
+
tags: {
|
|
16
|
+
en: string;
|
|
17
|
+
ar: string;
|
|
18
|
+
}[];
|
|
19
|
+
}[];
|
|
35
20
|
jobTitles?: string[];
|
|
36
21
|
cycle: 1 | 2 | 3 | 4;
|
|
37
22
|
status: 0 | 1;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CYCLES = void 0;
|
|
4
|
+
var CYCLES;
|
|
5
|
+
(function (CYCLES) {
|
|
6
|
+
CYCLES["portfolioPost"] = "portfolio-post";
|
|
7
|
+
CYCLES["studioBooking"] = "studio-booking";
|
|
8
|
+
CYCLES["copyRights"] = "copy-rights";
|
|
9
|
+
})(CYCLES || (exports.CYCLES = CYCLES = {}));
|