@aldb2b/common 1.0.525 → 1.0.528
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/entities/models/{events/event.entity.d.ts → companies/companies.provider.d.ts} +8 -11
- package/build/entities/models/companies/companies.provider.js +57 -0
- package/build/entities/models/companies/companies.provider.js.map +1 -0
- package/build/entities/models/companies/entities/company.entity.d.ts +16 -0
- package/build/entities/models/companies/entities/company.entity.js +7 -0
- package/build/entities/models/companies/entities/company.entity.js.map +1 -0
- package/build/entities/models/companies/entities/contact.entity.d.ts +13 -0
- package/build/entities/models/companies/entities/contact.entity.js +7 -0
- package/build/entities/models/companies/entities/contact.entity.js.map +1 -0
- package/build/entities/models/companies/index.d.ts +3 -3
- package/build/entities/models/companies/index.js +3 -3
- package/build/entities/models/companies/index.js.map +1 -1
- package/build/entities/models/events/entities/event.entity.d.ts +7 -0
- package/build/entities/models/events/entities/event.entity.js +7 -0
- package/build/entities/models/events/entities/event.entity.js.map +1 -0
- package/build/entities/models/{companies/contact-test.entity.d.ts → events/events.provider.d.ts} +8 -10
- package/build/entities/models/events/events.provider.js +20 -0
- package/build/entities/models/events/events.provider.js.map +1 -0
- package/build/entities/models/events/index.d.ts +2 -1
- package/build/entities/models/events/index.js +2 -1
- package/build/entities/models/events/index.js.map +1 -1
- package/build/entities/models/model.providers.d.ts +4 -5
- package/build/entities/models/model.providers.js +5 -34
- package/build/entities/models/model.providers.js.map +1 -1
- package/build/entities/models/users/entities/rolePermissions/index.js.map +1 -0
- package/build/entities/models/users/{rolePermissions → entities/rolePermissions}/permission.entity.d.ts +1 -1
- package/build/entities/models/users/entities/rolePermissions/permission.entity.js.map +1 -0
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.d.ts +65 -0
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.js +100 -0
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.js.map +1 -0
- package/build/entities/models/users/{users → entities/users}/chat-info.entity.d.ts +1 -1
- package/build/entities/models/users/entities/users/chat-info.entity.js.map +1 -0
- package/build/entities/models/users/entities/users/event-info-operations.enum.js.map +1 -0
- package/build/entities/models/users/{users → entities/users}/event-info.entity.d.ts +3 -4
- package/build/entities/models/users/{users → entities/users}/event-info.entity.js +3 -3
- package/build/entities/models/users/entities/users/event-info.entity.js.map +1 -0
- package/build/entities/models/users/entities/users/index.js.map +1 -0
- package/build/entities/models/users/{users → entities/users}/location.entity.d.ts +1 -1
- package/build/entities/models/users/entities/users/location.entity.js.map +1 -0
- package/build/entities/models/users/entities/users/user-role.enum.js.map +1 -0
- package/build/entities/models/users/entities/users/user-status.enum.js.map +1 -0
- package/build/entities/models/users/entities/users/user-type.enum.js.map +1 -0
- package/build/entities/models/users/{users → entities/users}/user.entity.d.ts +6 -8
- package/build/entities/models/users/entities/users/user.entity.js +169 -0
- package/build/entities/models/users/entities/users/user.entity.js.map +1 -0
- package/build/entities/models/users/index.d.ts +3 -2
- package/build/entities/models/users/index.js +3 -2
- package/build/entities/models/users/index.js.map +1 -1
- package/build/entities/models/users/users.provider.d.ts +58 -0
- package/build/entities/models/users/users.provider.js +24 -0
- package/build/entities/models/users/users.provider.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/entities/models/companies/company.entity.d.ts +0 -70
- package/build/entities/models/companies/company.entity.js +0 -21
- package/build/entities/models/companies/company.entity.js.map +0 -1
- package/build/entities/models/companies/contact-test.entity.js +0 -11
- package/build/entities/models/companies/contact-test.entity.js.map +0 -1
- package/build/entities/models/companies/contact.entity.d.ts +0 -67
- package/build/entities/models/companies/contact.entity.js +0 -18
- package/build/entities/models/companies/contact.entity.js.map +0 -1
- package/build/entities/models/events/event.entity.js +0 -12
- package/build/entities/models/events/event.entity.js.map +0 -1
- package/build/entities/models/users/rolePermissions/index.js.map +0 -1
- package/build/entities/models/users/rolePermissions/permission.entity.js.map +0 -1
- package/build/entities/models/users/rolePermissions/role-permission.entity.d.ts +0 -70
- package/build/entities/models/users/rolePermissions/role-permission.entity.js +0 -98
- package/build/entities/models/users/rolePermissions/role-permission.entity.js.map +0 -1
- package/build/entities/models/users/users/chat-info.entity.js.map +0 -1
- package/build/entities/models/users/users/event-info-operations.enum.js.map +0 -1
- package/build/entities/models/users/users/event-info.entity.js.map +0 -1
- package/build/entities/models/users/users/index.js.map +0 -1
- package/build/entities/models/users/users/location.entity.js.map +0 -1
- package/build/entities/models/users/users/user-role.enum.js.map +0 -1
- package/build/entities/models/users/users/user-status.enum.js.map +0 -1
- package/build/entities/models/users/users/user-type.enum.js.map +0 -1
- package/build/entities/models/users/users/user.entity.js +0 -163
- package/build/entities/models/users/users/user.entity.js.map +0 -1
- /package/build/entities/models/users/{rolePermissions → entities/rolePermissions}/index.d.ts +0 -0
- /package/build/entities/models/users/{rolePermissions → entities/rolePermissions}/index.js +0 -0
- /package/build/entities/models/users/{rolePermissions → entities/rolePermissions}/permission.entity.js +0 -0
- /package/build/entities/models/users/{users → entities/users}/chat-info.entity.js +0 -0
- /package/build/entities/models/users/{users → entities/users}/event-info-operations.enum.d.ts +0 -0
- /package/build/entities/models/users/{users → entities/users}/event-info-operations.enum.js +0 -0
- /package/build/entities/models/users/{users → entities/users}/index.d.ts +0 -0
- /package/build/entities/models/users/{users → entities/users}/index.js +0 -0
- /package/build/entities/models/users/{users → entities/users}/location.entity.js +0 -0
- /package/build/entities/models/users/{users → entities/users}/user-role.enum.d.ts +0 -0
- /package/build/entities/models/users/{users → entities/users}/user-role.enum.js +0 -0
- /package/build/entities/models/users/{users → entities/users}/user-status.enum.d.ts +0 -0
- /package/build/entities/models/users/{users → entities/users}/user-status.enum.js +0 -0
- /package/build/entities/models/users/{users → entities/users}/user-type.enum.d.ts +0 -0
- /package/build/entities/models/users/{users → entities/users}/user-type.enum.js +0 -0
package/package.json
CHANGED
|
@@ -1,70 +0,0 @@
|
|
|
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="@aldb2b/common/node_modules/mongoose/types/aggregate" />
|
|
25
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/callback" />
|
|
26
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/collection" />
|
|
27
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/connection" />
|
|
28
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/cursor" />
|
|
29
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/document" />
|
|
30
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/error" />
|
|
31
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/expressions" />
|
|
32
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/helpers" />
|
|
33
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/middlewares" />
|
|
34
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/indexes" />
|
|
35
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/models" />
|
|
36
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/mongooseoptions" />
|
|
37
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/pipelinestage" />
|
|
38
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/populate" />
|
|
39
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/query" />
|
|
40
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schemaoptions" />
|
|
41
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schematypes" />
|
|
42
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/session" />
|
|
43
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/types" />
|
|
44
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/utility" />
|
|
45
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/validation" />
|
|
46
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import * as mongoose from 'mongoose';
|
|
52
|
-
import { Contact } from './contact.entity';
|
|
53
|
-
import { CustomModel } from '../../../db/CustomModel';
|
|
54
|
-
export declare class Company {
|
|
55
|
-
_id: string;
|
|
56
|
-
eventId: Event;
|
|
57
|
-
contacts: Contact[];
|
|
58
|
-
name: string;
|
|
59
|
-
website: string;
|
|
60
|
-
industry?: string;
|
|
61
|
-
ABCompanyUrl?: string;
|
|
62
|
-
tel?: string;
|
|
63
|
-
email?: string;
|
|
64
|
-
mobile?: string;
|
|
65
|
-
logo?: string;
|
|
66
|
-
}
|
|
67
|
-
export type CompanyModel = CustomModel<Company>;
|
|
68
|
-
export declare const CompanySchema: mongoose.Schema<Company, CompanyModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Company, mongoose.Document<unknown, {}, mongoose.FlatRecord<Company>> & mongoose.FlatRecord<Company> & Required<{
|
|
69
|
-
_id: string;
|
|
70
|
-
}>>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CompanySchema = exports.Company = void 0;
|
|
4
|
-
const mongoose = require("mongoose");
|
|
5
|
-
const ObjectId = mongoose.Schema.Types.ObjectId;
|
|
6
|
-
class Company {
|
|
7
|
-
}
|
|
8
|
-
exports.Company = Company;
|
|
9
|
-
exports.CompanySchema = new mongoose.Schema({
|
|
10
|
-
eventId: { type: ObjectId, ref: 'Ecent' },
|
|
11
|
-
contacts: [{ type: ObjectId, ref: 'Contact' }],
|
|
12
|
-
name: { type: String, required: true },
|
|
13
|
-
website: { type: String, required: true },
|
|
14
|
-
industry: { type: String, trim: true },
|
|
15
|
-
ABCompanyUrl: { type: String, trim: true },
|
|
16
|
-
tel: { type: String, trim: true },
|
|
17
|
-
email: { type: String, trim: true },
|
|
18
|
-
mobile: { type: String, trim: true },
|
|
19
|
-
logo: { type: String, trim: true },
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=company.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"company.entity.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/company.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAGpC,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAE/C,MAAa,OAAO;CAYnB;AAZD,0BAYC;AAEY,QAAA,aAAa,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAwB;IACtE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE;IACzC,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;IAC9C,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACtC,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACzC,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IACtC,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IAC1C,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IACjC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IACnC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IACpC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;CACnC,CAAC,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContactTestSchema = exports.ContactTest = void 0;
|
|
4
|
-
const mongoose = require("mongoose");
|
|
5
|
-
class ContactTest {
|
|
6
|
-
}
|
|
7
|
-
exports.ContactTest = ContactTest;
|
|
8
|
-
exports.ContactTestSchema = new mongoose.Schema({
|
|
9
|
-
title: { type: String },
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=contact-test.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact-test.entity.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/contact-test.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAGpC,MAAa,WAAW;CAGvB;AAHD,kCAGC;AAEY,QAAA,iBAAiB,GAAG,IAAI,QAAQ,CAAC,MAAM,CAGlD;IACA,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -1,67 +0,0 @@
|
|
|
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="@aldb2b/common/node_modules/mongoose/types/aggregate" />
|
|
25
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/callback" />
|
|
26
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/collection" />
|
|
27
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/connection" />
|
|
28
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/cursor" />
|
|
29
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/document" />
|
|
30
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/error" />
|
|
31
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/expressions" />
|
|
32
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/helpers" />
|
|
33
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/middlewares" />
|
|
34
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/indexes" />
|
|
35
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/models" />
|
|
36
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/mongooseoptions" />
|
|
37
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/pipelinestage" />
|
|
38
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/populate" />
|
|
39
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/query" />
|
|
40
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schemaoptions" />
|
|
41
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schematypes" />
|
|
42
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/session" />
|
|
43
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/types" />
|
|
44
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/utility" />
|
|
45
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/validation" />
|
|
46
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import * as mongoose from 'mongoose';
|
|
52
|
-
import { Company } from './company.entity';
|
|
53
|
-
import { CustomModel } from '../../../db/CustomModel';
|
|
54
|
-
export declare class Contact {
|
|
55
|
-
_id: string;
|
|
56
|
-
eventId: Event;
|
|
57
|
-
company: Company;
|
|
58
|
-
firstname: string;
|
|
59
|
-
lastname: string;
|
|
60
|
-
title: string;
|
|
61
|
-
avatar: string;
|
|
62
|
-
email: string;
|
|
63
|
-
}
|
|
64
|
-
export type ContactModel = CustomModel<Contact>;
|
|
65
|
-
export declare const ContactSchema: mongoose.Schema<Contact, ContactModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Contact, mongoose.Document<unknown, {}, mongoose.FlatRecord<Contact>> & mongoose.FlatRecord<Contact> & Required<{
|
|
66
|
-
_id: string;
|
|
67
|
-
}>>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContactSchema = exports.Contact = void 0;
|
|
4
|
-
const mongoose = require("mongoose");
|
|
5
|
-
const ObjectId = mongoose.Schema.Types.ObjectId;
|
|
6
|
-
class Contact {
|
|
7
|
-
}
|
|
8
|
-
exports.Contact = Contact;
|
|
9
|
-
exports.ContactSchema = new mongoose.Schema({
|
|
10
|
-
eventId: { type: ObjectId, ref: 'Event' },
|
|
11
|
-
company: { type: ObjectId, ref: 'Company' },
|
|
12
|
-
firstname: { type: String, required: true },
|
|
13
|
-
lastname: { type: String, required: true },
|
|
14
|
-
title: { type: String },
|
|
15
|
-
avatar: { type: String },
|
|
16
|
-
email: { type: String, required: true },
|
|
17
|
-
});
|
|
18
|
-
//# sourceMappingURL=contact.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/contact.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAGpC,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAE/C,MAAa,OAAO;CASnB;AATD,0BASC;AAEY,QAAA,aAAa,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAwB;IACtE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE;IACzC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;IAC3C,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACvB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;CACxC,CAAC,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventSchema = exports.Event = void 0;
|
|
4
|
-
const mongoose = require("mongoose");
|
|
5
|
-
class Event {
|
|
6
|
-
}
|
|
7
|
-
exports.Event = Event;
|
|
8
|
-
exports.EventSchema = new mongoose.Schema({
|
|
9
|
-
name: { type: String, required: true, trim: true },
|
|
10
|
-
subdomain: { type: String, required: true, trim: true },
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=event.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event.entity.js","sourceRoot":"","sources":["../../../../src/entities/models/events/event.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAGpC,MAAa,KAAK;CAIjB;AAJD,sBAIC;AAEY,QAAA,WAAW,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAoB;IAChE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IAClD,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;CACxD,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/rolePermissions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,sDAAmC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/rolePermissions/permission.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAG/B,MAAa,UAAU;CAOtB;AAPD,gCAOC;AAGY,QAAA,gBAAgB,GAAG,IAAI,kBAAQ,CAAC,MAAM,CAGjD;IACA,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACzC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IACnD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IACnD,SAAS,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;CAC5D,CAAC,CAAA"}
|
|
@@ -1,70 +0,0 @@
|
|
|
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="@aldb2b/common/node_modules/mongoose/types/aggregate" />
|
|
25
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/callback" />
|
|
26
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/collection" />
|
|
27
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/connection" />
|
|
28
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/cursor" />
|
|
29
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/document" />
|
|
30
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/error" />
|
|
31
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/expressions" />
|
|
32
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/helpers" />
|
|
33
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/middlewares" />
|
|
34
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/indexes" />
|
|
35
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/models" />
|
|
36
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/mongooseoptions" />
|
|
37
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/pipelinestage" />
|
|
38
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/populate" />
|
|
39
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/query" />
|
|
40
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schemaoptions" />
|
|
41
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/schematypes" />
|
|
42
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/session" />
|
|
43
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/types" />
|
|
44
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/utility" />
|
|
45
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/validation" />
|
|
46
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
|
|
47
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose" />
|
|
48
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
49
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
|
-
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import mongoose from 'mongoose';
|
|
52
|
-
import { UserRole } from '../users/user-role.enum';
|
|
53
|
-
import { UserType } from '../users/user-type.enum';
|
|
54
|
-
import { Permission } from './permission.entity';
|
|
55
|
-
import { CustomModel } from '../../../../db/CustomModel';
|
|
56
|
-
export declare class RolePermission {
|
|
57
|
-
_id: string;
|
|
58
|
-
title?: UserRole;
|
|
59
|
-
type: UserType;
|
|
60
|
-
permissions: Permission[];
|
|
61
|
-
createdAt: Date;
|
|
62
|
-
updatedAt: Date;
|
|
63
|
-
}
|
|
64
|
-
export type RolePermissionModel = CustomModel<RolePermission>;
|
|
65
|
-
export declare const InitialRolePermissionSchema: mongoose.Schema<RolePermission, RolePermissionModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RolePermission, mongoose.Document<unknown, {}, mongoose.FlatRecord<RolePermission>> & mongoose.FlatRecord<RolePermission> & Required<{
|
|
66
|
-
_id: string;
|
|
67
|
-
}>>;
|
|
68
|
-
export declare const RolePermissionSchema: mongoose.Schema<RolePermission, RolePermissionModel, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, RolePermission, mongoose.Document<unknown, {}, mongoose.FlatRecord<RolePermission>> & mongoose.FlatRecord<RolePermission> & Required<{
|
|
69
|
-
_id: string;
|
|
70
|
-
}>>;
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RolePermissionSchema = exports.InitialRolePermissionSchema = exports.RolePermission = void 0;
|
|
4
|
-
const mongoose_1 = require("mongoose");
|
|
5
|
-
const user_role_enum_1 = require("../users/user-role.enum");
|
|
6
|
-
const user_type_enum_1 = require("../users/user-type.enum");
|
|
7
|
-
const validateProjectionResult_1 = require("../../../../validators/validateProjectionResult");
|
|
8
|
-
const validateProjection_1 = require("../../../../validators/validateProjection");
|
|
9
|
-
const validateNewItem_1 = require("../../../../validators/validateNewItem");
|
|
10
|
-
const validateUpdateItem_1 = require("../../../../validators/validateUpdateItem");
|
|
11
|
-
const permission_entity_1 = require("./permission.entity");
|
|
12
|
-
class RolePermission {
|
|
13
|
-
}
|
|
14
|
-
exports.RolePermission = RolePermission;
|
|
15
|
-
exports.InitialRolePermissionSchema = new mongoose_1.default.Schema({
|
|
16
|
-
title: {
|
|
17
|
-
type: String,
|
|
18
|
-
enum: Object.values(user_role_enum_1.UserRole),
|
|
19
|
-
required: true,
|
|
20
|
-
validate: [
|
|
21
|
-
function validateRoleType() {
|
|
22
|
-
let enumValues;
|
|
23
|
-
if (this.type == user_type_enum_1.UserType.ADMIN) {
|
|
24
|
-
enumValues = [
|
|
25
|
-
user_role_enum_1.UserRole.ADMIN,
|
|
26
|
-
user_role_enum_1.UserRole.MANAGER,
|
|
27
|
-
user_role_enum_1.UserRole.OPERATION,
|
|
28
|
-
user_role_enum_1.UserRole.ONGROUND,
|
|
29
|
-
user_role_enum_1.UserRole.EDITOR,
|
|
30
|
-
];
|
|
31
|
-
}
|
|
32
|
-
else if (this.type == user_type_enum_1.UserType.ORGANIZER) {
|
|
33
|
-
enumValues = [
|
|
34
|
-
user_role_enum_1.UserRole.ADMIN,
|
|
35
|
-
user_role_enum_1.UserRole.MANAGER,
|
|
36
|
-
user_role_enum_1.UserRole.OPERATION,
|
|
37
|
-
user_role_enum_1.UserRole.ONGROUND,
|
|
38
|
-
user_role_enum_1.UserRole.VIEWER,
|
|
39
|
-
];
|
|
40
|
-
}
|
|
41
|
-
else if (this.type == user_type_enum_1.UserType.USER) {
|
|
42
|
-
enumValues = [user_role_enum_1.UserRole.USER, user_role_enum_1.UserRole.ADMIN];
|
|
43
|
-
}
|
|
44
|
-
if (enumValues.includes(this.title)) {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
return false;
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
'Role title is incorrect',
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
type: {
|
|
55
|
-
type: String,
|
|
56
|
-
enum: Object.values(user_type_enum_1.UserType),
|
|
57
|
-
required: true,
|
|
58
|
-
},
|
|
59
|
-
permissions: [{ type: permission_entity_1.PermissionSchema, required: true }],
|
|
60
|
-
createdAt: { type: Date, required: true, default: Date.now },
|
|
61
|
-
updatedAt: { type: Date, required: true, default: Date.now },
|
|
62
|
-
});
|
|
63
|
-
const allProjectionFieldArray = [
|
|
64
|
-
'_id',
|
|
65
|
-
'title',
|
|
66
|
-
'permissions',
|
|
67
|
-
'type',
|
|
68
|
-
'createdAt',
|
|
69
|
-
'updatedAt',
|
|
70
|
-
];
|
|
71
|
-
const allValidateNewItemFieldArray = [
|
|
72
|
-
'_id',
|
|
73
|
-
'title',
|
|
74
|
-
'permissions',
|
|
75
|
-
'type',
|
|
76
|
-
'createdAt',
|
|
77
|
-
'updatedAt',
|
|
78
|
-
];
|
|
79
|
-
const allValidateUpdateItemFieldArray = [
|
|
80
|
-
'_id',
|
|
81
|
-
'title',
|
|
82
|
-
'permissions',
|
|
83
|
-
'type',
|
|
84
|
-
'createdAt',
|
|
85
|
-
'updatedAt',
|
|
86
|
-
];
|
|
87
|
-
exports.InitialRolePermissionSchema.statics.validateProjectionResult =
|
|
88
|
-
necessaryProjectionObj => (0, validateProjectionResult_1.validateProjectionResult)(allProjectionFieldArray, necessaryProjectionObj);
|
|
89
|
-
exports.InitialRolePermissionSchema.statics.validateProjection =
|
|
90
|
-
necessaryProjectionArray => (0, validateProjection_1.validateProjection)(allProjectionFieldArray, necessaryProjectionArray);
|
|
91
|
-
exports.InitialRolePermissionSchema.statics.validateNewItem = newItemObj => (0, validateNewItem_1.validateNewItem)(allValidateNewItemFieldArray, newItemObj);
|
|
92
|
-
exports.InitialRolePermissionSchema.statics.validateUpdateItem = updateItemObj => (0, validateUpdateItem_1.validateUpdateItem)(allValidateUpdateItemFieldArray, updateItemObj);
|
|
93
|
-
exports.InitialRolePermissionSchema.pre('findOneAndUpdate', async function (next) {
|
|
94
|
-
this._update.updatedAt = new Date();
|
|
95
|
-
next();
|
|
96
|
-
});
|
|
97
|
-
exports.RolePermissionSchema = exports.InitialRolePermissionSchema;
|
|
98
|
-
//# sourceMappingURL=role-permission.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role-permission.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/rolePermissions/role-permission.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA+B;AAC/B,4DAAkD;AAClD,4DAAkD;AAClD,8FAA0F;AAC1F,kFAA8E;AAC9E,4EAAwE;AACxE,kFAA8E;AAC9E,2DAAkE;AA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B,EAClB,KAAK,WAAiB,IAAI;IAGxB,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAA;IACnC,IAAI,EAAE,CAAA;AACR,CAAC,CACF,CAAA;AAEY,QAAA,oBAAoB,GAAG,mCAA2B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat-info.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/chat-info.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAGpC,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAEY,QAAA,cAAc,GAAG,IAAI,QAAQ,CAAC,MAAM,CAA0B;IACzE,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-info-operations.enum.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/event-info-operations.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,mBAIX;AAJD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;AACnB,CAAC,EAJW,mBAAmB,mCAAnB,mBAAmB,QAI9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"event-info.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/event-info.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAEpC,+EAAqE;AAKrE,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAE/C,MAAa,SAAS;CASrB;AATD,8BASC;AAGY,QAAA,eAAe,GAAG,IAAI,QAAQ,CAAC,MAAM,CAA4B;IAC5E,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;IACzD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;IAC7B,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC/D,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;QAClC,QAAQ,EAAE,IAAI;KACf;IACD,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;IAC5D,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;CAC7D,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC;AAClC,sDAAmC;AACnC,+DAA4C;AAC5C,oDAAiC;AACjC,gDAA6B;AAC7B,mDAAgC;AAChC,qDAAkC;AAClC,mDAAgC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"location.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/location.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AAGpC,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AAEY,QAAA,cAAc,GAAG,IAAI,QAAQ,CAAC,MAAM,CAA0B;IACzE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE;IACzE,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;CAChD,CAAC,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-role.enum.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/user-role.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAQX;AARD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,+BAAmB,CAAA;IACnB,mCAAuB,CAAA;IACvB,iCAAqB,CAAA;IACrB,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,6BAAiB,CAAA;AACnB,CAAC,EARW,QAAQ,wBAAR,QAAQ,QAQnB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-status.enum.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/user-status.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;IACrB,iCAAmB,CAAA;IACnB,iCAAmB,CAAA;AACrB,CAAC,EALW,UAAU,0BAAV,UAAU,QAKrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-type.enum.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/user-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,yBAAa,CAAA;AACf,CAAC,EAJW,QAAQ,wBAAR,QAAQ,QAInB"}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserSchema = exports.User = void 0;
|
|
4
|
-
const mongoose = require("mongoose");
|
|
5
|
-
const user_status_enum_1 = require("./user-status.enum");
|
|
6
|
-
const chat_preferences_enum_1 = require("../../../../enums/chat-preferences-enum");
|
|
7
|
-
const user_language_enum_1 = require("../../../../types/user-language.enum");
|
|
8
|
-
const validateProjectionResult_1 = require("../../../../validators/validateProjectionResult");
|
|
9
|
-
const validateProjection_1 = require("../../../../validators/validateProjection");
|
|
10
|
-
const validateNewItem_1 = require("../../../../validators/validateNewItem");
|
|
11
|
-
const validateUpdateItem_1 = require("../../../../validators/validateUpdateItem");
|
|
12
|
-
const location_entity_1 = require("./location.entity");
|
|
13
|
-
const chat_info_entity_1 = require("./chat-info.entity");
|
|
14
|
-
const event_info_entity_1 = require("./event-info.entity");
|
|
15
|
-
const ObjectId = mongoose.Schema.Types.ObjectId;
|
|
16
|
-
class User {
|
|
17
|
-
}
|
|
18
|
-
exports.User = User;
|
|
19
|
-
const InitialUserSchema = new mongoose.Schema({
|
|
20
|
-
email: { type: String, required: true, unique: true },
|
|
21
|
-
cognitoUserIds: { type: [String], trim: true },
|
|
22
|
-
firstname: { type: String },
|
|
23
|
-
lastname: { type: String },
|
|
24
|
-
mobile: { type: String },
|
|
25
|
-
company: { type: ObjectId },
|
|
26
|
-
avatar: { type: String },
|
|
27
|
-
twitter: { type: String },
|
|
28
|
-
linkedIn: { type: String },
|
|
29
|
-
jobPosition: { type: String },
|
|
30
|
-
wish: { type: String },
|
|
31
|
-
description: { type: String },
|
|
32
|
-
impression: { type: String },
|
|
33
|
-
location: { type: location_entity_1.LocationSchema },
|
|
34
|
-
chatInfo: { type: chat_info_entity_1.ChatInfoSchema },
|
|
35
|
-
role: { type: ObjectId, ref: 'RolePermission', required: true },
|
|
36
|
-
eventInfos: [{ type: event_info_entity_1.EventInfoSchema }],
|
|
37
|
-
status: {
|
|
38
|
-
type: String,
|
|
39
|
-
enum: Object.values(user_status_enum_1.UserStatus),
|
|
40
|
-
required: true,
|
|
41
|
-
default: user_status_enum_1.UserStatus.INACTIVE,
|
|
42
|
-
},
|
|
43
|
-
language: {
|
|
44
|
-
type: String,
|
|
45
|
-
enum: Object.values(user_language_enum_1.UserLanguage),
|
|
46
|
-
required: true,
|
|
47
|
-
default: user_language_enum_1.UserLanguage.ENGLISH,
|
|
48
|
-
},
|
|
49
|
-
chatPreferences: {
|
|
50
|
-
type: String,
|
|
51
|
-
enum: Object.values(chat_preferences_enum_1.ChatPreferences),
|
|
52
|
-
required: true,
|
|
53
|
-
default: chat_preferences_enum_1.ChatPreferences.ALL,
|
|
54
|
-
},
|
|
55
|
-
lastLoggedIn: { type: Date },
|
|
56
|
-
lastActive: { type: Date },
|
|
57
|
-
deletedAt: { type: Date },
|
|
58
|
-
deletedBy: { type: ObjectId, ref: 'User' },
|
|
59
|
-
lastLoggedInContactId: {
|
|
60
|
-
type: ObjectId,
|
|
61
|
-
ref: 'Contact',
|
|
62
|
-
},
|
|
63
|
-
lastLoggedInCompanyId: {
|
|
64
|
-
type: ObjectId,
|
|
65
|
-
ref: 'Company',
|
|
66
|
-
},
|
|
67
|
-
lastLoggedInEventId: { type: ObjectId, ref: 'Event' },
|
|
68
|
-
createdAt: { type: Date, required: true, default: Date.now },
|
|
69
|
-
updatedAt: { type: Date, required: true, default: Date.now },
|
|
70
|
-
});
|
|
71
|
-
const allProjectionFieldArray = [
|
|
72
|
-
'_id',
|
|
73
|
-
'email',
|
|
74
|
-
'cognitoUserIds',
|
|
75
|
-
'firstname',
|
|
76
|
-
'lastname',
|
|
77
|
-
'mobile',
|
|
78
|
-
'location',
|
|
79
|
-
'company',
|
|
80
|
-
'avatar',
|
|
81
|
-
'twitter',
|
|
82
|
-
'linkedIn',
|
|
83
|
-
'role',
|
|
84
|
-
'description',
|
|
85
|
-
'impression',
|
|
86
|
-
'wish',
|
|
87
|
-
'jobPosition',
|
|
88
|
-
'status',
|
|
89
|
-
'eventInfos',
|
|
90
|
-
'language',
|
|
91
|
-
'chatPreferences',
|
|
92
|
-
'lastLoggedIn',
|
|
93
|
-
'lastActive',
|
|
94
|
-
'deletedAt',
|
|
95
|
-
'deletedBy',
|
|
96
|
-
'createdAt',
|
|
97
|
-
'updatedAt',
|
|
98
|
-
];
|
|
99
|
-
const allValidateNewItemFieldArray = [
|
|
100
|
-
'_id',
|
|
101
|
-
'email',
|
|
102
|
-
'cognitoUserIds',
|
|
103
|
-
'firstname',
|
|
104
|
-
'lastname',
|
|
105
|
-
'mobile',
|
|
106
|
-
'company',
|
|
107
|
-
'avatar',
|
|
108
|
-
'twitter',
|
|
109
|
-
'linkedIn',
|
|
110
|
-
'role',
|
|
111
|
-
'description',
|
|
112
|
-
'impression',
|
|
113
|
-
'wish',
|
|
114
|
-
'jobPosition',
|
|
115
|
-
'status',
|
|
116
|
-
'eventInfos',
|
|
117
|
-
'language',
|
|
118
|
-
'chatPreferences',
|
|
119
|
-
'lastLoggedIn',
|
|
120
|
-
'lastActive',
|
|
121
|
-
'deletedAt',
|
|
122
|
-
'deletedBy',
|
|
123
|
-
'createdAt',
|
|
124
|
-
'updatedAt',
|
|
125
|
-
];
|
|
126
|
-
const allValidateUpdateItemFieldArray = [
|
|
127
|
-
'_id',
|
|
128
|
-
'email',
|
|
129
|
-
'cognitoUserIds',
|
|
130
|
-
'firstname',
|
|
131
|
-
'lastname',
|
|
132
|
-
'mobile',
|
|
133
|
-
'company',
|
|
134
|
-
'avatar',
|
|
135
|
-
'twitter',
|
|
136
|
-
'linkedIn',
|
|
137
|
-
'role',
|
|
138
|
-
'description',
|
|
139
|
-
'impression',
|
|
140
|
-
'wish',
|
|
141
|
-
'jobPosition',
|
|
142
|
-
'status',
|
|
143
|
-
'eventInfos',
|
|
144
|
-
'language',
|
|
145
|
-
'chatPreferences',
|
|
146
|
-
'lastLoggedIn',
|
|
147
|
-
'lastActive',
|
|
148
|
-
'deletedAt',
|
|
149
|
-
'deletedBy',
|
|
150
|
-
'createdAt',
|
|
151
|
-
'updatedAt',
|
|
152
|
-
];
|
|
153
|
-
InitialUserSchema.statics.validateProjectionResult = necessaryProjectionObj => (0, validateProjectionResult_1.validateProjectionResult)(allProjectionFieldArray, necessaryProjectionObj);
|
|
154
|
-
InitialUserSchema.statics.validateProjection = necessaryProjectionArray => (0, validateProjection_1.validateProjection)(allProjectionFieldArray, necessaryProjectionArray);
|
|
155
|
-
InitialUserSchema.statics.validateNewItem = newItemObj => (0, validateNewItem_1.validateNewItem)(allValidateNewItemFieldArray, newItemObj);
|
|
156
|
-
InitialUserSchema.statics.validateUpdateItem = updateItemObj => (0, validateUpdateItem_1.validateUpdateItem)(allValidateUpdateItemFieldArray, updateItemObj);
|
|
157
|
-
InitialUserSchema.pre('findOneAndUpdate', async function (next) {
|
|
158
|
-
this._update.updatedAt = new Date();
|
|
159
|
-
next();
|
|
160
|
-
});
|
|
161
|
-
InitialUserSchema.index({ 'eventInfos.eventId': 1 });
|
|
162
|
-
exports.UserSchema = InitialUserSchema;
|
|
163
|
-
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/users/user.entity.ts"],"names":[],"mappings":";;;AAAA,qCAAoC;AACpC,yDAA+C;AAC/C,mFAAyE;AACzE,6EAAmE;AACnE,8FAA0F;AAC1F,kFAA8E;AAC9E,4EAAwE;AACxE,kFAA8E;AAC9E,uDAAkD;AAClD,yDAA6D;AAC7D,2DAAgE;AAKhE,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAE/C,MAAa,IAAI;CA+BhB;AA/BD,oBA+BC;AAGD,MAAM,iBAAiB,GAAG,IAAI,QAAQ,CAAC,MAAM,CAAkB;IAC7D,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IACrD,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE;IAC9C,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IAC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