@duvdu-v1/duvdu 1.1.54 → 1.1.56
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 +2 -1
- package/build/index.js +2 -1
- package/build/models/producer.model.d.ts +56 -0
- package/build/models/producer.model.js +81 -0
- package/build/types/Permissions.d.ts +2 -1
- package/build/types/Permissions.js +2 -0
- package/build/types/cycles.d.ts +2 -1
- package/build/types/cycles.js +1 -0
- package/build/types/folders.d.ts +2 -1
- package/build/types/folders.js +1 -0
- package/build/types/model-names.d.ts +3 -1
- package/build/types/model-names.js +2 -0
- package/package.json +55 -55
package/build/index.d.ts
CHANGED
|
@@ -61,5 +61,6 @@ export * from './models/allProjects.model';
|
|
|
61
61
|
export * from './models/report.model';
|
|
62
62
|
export * from './models/messages.model';
|
|
63
63
|
export * from './models/notification.model';
|
|
64
|
-
export * from './services/category.service';
|
|
65
64
|
export * from './models/teamProject.model';
|
|
65
|
+
export * from './models/producer.model';
|
|
66
|
+
export * from './services/category.service';
|
package/build/index.js
CHANGED
|
@@ -77,5 +77,6 @@ __exportStar(require("./models/allProjects.model"), exports);
|
|
|
77
77
|
__exportStar(require("./models/report.model"), exports);
|
|
78
78
|
__exportStar(require("./models/messages.model"), exports);
|
|
79
79
|
__exportStar(require("./models/notification.model"), exports);
|
|
80
|
-
__exportStar(require("./services/category.service"), exports);
|
|
81
80
|
__exportStar(require("./models/teamProject.model"), exports);
|
|
81
|
+
__exportStar(require("./models/producer.model"), exports);
|
|
82
|
+
__exportStar(require("./services/category.service"), exports);
|
|
@@ -0,0 +1,56 @@
|
|
|
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 Iproducer {
|
|
28
|
+
user: Types.ObjectId | Iuser;
|
|
29
|
+
}
|
|
30
|
+
export interface IproducerBooking {
|
|
31
|
+
producer: Types.ObjectId | Iuser;
|
|
32
|
+
user: Types.ObjectId | Iuser;
|
|
33
|
+
platform: string;
|
|
34
|
+
details: string;
|
|
35
|
+
cycle: string;
|
|
36
|
+
episodes: number;
|
|
37
|
+
episodeduration: number;
|
|
38
|
+
attachments: string[];
|
|
39
|
+
expectedbudget: number;
|
|
40
|
+
expectedprofits: number;
|
|
41
|
+
status: 'pending' | 'accepted' | 'rejected' | 'appoinment pending' | 'appoinment accepted' | 'appoinment rejected';
|
|
42
|
+
appoinment: {
|
|
43
|
+
date: string;
|
|
44
|
+
address: string;
|
|
45
|
+
location: {
|
|
46
|
+
lat: number;
|
|
47
|
+
lng: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export declare const ProducerBooking: import("mongoose").Model<IproducerBooking, {}, {}, {}, import("mongoose").Document<unknown, {}, IproducerBooking> & IproducerBooking & {
|
|
52
|
+
_id: Types.ObjectId;
|
|
53
|
+
}, any>;
|
|
54
|
+
export declare const Producer: import("mongoose").Model<Iproducer, {}, {}, {}, import("mongoose").Document<unknown, {}, Iproducer> & Iproducer & {
|
|
55
|
+
_id: Types.ObjectId;
|
|
56
|
+
}, any>;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Producer = exports.ProducerBooking = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const cycles_1 = require("../types/cycles");
|
|
6
|
+
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
|
+
exports.Producer = (0, mongoose_1.model)(model_names_1.MODELS.producer, new mongoose_1.Schema({
|
|
77
|
+
user: {
|
|
78
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
79
|
+
ref: model_names_1.MODELS.user
|
|
80
|
+
}
|
|
81
|
+
}, { timestamps: true, collection: model_names_1.MODELS.producer }));
|
|
@@ -51,7 +51,8 @@ export declare enum PERMISSIONS {
|
|
|
51
51
|
updateTeamProjectCreativeHandler = "update team project creative",
|
|
52
52
|
createTeamProjectHandler = "create team project",
|
|
53
53
|
updateTeamProjectHandler = "update team project",
|
|
54
|
-
deleteTeamProjectHandler = "delete team project"
|
|
54
|
+
deleteTeamProjectHandler = "delete team project",
|
|
55
|
+
getProducersContractCrm = "get producers contract crm"
|
|
55
56
|
}
|
|
56
57
|
export declare const permissions: {
|
|
57
58
|
auth: PERMISSIONS[];
|
|
@@ -64,6 +64,8 @@ var PERMISSIONS;
|
|
|
64
64
|
PERMISSIONS["createTeamProjectHandler"] = "create team project";
|
|
65
65
|
PERMISSIONS["updateTeamProjectHandler"] = "update team project";
|
|
66
66
|
PERMISSIONS["deleteTeamProjectHandler"] = "delete team project";
|
|
67
|
+
// producer
|
|
68
|
+
PERMISSIONS["getProducersContractCrm"] = "get producers contract crm";
|
|
67
69
|
})(PERMISSIONS || (exports.PERMISSIONS = PERMISSIONS = {}));
|
|
68
70
|
exports.permissions = {
|
|
69
71
|
auth: [
|
package/build/types/cycles.d.ts
CHANGED
package/build/types/cycles.js
CHANGED
package/build/types/folders.d.ts
CHANGED
package/build/types/folders.js
CHANGED
|
@@ -17,5 +17,7 @@ export declare enum MODELS {
|
|
|
17
17
|
messages = "messages",
|
|
18
18
|
notifications = "notifications",
|
|
19
19
|
teamProject = "teamProjects",
|
|
20
|
-
teamProjectBooking = "teamProjects-booking"
|
|
20
|
+
teamProjectBooking = "teamProjects-booking",
|
|
21
|
+
producer = "producers",
|
|
22
|
+
producerBooking = "producer-booking"
|
|
21
23
|
}
|
|
@@ -22,4 +22,6 @@ var MODELS;
|
|
|
22
22
|
MODELS["notifications"] = "notifications";
|
|
23
23
|
MODELS["teamProject"] = "teamProjects";
|
|
24
24
|
MODELS["teamProjectBooking"] = "teamProjects-booking";
|
|
25
|
+
MODELS["producer"] = "producers";
|
|
26
|
+
MODELS["producerBooking"] = "producer-booking";
|
|
25
27
|
})(MODELS || (exports.MODELS = MODELS = {}));
|
package/package.json
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@duvdu-v1/duvdu",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"main": "./build/index.js",
|
|
5
|
-
"types": "./build/index.d.ts",
|
|
6
|
-
"files": [
|
|
7
|
-
"build/**/*"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"clean": "rimraf ./build",
|
|
11
|
-
"build": "npm run clean && tsc",
|
|
12
|
-
"fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/portfolio-post ./build/common",
|
|
13
|
-
"pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
|
|
14
|
-
"lint": "eslint .",
|
|
15
|
-
"lint:fix": "eslint --fix .",
|
|
16
|
-
"format": "prettier --write ."
|
|
17
|
-
},
|
|
18
|
-
"keywords": [],
|
|
19
|
-
"author": "motemed khaled",
|
|
20
|
-
"license": "ISC",
|
|
21
|
-
"dependencies": {
|
|
22
|
-
"@duvdu-v1/duvdu": "^1.1.4",
|
|
23
|
-
"@types/express": "^4.17.21",
|
|
24
|
-
"@types/express-session": "^1.18.0",
|
|
25
|
-
"@types/jsonwebtoken": "^9.0.5",
|
|
26
|
-
"@types/multer": "^1.4.11",
|
|
27
|
-
"@types/node": "^20.11.0",
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
29
|
-
"@typescript-eslint/parser": "^6.19.0",
|
|
30
|
-
"aws-sdk": "^2.1595.0",
|
|
31
|
-
"connect-redis": "^7.1.1",
|
|
32
|
-
"express": "^4.18.2",
|
|
33
|
-
"express-async-errors": "^3.1.1",
|
|
34
|
-
"express-session": "^1.18.0",
|
|
35
|
-
"express-validator": "^7.0.1",
|
|
36
|
-
"jsonwebtoken": "^9.0.2",
|
|
37
|
-
"mongoose": "^8.0.4",
|
|
38
|
-
"multer": "^1.4.5-lts.1",
|
|
39
|
-
"node-nats-streaming": "^0.3.2",
|
|
40
|
-
"redis": "^4.6.13",
|
|
41
|
-
"rimraf": "^5.0.5",
|
|
42
|
-
"typescript": "^5.3.3",
|
|
43
|
-
"uuid": "^9.0.1"
|
|
44
|
-
},
|
|
45
|
-
"devDependencies": {
|
|
46
|
-
"@types/uuid": "^9.0.8",
|
|
47
|
-
"del-cli": "^5.1.0",
|
|
48
|
-
"eslint": "^8.56.0",
|
|
49
|
-
"eslint-config-prettier": "^9.1.0",
|
|
50
|
-
"eslint-plugin-import": "^2.29.1",
|
|
51
|
-
"eslint-plugin-prettier": "^5.1.3",
|
|
52
|
-
"prettier": "^3.2.4"
|
|
53
|
-
},
|
|
54
|
-
"description": ""
|
|
55
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@duvdu-v1/duvdu",
|
|
3
|
+
"version": "1.1.56",
|
|
4
|
+
"main": "./build/index.js",
|
|
5
|
+
"types": "./build/index.d.ts",
|
|
6
|
+
"files": [
|
|
7
|
+
"build/**/*"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"clean": "rimraf ./build",
|
|
11
|
+
"build": "npm run clean && tsc",
|
|
12
|
+
"fix:build": "mv ./build/common/src/* ./build && rm -rf ./build/auth ./build/portfolio-post ./build/common",
|
|
13
|
+
"pub": "git add . && git commit -m \"updates\" && npm version patch && npm run build && npm publish",
|
|
14
|
+
"lint": "eslint .",
|
|
15
|
+
"lint:fix": "eslint --fix .",
|
|
16
|
+
"format": "prettier --write ."
|
|
17
|
+
},
|
|
18
|
+
"keywords": [],
|
|
19
|
+
"author": "motemed khaled",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"dependencies": {
|
|
22
|
+
"@duvdu-v1/duvdu": "^1.1.4",
|
|
23
|
+
"@types/express": "^4.17.21",
|
|
24
|
+
"@types/express-session": "^1.18.0",
|
|
25
|
+
"@types/jsonwebtoken": "^9.0.5",
|
|
26
|
+
"@types/multer": "^1.4.11",
|
|
27
|
+
"@types/node": "^20.11.0",
|
|
28
|
+
"@typescript-eslint/eslint-plugin": "^6.19.0",
|
|
29
|
+
"@typescript-eslint/parser": "^6.19.0",
|
|
30
|
+
"aws-sdk": "^2.1595.0",
|
|
31
|
+
"connect-redis": "^7.1.1",
|
|
32
|
+
"express": "^4.18.2",
|
|
33
|
+
"express-async-errors": "^3.1.1",
|
|
34
|
+
"express-session": "^1.18.0",
|
|
35
|
+
"express-validator": "^7.0.1",
|
|
36
|
+
"jsonwebtoken": "^9.0.2",
|
|
37
|
+
"mongoose": "^8.0.4",
|
|
38
|
+
"multer": "^1.4.5-lts.1",
|
|
39
|
+
"node-nats-streaming": "^0.3.2",
|
|
40
|
+
"redis": "^4.6.13",
|
|
41
|
+
"rimraf": "^5.0.5",
|
|
42
|
+
"typescript": "^5.3.3",
|
|
43
|
+
"uuid": "^9.0.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@types/uuid": "^9.0.8",
|
|
47
|
+
"del-cli": "^5.1.0",
|
|
48
|
+
"eslint": "^8.56.0",
|
|
49
|
+
"eslint-config-prettier": "^9.1.0",
|
|
50
|
+
"eslint-plugin-import": "^2.29.1",
|
|
51
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
52
|
+
"prettier": "^3.2.4"
|
|
53
|
+
},
|
|
54
|
+
"description": ""
|
|
55
|
+
}
|