@duvdu-v1/duvdu 1.1.107 → 1.1.109

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
@@ -65,6 +65,7 @@ export * from './models/follow.model';
65
65
  export * from './models/session.model';
66
66
  export * from './models/userSession.model';
67
67
  export * from './models/ranks.model';
68
+ export * from './models/settings.model';
68
69
  export * from './services/category.service';
69
70
  export * from './services/projectView.service';
70
71
  export * from './types/notification.type';
package/build/index.js CHANGED
@@ -81,6 +81,7 @@ __exportStar(require("./models/follow.model"), exports);
81
81
  __exportStar(require("./models/session.model"), exports);
82
82
  __exportStar(require("./models/userSession.model"), exports);
83
83
  __exportStar(require("./models/ranks.model"), exports);
84
+ __exportStar(require("./models/settings.model"), exports);
84
85
  __exportStar(require("./services/category.service"), exports);
85
86
  __exportStar(require("./services/projectView.service"), exports);
86
87
  __exportStar(require("./types/notification.type"), exports);
@@ -42,30 +42,6 @@ export interface Iproducer {
42
42
  minBudget: number;
43
43
  searchKeywords: string[];
44
44
  }
45
- export interface IproducerBooking {
46
- producer: Types.ObjectId | Iuser;
47
- user: Types.ObjectId | Iuser;
48
- platform: string;
49
- details: string;
50
- cycle: string;
51
- episodes: number;
52
- episodeduration: number;
53
- attachments: string[];
54
- expectedbudget: number;
55
- expectedprofits: number;
56
- status: 'pending' | 'accepted' | 'rejected' | 'appoinment pending' | 'appoinment accepted' | 'appoinment rejected';
57
- appoinment: {
58
- date: string;
59
- address: string;
60
- location: {
61
- lat: number;
62
- lng: number;
63
- };
64
- };
65
- }
66
- export declare const ProducerBooking: import("mongoose").Model<IproducerBooking, {}, {}, {}, import("mongoose").Document<unknown, {}, IproducerBooking> & IproducerBooking & {
67
- _id: Types.ObjectId;
68
- }, any>;
69
45
  export declare const Producer: import("mongoose").Model<Iproducer, {}, {}, {}, import("mongoose").Document<unknown, {}, Iproducer> & Iproducer & {
70
46
  _id: Types.ObjectId;
71
47
  }, any>;
@@ -1,78 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Producer = exports.ProducerBooking = void 0;
3
+ exports.Producer = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
- const cycles_1 = require("../types/cycles");
6
5
  const model_names_1 = require("../types/model-names");
7
- exports.ProducerBooking = (0, mongoose_1.model)(model_names_1.MODELS.producerBooking, new mongoose_1.Schema({
8
- producer: {
9
- type: mongoose_1.Schema.Types.ObjectId,
10
- ref: model_names_1.MODELS.user
11
- },
12
- user: {
13
- type: mongoose_1.Schema.Types.ObjectId,
14
- ref: model_names_1.MODELS.user
15
- },
16
- platform: {
17
- type: String,
18
- default: null
19
- },
20
- details: {
21
- type: String,
22
- default: null
23
- },
24
- cycle: {
25
- type: String,
26
- default: cycles_1.CYCLES.producer
27
- },
28
- episodes: {
29
- type: Number,
30
- default: null
31
- },
32
- episodeduration: {
33
- type: Number,
34
- default: null
35
- },
36
- attachments: [String],
37
- expectedbudget: {
38
- type: Number,
39
- default: null
40
- },
41
- expectedprofits: {
42
- type: Number,
43
- default: null
44
- },
45
- status: {
46
- type: String,
47
- enum: ['pending', 'accepted', 'rejected', 'appoinment pending', 'appoinment accepted', 'appoinment rejected'],
48
- default: 'pending'
49
- },
50
- appoinment: {
51
- date: {
52
- type: String,
53
- default: null
54
- },
55
- address: {
56
- type: String,
57
- default: null
58
- },
59
- location: {
60
- lat: {
61
- type: Number,
62
- default: null
63
- },
64
- lng: {
65
- type: Number,
66
- default: null
67
- }
68
- }
69
- }
70
- }, { timestamps: true, collection: model_names_1.MODELS.producerBooking, toJSON: {
71
- transform(doc, ret) {
72
- if (ret.attachments)
73
- ret.attachments = ret.attachments.map((el) => process.env.BUCKET_HOST + '/' + el);
74
- },
75
- } }));
76
6
  exports.Producer = (0, mongoose_1.model)(model_names_1.MODELS.producer, new mongoose_1.Schema({
77
7
  user: {
78
8
  type: mongoose_1.Schema.Types.ObjectId,
@@ -0,0 +1,33 @@
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" />
25
+ /// <reference types="mongoose/types/inferschematype" />
26
+ export interface Isetting {
27
+ expirationTime: {
28
+ time: number;
29
+ }[];
30
+ }
31
+ export declare const Setting: import("mongoose").Model<Isetting, {}, {}, {}, import("mongoose").Document<unknown, {}, Isetting> & Isetting & {
32
+ _id: import("mongoose").Types.ObjectId;
33
+ }, any>;
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Setting = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ const model_names_1 = require("../types/model-names");
6
+ exports.Setting = (0, mongoose_1.model)(model_names_1.MODELS.setting, new mongoose_1.Schema({
7
+ expirationTime: [{ time: Number, default: null }]
8
+ }, { timestamps: true, collection: model_names_1.MODELS.setting }));
@@ -52,7 +52,7 @@ export declare enum PERMISSIONS {
52
52
  createTeamProjectHandler = "create team project",
53
53
  updateTeamProjectHandler = "update team project",
54
54
  deleteTeamProjectHandler = "delete team project",
55
- getProducersContractCrm = "get producers contract crm",
55
+ deleteProducerHandler = "delete producer",
56
56
  createRankHandler = "create rank",
57
57
  updateRankHandler = "update rank",
58
58
  deleteRankHandler = "delete rank"
@@ -65,7 +65,7 @@ var PERMISSIONS;
65
65
  PERMISSIONS["updateTeamProjectHandler"] = "update team project";
66
66
  PERMISSIONS["deleteTeamProjectHandler"] = "delete team project";
67
67
  // producer
68
- PERMISSIONS["getProducersContractCrm"] = "get producers contract crm";
68
+ PERMISSIONS["deleteProducerHandler"] = "delete producer";
69
69
  // rank
70
70
  PERMISSIONS["createRankHandler"] = "create rank";
71
71
  PERMISSIONS["updateRankHandler"] = "update rank";
@@ -20,8 +20,9 @@ export declare enum MODELS {
20
20
  teamProjectBooking = "teamProjects-booking",
21
21
  contracts = "contracts",
22
22
  producer = "producers",
23
- producerBooking = "producer-booking",
23
+ producerContract = "producer-contracts",
24
24
  follow = "follow",
25
25
  userSession = "user-sessions",
26
- rank = "ranks"
26
+ rank = "ranks",
27
+ setting = "settings"
27
28
  }
@@ -24,8 +24,9 @@ var MODELS;
24
24
  MODELS["teamProjectBooking"] = "teamProjects-booking";
25
25
  MODELS["contracts"] = "contracts";
26
26
  MODELS["producer"] = "producers";
27
- MODELS["producerBooking"] = "producer-booking";
27
+ MODELS["producerContract"] = "producer-contracts";
28
28
  MODELS["follow"] = "follow";
29
29
  MODELS["userSession"] = "user-sessions";
30
30
  MODELS["rank"] = "ranks";
31
+ MODELS["setting"] = "settings";
31
32
  })(MODELS || (exports.MODELS = MODELS = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duvdu-v1/duvdu",
3
- "version": "1.1.107",
3
+ "version": "1.1.109",
4
4
  "main": "./build/index.js",
5
5
  "types": "./build/index.d.ts",
6
6
  "files": [