@aldb2b/common 1.0.622 → 1.0.624
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/entities.module.d.ts +0 -2
- package/build/entities/entities.module.js +13 -12
- package/build/entities/entities.module.js.map +1 -1
- package/build/entities/models/common/entities/audit-trail.entity.d.ts +3 -3
- package/build/entities/models/common/entities/audit-trail.entity.js +2 -2
- package/build/entities/models/common/entities/audit-trail.entity.js.map +1 -1
- package/build/entities/models/companies/companies.provider.js.map +1 -1
- package/build/entities/models/companies/entities/company.entity.d.ts +3 -3
- package/build/entities/models/companies/entities/company.entity.js +3 -3
- package/build/entities/models/companies/entities/company.entity.js.map +1 -1
- package/build/entities/models/companies/entities/contact.entity.d.ts +3 -3
- package/build/entities/models/companies/entities/contact.entity.js +3 -3
- package/build/entities/models/companies/entities/contact.entity.js.map +1 -1
- package/build/entities/models/events/entities/event/event.entity.d.ts +4 -4
- package/build/entities/models/events/entities/event/event.entity.js +4 -4
- package/build/entities/models/events/entities/event/event.entity.js.map +1 -1
- package/build/entities/models/events/entities/eventType/event-type.entity.d.ts +3 -3
- package/build/entities/models/events/entities/eventType/event-type.entity.js +2 -2
- package/build/entities/models/events/entities/eventType/event-type.entity.js.map +1 -1
- package/build/entities/models/events/entities/{timestamp.d.ts → timestamp.entity.d.ts} +5 -6
- package/build/entities/models/events/entities/{timestamp.js → timestamp.entity.js} +3 -3
- package/build/entities/models/events/entities/timestamp.entity.js.map +1 -0
- package/build/entities/models/events/events.provider.d.ts +2 -2
- package/build/entities/models/events/events.provider.js +5 -5
- package/build/entities/models/events/events.provider.js.map +1 -1
- package/build/entities/models/events/index.d.ts +1 -1
- package/build/entities/models/events/index.js +1 -1
- package/build/entities/models/events/index.js.map +1 -1
- package/build/entities/models/model.providers.d.ts +4 -4
- package/build/entities/models/users/entities/rolePermissions/permission.entity.d.ts +3 -3
- package/build/entities/models/users/entities/rolePermissions/permission.entity.js +1 -1
- package/build/entities/models/users/entities/rolePermissions/permission.entity.js.map +1 -1
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.d.ts +3 -3
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.js +2 -2
- package/build/entities/models/users/entities/rolePermissions/role-permission.entity.js.map +1 -1
- package/build/entities/models/users/entities/users/chat-info.entity.d.ts +1 -1
- package/build/entities/models/users/entities/users/chat-info.entity.js +1 -1
- package/build/entities/models/users/entities/users/chat-info.entity.js.map +1 -1
- package/build/entities/models/users/entities/users/event-info.entity.d.ts +5 -5
- package/build/entities/models/users/entities/users/event-info.entity.js +5 -19
- package/build/entities/models/users/entities/users/event-info.entity.js.map +1 -1
- package/build/entities/models/users/entities/users/location.entity.d.ts +3 -3
- package/build/entities/models/users/entities/users/location.entity.js +1 -1
- package/build/entities/models/users/entities/users/location.entity.js.map +1 -1
- package/build/entities/models/users/entities/users/user.entity.d.ts +3 -3
- package/build/entities/models/users/entities/users/user.entity.js +2 -2
- package/build/entities/models/users/entities/users/user.entity.js.map +1 -1
- package/build/entities/models/users/users.provider.d.ts +2 -2
- package/build/entities/models/users/users.provider.js +5 -5
- package/build/entities/models/users/users.provider.js.map +1 -1
- package/build/entities/services/generate-model.js +1 -1
- package/build/entities/services/generate-model.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/build/entities/models/events/entities/timestamp.js.map +0 -1
|
@@ -5,26 +5,27 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
5
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
|
-
var EntitiesModule_1;
|
|
9
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
9
|
exports.EntitiesModule = void 0;
|
|
11
10
|
const common_1 = require("@nestjs/common");
|
|
12
11
|
const mongoose_providers_1 = require("./mongoose.providers");
|
|
13
12
|
const model_providers_1 = require("./models/model.providers");
|
|
13
|
+
const config_1 = require("@nestjs/config");
|
|
14
14
|
const audit_trail_controller_1 = require("./models/common/controllers/audit-trail.controller");
|
|
15
|
-
let EntitiesModule =
|
|
16
|
-
static register() {
|
|
17
|
-
return {
|
|
18
|
-
module: EntitiesModule_1,
|
|
19
|
-
controllers: [audit_trail_controller_1.AuditTrailController],
|
|
20
|
-
providers: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
21
|
-
exports: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
22
|
-
};
|
|
23
|
-
}
|
|
15
|
+
let EntitiesModule = class EntitiesModule {
|
|
24
16
|
};
|
|
25
17
|
exports.EntitiesModule = EntitiesModule;
|
|
26
|
-
exports.EntitiesModule = EntitiesModule =
|
|
18
|
+
exports.EntitiesModule = EntitiesModule = __decorate([
|
|
27
19
|
(0, common_1.Global)(),
|
|
28
|
-
(0, common_1.Module)({
|
|
20
|
+
(0, common_1.Module)({
|
|
21
|
+
imports: [
|
|
22
|
+
config_1.ConfigModule.forRoot({
|
|
23
|
+
isGlobal: true,
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
controllers: [audit_trail_controller_1.AuditTrailController],
|
|
27
|
+
providers: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
28
|
+
exports: [...mongoose_providers_1.mongooseProviders, ...model_providers_1.modelProviders],
|
|
29
|
+
})
|
|
29
30
|
], EntitiesModule);
|
|
30
31
|
//# sourceMappingURL=entities.module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entities.module.js","sourceRoot":"","sources":["../../src/entities/entities.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entities.module.js","sourceRoot":"","sources":["../../src/entities/entities.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAA+C;AAC/C,6DAAwD;AACxD,8DAAyD;AACzD,2CAA6C;AAC7C,+FAAyF;AAalF,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAX1B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,qBAAY,CAAC,OAAO,CAAC;gBACnB,QAAQ,EAAE,IAAI;aACf,CAAC;SACH;QACD,WAAW,EAAE,CAAC,6CAAoB,CAAC;QACnC,SAAS,EAAE,CAAC,GAAG,sCAAiB,EAAE,GAAG,gCAAc,CAAC;QACpD,OAAO,EAAE,CAAC,GAAG,sCAAiB,EAAE,GAAG,gCAAc,CAAC;KACnD,CAAC;GACW,cAAc,CAAG"}
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
49
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import { Connection
|
|
51
|
+
import { Connection } from 'mongoose';
|
|
52
52
|
import { Event } from '../../events';
|
|
53
53
|
import { User } from '../../users';
|
|
54
54
|
import { ActionEnum } from '../../../../db/auditTrail/interfaces/Action.enum';
|
|
55
55
|
import { CustomModel } from '../../../../db/CustomModel';
|
|
56
56
|
export type AuditTrailModel = CustomModel<AuditTrail>;
|
|
57
|
-
export declare class AuditTrail
|
|
57
|
+
export declare class AuditTrail {
|
|
58
58
|
_id: string;
|
|
59
59
|
enrichByTool: boolean;
|
|
60
60
|
eventId: Event;
|
|
@@ -70,6 +70,6 @@ export declare class AuditTrail extends Document {
|
|
|
70
70
|
auditPayload: any;
|
|
71
71
|
performedAt: Date;
|
|
72
72
|
}
|
|
73
|
-
export declare const auditTrailFactory: (connection: Connection, eventConnection: Connection, userConnection: Connection) => import("mongoose").Model<AuditTrail, {}, {}, {}, Document<unknown, {}, AuditTrail> & AuditTrail & Required<{
|
|
73
|
+
export declare const auditTrailFactory: (connection: Connection, eventConnection: Connection, userConnection: Connection) => import("mongoose").Model<AuditTrail, {}, {}, {}, import("mongoose").Document<unknown, {}, AuditTrail> & AuditTrail & Required<{
|
|
74
74
|
_id: string;
|
|
75
75
|
}>, any>;
|
|
@@ -9,7 +9,7 @@ const get_model_ref_1 = require("../../../services/get-model-ref");
|
|
|
9
9
|
const generate_model_1 = require("../../../../entities/services/generate-model");
|
|
10
10
|
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
11
11
|
const Mixed = mongoose_1.Schema.Types.Mixed;
|
|
12
|
-
class AuditTrail
|
|
12
|
+
class AuditTrail {
|
|
13
13
|
}
|
|
14
14
|
exports.AuditTrail = AuditTrail;
|
|
15
15
|
const auditTrailFactory = (connection, eventConnection, userConnection) => {
|
|
@@ -64,7 +64,7 @@ const auditTrailFactory = (connection, eventConnection, userConnection) => {
|
|
|
64
64
|
type: Mixed,
|
|
65
65
|
},
|
|
66
66
|
performedAt: { type: Date, required: true, default: Date.now },
|
|
67
|
-
}, { discriminatorKey: '
|
|
67
|
+
}, { discriminatorKey: 'AuditTrail' });
|
|
68
68
|
const allProjectionFieldArray = [
|
|
69
69
|
'_id',
|
|
70
70
|
'enrichByTool',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-trail.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/common/entities/audit-trail.entity.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"audit-trail.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/common/entities/audit-trail.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAG7C,4EAAwE;AACxE,kFAA8E;AAC9E,8FAA0F;AAC1F,mEAA6D;AAE7D,iFAA4E;AAE5E,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AACtC,MAAM,KAAK,GAAG,iBAAM,CAAC,KAAK,CAAC,KAAK,CAAA;AAIhC,MAAa,UAAU;CAetB;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AA;IAED,MAAM,uBAAuB,GAAG;QAC9B,KAAK;QACL,cAAc;QACd,SAAS;QACT,OAAO;QACP,aAAa;QACb,iBAAiB;QACjB,WAAW;QACX,YAAY;QACZ,QAAQ;QACR,WAAW;QACX,aAAa;QACb,YAAY;QACZ,cAAc;QACd,aAAa;KACd,CAAA;IAED,MAAM,4BAA4B,GAAG;QACnC,KAAK;QACL,cAAc;QACd,SAAS;QACT,OAAO;QACP,aAAa;QACb,iBAAiB;QACjB,WAAW;QACX,YAAY;QACZ,QAAQ;QACR,WAAW;QACX,aAAa;QACb,YAAY;QACZ,cAAc;QACd,aAAa;KACd,CAAA;IAED,gBAAgB,CAAC,OAAO,CAAC,wBAAwB,GAAG,sBAAsB,CAAC,EAAE,CAC3E,IAAA,mDAAwB,EAAC,uBAAuB,EAAE,sBAAsB,CAAC,CAAA;IAE3E,gBAAgB,CAAC,OAAO,CAAC,kBAAkB,GAAG,wBAAwB,CAAC,EAAE,CACvE,IAAA,uCAAkB,EAAC,uBAAuB,EAAE,wBAAwB,CAAC,CAAA;IAEvE,gBAAgB,CAAC,OAAO,CAAC,eAAe,GAAG,UAAU,CAAC,EAAE,CACtD,IAAA,iCAAe,EAAC,4BAA4B,EAAE,UAAU,CAAC,CAAA;IAE3D,OAAO,IAAA,8BAAa,EAClB,YAAY,EACZ,UAAU,EACV,gBAAgB,CACjB,CAAA;AACH,CAAC,CAAA;AA7GY,QAAA,iBAAiB,qBA6G7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/companies.provider.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"companies.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/companies/companies.provider.ts"],"names":[],"mappings":";;;AAAA,8DAA0D;AAC1D,4EAAkE;AAClE,sFAA4E;AAC5E,8DAA0D;AAE7C,QAAA,kBAAkB,GAAG;IAChC;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,+BAAc;QAC1B,MAAM,EAAE;YACN,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,+BAAc;QAC1B,MAAM,EAAE;YACN,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;CACF,CAAA"}
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
51
|
import { Contact } from './contact.entity';
|
|
52
52
|
import { Event } from '../../events';
|
|
53
|
-
import { Connection
|
|
53
|
+
import { Connection } from 'mongoose';
|
|
54
54
|
import { CustomModel } from '../../../../db/CustomModel';
|
|
55
55
|
export type CompanyModel = CustomModel<Company>;
|
|
56
|
-
export declare class Company
|
|
56
|
+
export declare class Company {
|
|
57
57
|
_id: string;
|
|
58
58
|
eventId: Event;
|
|
59
59
|
contacts: Contact[];
|
|
@@ -66,6 +66,6 @@ export declare class Company extends Document {
|
|
|
66
66
|
mobile?: string;
|
|
67
67
|
logo?: string;
|
|
68
68
|
}
|
|
69
|
-
export declare const companyFactory: (connection: Connection, eventConnection: Connection) => import("mongoose").Model<Company, {}, {}, {}, Document<unknown, {}, Company> & Company & Required<{
|
|
69
|
+
export declare const companyFactory: (connection: Connection, eventConnection: Connection) => import("mongoose").Model<Company, {}, {}, {}, import("mongoose").Document<unknown, {}, Company> & Company & Required<{
|
|
70
70
|
_id: string;
|
|
71
71
|
}>, any>;
|
|
@@ -7,7 +7,7 @@ const validateProjection_1 = require("../../../../validators/validateProjection"
|
|
|
7
7
|
const get_model_ref_1 = require("../../../services/get-model-ref");
|
|
8
8
|
const generate_model_1 = require("../../../../entities/services/generate-model");
|
|
9
9
|
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
10
|
-
class Company
|
|
10
|
+
class Company {
|
|
11
11
|
}
|
|
12
12
|
exports.Company = Company;
|
|
13
13
|
const companyFactory = (connection, eventConnection) => {
|
|
@@ -19,7 +19,7 @@ const companyFactory = (connection, eventConnection) => {
|
|
|
19
19
|
contacts: [
|
|
20
20
|
{
|
|
21
21
|
type: ObjectId,
|
|
22
|
-
ref: 'Contact',
|
|
22
|
+
ref: (0, get_model_ref_1.getModelRef)('Contact', connection),
|
|
23
23
|
},
|
|
24
24
|
],
|
|
25
25
|
name: { type: String, required: true },
|
|
@@ -30,7 +30,7 @@ const companyFactory = (connection, eventConnection) => {
|
|
|
30
30
|
email: { type: String, trim: true },
|
|
31
31
|
mobile: { type: String, trim: true },
|
|
32
32
|
logo: { type: String, trim: true },
|
|
33
|
-
}, { discriminatorKey: '
|
|
33
|
+
}, { discriminatorKey: 'Company' });
|
|
34
34
|
const allProjectionFieldArray = [
|
|
35
35
|
'_id',
|
|
36
36
|
'eventId',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"company.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/companies/entities/company.entity.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"company.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/companies/entities/company.entity.ts"],"names":[],"mappings":";;;AAEA,uCAA6C;AAC7C,8FAA0F;AAC1F,kFAA8E;AAC9E,mEAA6D;AAC7D,iFAA4E;AAE5E,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAItC,MAAa,OAAO;CAYnB;AAZD,0BAYC;AAEM,MAAM,cAAc,GAAG,CAC5B,UAAsB,EACtB,eAA2B,EAC3B,EAAE;IACF,MAAM,aAAa,GAAG,IAAI,iBAAM,CAC9B;QACE,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,IAAA,2BAAW,EAAoB,OAAO,EAAE,eAAe,CAAC;SAC9D;QACD,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE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AAc,kBAqD1B"}
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
51
|
import { Company } from './company.entity';
|
|
52
|
-
import { Connection
|
|
52
|
+
import { Connection } from 'mongoose';
|
|
53
53
|
import { Event } from '../../events';
|
|
54
54
|
import { CustomModel } from '../../../../db/CustomModel';
|
|
55
55
|
export type ContactModel = CustomModel<Contact>;
|
|
56
|
-
export declare class Contact
|
|
56
|
+
export declare class Contact {
|
|
57
57
|
_id: string;
|
|
58
58
|
eventId: Event;
|
|
59
59
|
company: Company;
|
|
@@ -63,6 +63,6 @@ export declare class Contact extends Document {
|
|
|
63
63
|
avatar: string;
|
|
64
64
|
email: string;
|
|
65
65
|
}
|
|
66
|
-
export declare const contactFactory: (connection: Connection, eventConnection: Connection) => import("mongoose").Model<Contact, {}, {}, {}, Document<unknown, {}, Contact> & Contact & Required<{
|
|
66
|
+
export declare const contactFactory: (connection: Connection, eventConnection: Connection) => import("mongoose").Model<Contact, {}, {}, {}, import("mongoose").Document<unknown, {}, Contact> & Contact & Required<{
|
|
67
67
|
_id: string;
|
|
68
68
|
}>, any>;
|
|
@@ -7,7 +7,7 @@ const validateProjectionResult_1 = require("../../../../validators/validateProje
|
|
|
7
7
|
const validateProjection_1 = require("../../../../validators/validateProjection");
|
|
8
8
|
const generate_model_1 = require("../../../../entities/services/generate-model");
|
|
9
9
|
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
10
|
-
class Contact
|
|
10
|
+
class Contact {
|
|
11
11
|
}
|
|
12
12
|
exports.Contact = Contact;
|
|
13
13
|
const contactFactory = (connection, eventConnection) => {
|
|
@@ -19,7 +19,7 @@ const contactFactory = (connection, eventConnection) => {
|
|
|
19
19
|
},
|
|
20
20
|
company: {
|
|
21
21
|
type: ObjectId,
|
|
22
|
-
ref: 'Company',
|
|
22
|
+
ref: (0, get_model_ref_1.getModelRef)('Company', connection),
|
|
23
23
|
required: true,
|
|
24
24
|
},
|
|
25
25
|
firstname: { type: String, required: true },
|
|
@@ -27,7 +27,7 @@ const contactFactory = (connection, eventConnection) => {
|
|
|
27
27
|
title: { type: String },
|
|
28
28
|
avatar: { type: String },
|
|
29
29
|
email: { type: String, required: true },
|
|
30
|
-
}, { discriminatorKey: '
|
|
30
|
+
}, { discriminatorKey: 'Contact' });
|
|
31
31
|
const allProjectionFieldArray = [
|
|
32
32
|
'_id',
|
|
33
33
|
'eventId',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/companies/entities/contact.entity.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/companies/entities/contact.entity.ts"],"names":[],"mappings":";;;AACA,uCAA6C;AAC7C,mEAA6D;AAC7D,8FAA0F;AAC1F,kFAA8E;AAC9E,iFAA4E;AAI5E,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,OAAO;CASnB;AATD,0BASC;AAEM,MAAM,cAAc,GAAG,CAC5B,UAAsB,EACtB,eAA2B,EAC3B,EAAE;IACF,MAAM,aAAa,GAAG,IAAI,iBAAM,CAC9B;QACE,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,IAAA,2BAAW,EAAoB,OAAO,EAAE,eAAe,CAAC;YAC7D,QAAQ,EAAE,IAAI;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,IAAA,2BAAW,EAAwB,SAAS,EAAE,UAAU,CAAC;YAC9D,QAAQ,EAAE,IAAI;SACf;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC3C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACvB,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACxB,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;KACxC,EACD,EAAE,gBAAgB,EAAE,SAAS,EAAE,CAChC,CAAA;IAED,MAAM,uBAAuB,GAAG;QAC9B,KAAK;QACL,SAAS;QACT,SAAS;QACT,WAAW;QACX,UAAU;QACV,OAAO;QACP,QAAQ;QACR,OAAO;KACR,CAAA;IAED,aAAa,CAAC,OAAO,CAAC,wBAAwB,GAAG,sBAAsB,CAAC,EAAE,CACxE,IAAA,mDAAwB,EAAC,uBAAuB,EAAE,sBAAsB,CAAC,CAAA;IAE3E,aAAa,CAAC,OAAO,CAAC,kBAAkB,GAAG,wBAAwB,CAAC,EAAE,CACpE,IAAA,uCAAkB,EAAC,uBAAuB,EAAE,wBAAwB,CAAC,CAAA;IAEvE,OAAO,IAAA,8BAAa,EAClB,SAAS,EACT,UAAU,EACV,aAAa,CACd,CAAA;AACH,CAAC,CAAA;AA/CY,QAAA,cAAc,kBA+C1B"}
|
|
@@ -48,15 +48,15 @@
|
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
49
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import { Connection
|
|
52
|
-
import { Timestamp } from '../timestamp';
|
|
51
|
+
import { Connection } from 'mongoose';
|
|
52
|
+
import { Timestamp } from '../timestamp.entity';
|
|
53
53
|
import { User } from '../../../../../entities/models/users';
|
|
54
54
|
import { Company } from '../../../../../entities/models/companies';
|
|
55
55
|
import { EventType } from '../eventType/event-type.entity';
|
|
56
56
|
import { PriorityEnum } from '../../../../../types/priority.enum';
|
|
57
57
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
58
58
|
export type EventModel = CustomModel<Event>;
|
|
59
|
-
export declare class Event
|
|
59
|
+
export declare class Event {
|
|
60
60
|
_id: string;
|
|
61
61
|
name: string;
|
|
62
62
|
subdomain: string;
|
|
@@ -84,6 +84,6 @@ export declare class Event extends Document {
|
|
|
84
84
|
createdAt: Date;
|
|
85
85
|
updatedAt: Date;
|
|
86
86
|
}
|
|
87
|
-
export declare const eventFactory: (connection: Connection, companyConnection: Connection, userConnection: Connection) => import("mongoose").Model<Event, {}, {}, {}, Document<unknown, {}, Event> & Event & Required<{
|
|
87
|
+
export declare const eventFactory: (connection: Connection, companyConnection: Connection, userConnection: Connection) => import("mongoose").Model<Event, {}, {}, {}, import("mongoose").Document<unknown, {}, Event> & Event & Required<{
|
|
88
88
|
_id: string;
|
|
89
89
|
}>, any>;
|
|
@@ -7,12 +7,12 @@ const mongoose_1 = require("mongoose");
|
|
|
7
7
|
const generate_model_1 = require("../../../../../entities/services/generate-model");
|
|
8
8
|
const validateNewItem_1 = require("../../../../../validators/validateNewItem");
|
|
9
9
|
const validateUpdateItem_1 = require("../../../../../validators/validateUpdateItem");
|
|
10
|
-
const
|
|
10
|
+
const timestamp_entity_1 = require("../timestamp.entity");
|
|
11
11
|
const db_record_status_enum_1 = require("../db-record-status.enum");
|
|
12
12
|
const services_1 = require("../../../../../entities/services");
|
|
13
13
|
const priority_enum_1 = require("../../../../../types/priority.enum");
|
|
14
14
|
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
15
|
-
class Event
|
|
15
|
+
class Event {
|
|
16
16
|
}
|
|
17
17
|
exports.Event = Event;
|
|
18
18
|
const eventFactory = (connection, companyConnection, userConnection) => {
|
|
@@ -45,7 +45,7 @@ const eventFactory = (connection, companyConnection, userConnection) => {
|
|
|
45
45
|
ref: (0, services_1.getModelRef)('User', userConnection),
|
|
46
46
|
required: true,
|
|
47
47
|
},
|
|
48
|
-
timestamps: [{ type:
|
|
48
|
+
timestamps: [{ type: timestamp_entity_1.TimestampSchema, default: [] }],
|
|
49
49
|
attendees: [{ type: Number, default: [] }],
|
|
50
50
|
exhibitors: [{ type: Number, default: [] }],
|
|
51
51
|
sponsors: [{ type: Number, default: [] }],
|
|
@@ -70,7 +70,7 @@ const eventFactory = (connection, companyConnection, userConnection) => {
|
|
|
70
70
|
},
|
|
71
71
|
createdAt: { type: Date, required: true, default: Date.now },
|
|
72
72
|
updatedAt: { type: Date, required: true, default: Date.now },
|
|
73
|
-
}, { discriminatorKey: '
|
|
73
|
+
}, { discriminatorKey: 'Event' });
|
|
74
74
|
const allProjectionFieldArray = [
|
|
75
75
|
'_id',
|
|
76
76
|
'name',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/events/entities/event/event.entity.ts"],"names":[],"mappings":";;;AAAA,iGAA6F;AAC7F,qFAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"event.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/events/entities/event/event.entity.ts"],"names":[],"mappings":";;;AAAA,iGAA6F;AAC7F,qFAAiF;AACjF,uCAA6C;AAC7C,oFAA+E;AAC/E,+EAA2E;AAC3E,qFAAiF;AACjF,0DAAgE;AAChE,oEAAyD;AACzD,+DAA8D;AAI9D,sEAAiE;AAGjE,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,KAAK;CA2BjB;AA3BD,sBA2BC;AAEM,MAAM,YAAY,GAAG,CAC1B,UAAsB,EACtB,iBAA6B,EAC7B,cAA0B,EAC1B,EAAE;IACF,MAAM,WAAW,GAAG,IAAI,iBAAM,CAC5B;QACE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QAClD,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QACvD,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AAiB,IAAI;QAG5D,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAA;QACnC,IAAI,EAAE,CAAA;IACR,CAAC,CAAC,CAAA;IAEF,OAAO,IAAA,8BAAa,EAAoB,OAAO,EAAE,UAAU,EAAE,WAAW,CAAC,CAAA;AAC3E,CAAC,CAAA;AA3KY,QAAA,YAAY,gBA2KxB"}
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
51
|
import { DbRecordStatus } from '../db-record-status.enum';
|
|
52
|
-
import { Connection
|
|
52
|
+
import { Connection } from 'mongoose';
|
|
53
53
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
54
54
|
export type EventTypeModel = CustomModel<EventType>;
|
|
55
|
-
export declare class EventType
|
|
55
|
+
export declare class EventType {
|
|
56
56
|
_id?: string;
|
|
57
57
|
type: string;
|
|
58
58
|
status: DbRecordStatus;
|
|
59
59
|
createdAt: Date;
|
|
60
60
|
updatedAt: Date;
|
|
61
61
|
}
|
|
62
|
-
export declare const eventTypeFactory: (connection: Connection) => import("mongoose").Model<EventType, {}, {}, {}, Document<unknown, {}, EventType> & EventType & Required<{
|
|
62
|
+
export declare const eventTypeFactory: (connection: Connection) => import("mongoose").Model<EventType, {}, {}, {}, import("mongoose").Document<unknown, {}, EventType> & EventType & Required<{
|
|
63
63
|
_id: string;
|
|
64
64
|
}>, any>;
|
|
@@ -8,7 +8,7 @@ const validateProjectionResult_1 = require("../../../../../validators/validatePr
|
|
|
8
8
|
const validateProjection_1 = require("../../../../../validators/validateProjection");
|
|
9
9
|
const validateNewItem_1 = require("../../../../../validators/validateNewItem");
|
|
10
10
|
const validateUpdateItem_1 = require("../../../../../validators/validateUpdateItem");
|
|
11
|
-
class EventType
|
|
11
|
+
class EventType {
|
|
12
12
|
}
|
|
13
13
|
exports.EventType = EventType;
|
|
14
14
|
const eventTypeFactory = (connection) => {
|
|
@@ -21,7 +21,7 @@ const eventTypeFactory = (connection) => {
|
|
|
21
21
|
},
|
|
22
22
|
createdAt: { type: Date, required: true, default: Date.now },
|
|
23
23
|
updatedAt: { type: Date, required: true, default: Date.now },
|
|
24
|
-
}, { discriminatorKey: '
|
|
24
|
+
}, { discriminatorKey: 'EventType' });
|
|
25
25
|
const allProjectionFieldArray = [
|
|
26
26
|
'_id',
|
|
27
27
|
'type',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-type.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/events/entities/eventType/event-type.entity.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AACzD,
|
|
1
|
+
{"version":3,"file":"event-type.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/events/entities/eventType/event-type.entity.ts"],"names":[],"mappings":";;;AAAA,oEAAyD;AACzD,uCAA6C;AAC7C,+DAAgE;AAChE,iGAA6F;AAC7F,qFAAiF;AACjF,+EAA2E;AAC3E,qFAAiF;AAKjF,MAAa,SAAS;CAMrB;AAND,8BAMC;AAEM,MAAM,gBAAgB,GAAG,CAAC,UAAsB,EAAE,EAAE;IACzD,MAAM,eAAe,GAAG,IAAI,iBAAM,CAChC;QACE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QAClD,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,sCAAc,CAAC,QAAQ;YAChC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,sCAAc,CAAC;SACpC;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC5D,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IA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
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import
|
|
52
|
-
|
|
53
|
-
export
|
|
51
|
+
import { Schema } from 'mongoose';
|
|
52
|
+
import { CustomModel } from '../../../../db/CustomModel';
|
|
53
|
+
export type TimestampModel = CustomModel<Timestamp>;
|
|
54
|
+
export declare class Timestamp {
|
|
54
55
|
_id: string;
|
|
55
56
|
startDate: Date;
|
|
56
57
|
endDate: Date;
|
|
57
58
|
}
|
|
58
|
-
export declare const TimestampSchema:
|
|
59
|
-
_id: string;
|
|
60
|
-
}>, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, Timestamp, mongoose.Document<unknown, {}, mongoose.FlatRecord<Timestamp>> & mongoose.FlatRecord<Timestamp> & Required<{
|
|
59
|
+
export declare const TimestampSchema: Schema<Timestamp, TimestampModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Timestamp, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Timestamp>> & import("mongoose").FlatRecord<Timestamp> & Required<{
|
|
61
60
|
_id: string;
|
|
62
61
|
}>>;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TimestampSchema = exports.Timestamp = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
class Timestamp
|
|
5
|
+
class Timestamp {
|
|
6
6
|
}
|
|
7
7
|
exports.Timestamp = Timestamp;
|
|
8
|
-
exports.TimestampSchema = new mongoose_1.
|
|
8
|
+
exports.TimestampSchema = new mongoose_1.Schema({
|
|
9
9
|
startDate: { type: Date },
|
|
10
10
|
endDate: { type: Date },
|
|
11
11
|
});
|
|
12
|
-
//# sourceMappingURL=timestamp.js.map
|
|
12
|
+
//# sourceMappingURL=timestamp.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timestamp.entity.js","sourceRoot":"","sources":["../../../../../src/entities/models/events/entities/timestamp.entity.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAKjC,MAAa,SAAS;CAIrB;AAJD,8BAIC;AACY,QAAA,eAAe,GAAG,IAAI,iBAAM,CAA4B;IACnE,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACzB,OAAO,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -53,13 +53,13 @@ import { DatabaseModel } from '../../../enums/database-model.enum';
|
|
|
53
53
|
import { DatabaseConnection } from '../../../enums/database-connection.enum';
|
|
54
54
|
export declare const eventProviders: ({
|
|
55
55
|
provide: DatabaseModel;
|
|
56
|
-
useFactory: (connection: import("mongoose").Connection
|
|
56
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/eventType/event-type.entity").EventType, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/eventType/event-type.entity").EventType> & import("./entities/eventType/event-type.entity").EventType & Required<{
|
|
57
57
|
_id: string;
|
|
58
58
|
}>, any>;
|
|
59
59
|
inject: DatabaseConnection[];
|
|
60
60
|
} | {
|
|
61
61
|
provide: DatabaseModel;
|
|
62
|
-
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/
|
|
62
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/event/event.entity").Event, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/event/event.entity").Event> & import("./entities/event/event.entity").Event & Required<{
|
|
63
63
|
_id: string;
|
|
64
64
|
}>, any>;
|
|
65
65
|
inject: DatabaseConnection[];
|
|
@@ -6,6 +6,11 @@ const database_connection_enum_1 = require("../../../enums/database-connection.e
|
|
|
6
6
|
const event_entity_1 = require("./entities/event/event.entity");
|
|
7
7
|
const event_type_entity_1 = require("./entities/eventType/event-type.entity");
|
|
8
8
|
exports.eventProviders = [
|
|
9
|
+
{
|
|
10
|
+
provide: database_model_enum_1.DatabaseModel.EVENT_TYPE_MODEL,
|
|
11
|
+
useFactory: event_type_entity_1.eventTypeFactory,
|
|
12
|
+
inject: [database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION],
|
|
13
|
+
},
|
|
9
14
|
{
|
|
10
15
|
provide: database_model_enum_1.DatabaseModel.EVENT_MODEL,
|
|
11
16
|
useFactory: event_entity_1.eventFactory,
|
|
@@ -15,10 +20,5 @@ exports.eventProviders = [
|
|
|
15
20
|
database_connection_enum_1.DatabaseConnection.USER_CONNECTION,
|
|
16
21
|
],
|
|
17
22
|
},
|
|
18
|
-
{
|
|
19
|
-
provide: database_model_enum_1.DatabaseModel.EVENT_TYPE_MODEL,
|
|
20
|
-
useFactory: event_type_entity_1.eventTypeFactory,
|
|
21
|
-
inject: [database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION],
|
|
22
|
-
},
|
|
23
23
|
];
|
|
24
24
|
//# sourceMappingURL=events.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/events/events.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAClE,sFAA4E;AAC5E,gEAA4D;AAC5D,8EAAyE;AAE5D,QAAA,cAAc,GAAG;IAC5B;QACE,OAAO,EAAE,mCAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"events.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/events/events.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAClE,sFAA4E;AAC5E,gEAA4D;AAC5D,8EAAyE;AAE5D,QAAA,cAAc,GAAG;IAC5B;QACE,OAAO,EAAE,mCAAa,CAAC,gBAAgB;QACvC,UAAU,EAAE,oCAAgB;QAC5B,MAAM,EAAE,CAAC,6CAAkB,CAAC,gBAAgB,CAAC;KAC9C;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,WAAW;QAClC,UAAU,EAAE,2BAAY;QACxB,MAAM,EAAE;YACN,6CAAkB,CAAC,gBAAgB;YACnC,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,eAAe;SACnC;KACF;CACF,CAAA"}
|
|
@@ -2,4 +2,4 @@ export * from './entities/event/event.entity';
|
|
|
2
2
|
export * from './entities/eventType/event-type.entity';
|
|
3
3
|
export * from './events.provider';
|
|
4
4
|
export * from './entities/db-record-status.enum';
|
|
5
|
-
export * from './entities/timestamp';
|
|
5
|
+
export * from './entities/timestamp.entity';
|
|
@@ -18,5 +18,5 @@ __exportStar(require("./entities/event/event.entity"), exports);
|
|
|
18
18
|
__exportStar(require("./entities/eventType/event-type.entity"), exports);
|
|
19
19
|
__exportStar(require("./events.provider"), exports);
|
|
20
20
|
__exportStar(require("./entities/db-record-status.enum"), exports);
|
|
21
|
-
__exportStar(require("./entities/timestamp"), exports);
|
|
21
|
+
__exportStar(require("./entities/timestamp.entity"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,yEAAsD;AACtD,oDAAiC;AACjC,mEAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C;AAC7C,yEAAsD;AACtD,oDAAiC;AACjC,mEAAgD;AAChD,8DAA2C"}
|
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
52
52
|
export declare const modelProviders: ({
|
|
53
53
|
provide: import("../..").DatabaseModel;
|
|
54
|
-
useFactory: (connection: import("mongoose").Connection
|
|
54
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./events").EventType, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./events").EventType> & import("./events").EventType & Required<{
|
|
55
55
|
_id: string;
|
|
56
56
|
}>, any>;
|
|
57
57
|
inject: import("../..").DatabaseConnection[];
|
|
58
58
|
} | {
|
|
59
59
|
provide: import("../..").DatabaseModel;
|
|
60
|
-
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./events").
|
|
60
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<import("./events").Event, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./events").Event> & import("./events").Event & Required<{
|
|
61
61
|
_id: string;
|
|
62
62
|
}>, any>;
|
|
63
63
|
inject: import("../..").DatabaseConnection[];
|
|
@@ -75,13 +75,13 @@ export declare const modelProviders: ({
|
|
|
75
75
|
inject: import("../..").DatabaseConnection[];
|
|
76
76
|
} | {
|
|
77
77
|
provide: import("../..").DatabaseModel;
|
|
78
|
-
useFactory: (connection: import("mongoose").Connection
|
|
78
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./users").RolePermission, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./users").RolePermission> & import("./users").RolePermission & Required<{
|
|
79
79
|
_id: string;
|
|
80
80
|
}>, any>;
|
|
81
81
|
inject: import("../..").DatabaseConnection[];
|
|
82
82
|
} | {
|
|
83
83
|
provide: import("../..").DatabaseModel;
|
|
84
|
-
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./users").
|
|
84
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<import("./users").User, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./users").User> & import("./users").User & Required<{
|
|
85
85
|
_id: string;
|
|
86
86
|
}>, any>;
|
|
87
87
|
inject: import("../..").DatabaseConnection[];
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
49
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import { Schema
|
|
51
|
+
import { Schema } from 'mongoose';
|
|
52
52
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
53
53
|
export type PermissionModel = CustomModel<Permission>;
|
|
54
|
-
export declare class Permission
|
|
54
|
+
export declare class Permission {
|
|
55
55
|
_id: string;
|
|
56
56
|
service: string;
|
|
57
57
|
title: string;
|
|
@@ -59,6 +59,6 @@ export declare class Permission extends Document {
|
|
|
59
59
|
route: string;
|
|
60
60
|
isAllowed: boolean;
|
|
61
61
|
}
|
|
62
|
-
export declare const PermissionSchema: Schema<Permission, PermissionModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Permission, Document<unknown, {}, import("mongoose").FlatRecord<Permission>> & import("mongoose").FlatRecord<Permission> & Required<{
|
|
62
|
+
export declare const PermissionSchema: Schema<Permission, PermissionModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Permission, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Permission>> & import("mongoose").FlatRecord<Permission> & Required<{
|
|
63
63
|
_id: string;
|
|
64
64
|
}>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PermissionSchema = exports.Permission = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
class Permission
|
|
5
|
+
class Permission {
|
|
6
6
|
}
|
|
7
7
|
exports.Permission = Permission;
|
|
8
8
|
exports.PermissionSchema = new mongoose_1.Schema({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/rolePermissions/permission.entity.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"permission.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/rolePermissions/permission.entity.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAKjC,MAAa,UAAU;CAOtB;AAPD,gCAOC;AAEY,QAAA,gBAAgB,GAAG,IAAI,iBAAM,CAA8B;IACtE,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"}
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
/// <reference types="mongoose/types/inferschematype" />
|
|
49
49
|
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
50
50
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
51
|
-
import {
|
|
51
|
+
import { Connection } from 'mongoose';
|
|
52
52
|
import { Permission } from './permission.entity';
|
|
53
53
|
import { UserRole } from '../../../../../types/user-role.enum';
|
|
54
54
|
import { UserType } from '../../../../../types/user-type.enum';
|
|
55
55
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
56
56
|
export type RolePermissionModel = CustomModel<RolePermission>;
|
|
57
|
-
export declare class RolePermission
|
|
57
|
+
export declare class RolePermission {
|
|
58
58
|
_id: string;
|
|
59
59
|
title: UserRole;
|
|
60
60
|
type: UserType;
|
|
@@ -62,6 +62,6 @@ export declare class RolePermission extends Document {
|
|
|
62
62
|
createdAt: Date;
|
|
63
63
|
updatedAt: Date;
|
|
64
64
|
}
|
|
65
|
-
export declare const rolePermissionFactory: (connection: Connection) => import("mongoose").Model<RolePermission, {}, {}, {}, Document<unknown, {}, RolePermission> & RolePermission & Required<{
|
|
65
|
+
export declare const rolePermissionFactory: (connection: Connection) => import("mongoose").Model<RolePermission, {}, {}, {}, import("mongoose").Document<unknown, {}, RolePermission> & RolePermission & Required<{
|
|
66
66
|
_id: string;
|
|
67
67
|
}>, any>;
|