@duvdu-v1/duvdu 1.1.190 → 1.1.191

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.
@@ -24,6 +24,11 @@
24
24
  /// <reference types="mongoose/types/inferschematype" />
25
25
  import mongoose from 'mongoose';
26
26
  import { Icategory } from '../types/Category';
27
+ export declare enum CategoryMedia {
28
+ image = "image",
29
+ video = "video",
30
+ audio = "audio"
31
+ }
27
32
  export declare const Categories: mongoose.Model<Icategory, {}, {}, {}, mongoose.Document<unknown, {}, Icategory> & Icategory & {
28
33
  _id: mongoose.Types.ObjectId;
29
34
  }, any>;
@@ -3,10 +3,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.Categories = void 0;
6
+ exports.Categories = exports.CategoryMedia = void 0;
7
7
  const mongoose_1 = __importDefault(require("mongoose"));
8
8
  const cycles_1 = require("../types/cycles");
9
9
  const model_names_1 = require("../types/model-names");
10
+ var CategoryMedia;
11
+ (function (CategoryMedia) {
12
+ CategoryMedia["image"] = "image";
13
+ CategoryMedia["video"] = "video";
14
+ CategoryMedia["audio"] = "audio";
15
+ })(CategoryMedia || (exports.CategoryMedia = CategoryMedia = {}));
10
16
  const categorySchema = new mongoose_1.default.Schema({
11
17
  creativesCounter: {
12
18
  type: Number,
@@ -39,7 +45,7 @@ const categorySchema = new mongoose_1.default.Schema({
39
45
  default: true,
40
46
  },
41
47
  trend: { type: Boolean, default: false },
42
- media: { type: String, enum: ['image', 'video', 'audio'] },
48
+ media: { type: String, enum: CategoryMedia },
43
49
  }, {
44
50
  timestamps: true,
45
51
  collection: model_names_1.MODELS.category,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.190",
3
+ "version": "1.1.191",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [