@aldb2b/common 1.0.682 → 1.0.684
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/entities/eventProfile/company-profile-item.entity.d.ts +68 -0
- package/build/entities/models/events/entities/eventProfile/company-profile-item.entity.js +39 -0
- package/build/entities/models/events/entities/eventProfile/company-profile-item.entity.js.map +1 -0
- package/build/entities/models/events/entities/eventProfile/event-profile.entity.d.ts +66 -0
- package/build/entities/models/events/entities/eventProfile/event-profile.entity.js +59 -0
- package/build/entities/models/events/entities/eventProfile/event-profile.entity.js.map +1 -0
- package/build/entities/models/events/events.provider.d.ts +6 -0
- package/build/entities/models/events/events.provider.js +6 -0
- package/build/entities/models/events/events.provider.js.map +1 -1
- package/build/entities/models/events/index.d.ts +2 -0
- package/build/entities/models/events/index.js +2 -0
- package/build/entities/models/events/index.js.map +1 -1
- package/build/entities/models/model.providers.d.ts +6 -0
- package/build/enums/database-model.enum.d.ts +1 -0
- package/build/enums/database-model.enum.js +1 -0
- package/build/enums/database-model.enum.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,68 @@
|
|
|
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 { Schema } from 'mongoose';
|
|
52
|
+
import { CustomModel } from '../../../../../db/CustomModel';
|
|
53
|
+
import { EventProfileStatus } from '../../../../../enums/event-profile-status.enum';
|
|
54
|
+
export type CompanyProfileItemModel = CustomModel<CompanyProfileItem>;
|
|
55
|
+
export declare class CompanyProfileItem {
|
|
56
|
+
_id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
label?: string;
|
|
59
|
+
iTPStatus: EventProfileStatus;
|
|
60
|
+
registrationStatus: EventProfileStatus;
|
|
61
|
+
profileStatus: EventProfileStatus;
|
|
62
|
+
filterStatus: EventProfileStatus;
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
updatedAt: Date;
|
|
65
|
+
}
|
|
66
|
+
export declare const CompanyProfileItemSchema: Schema<CompanyProfileItem, CompanyProfileItemModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, CompanyProfileItem, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<CompanyProfileItem>> & import("mongoose").FlatRecord<CompanyProfileItem> & Required<{
|
|
67
|
+
_id: string;
|
|
68
|
+
}>>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CompanyProfileItemSchema = exports.CompanyProfileItem = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const event_profile_status_enum_1 = require("../../../../../enums/event-profile-status.enum");
|
|
6
|
+
class CompanyProfileItem {
|
|
7
|
+
}
|
|
8
|
+
exports.CompanyProfileItem = CompanyProfileItem;
|
|
9
|
+
exports.CompanyProfileItemSchema = new mongoose_1.Schema({
|
|
10
|
+
name: { type: String, trim: true, required: true },
|
|
11
|
+
label: { type: String, trim: true },
|
|
12
|
+
iTPStatus: {
|
|
13
|
+
type: String,
|
|
14
|
+
required: true,
|
|
15
|
+
enum: Object.values(event_profile_status_enum_1.EventProfileStatus),
|
|
16
|
+
default: event_profile_status_enum_1.EventProfileStatus.DISABLE,
|
|
17
|
+
},
|
|
18
|
+
registrationStatus: {
|
|
19
|
+
type: String,
|
|
20
|
+
required: true,
|
|
21
|
+
enum: Object.values(event_profile_status_enum_1.EventProfileStatus),
|
|
22
|
+
default: event_profile_status_enum_1.EventProfileStatus.DISABLE,
|
|
23
|
+
},
|
|
24
|
+
profileStatus: {
|
|
25
|
+
type: String,
|
|
26
|
+
required: true,
|
|
27
|
+
enum: Object.values(event_profile_status_enum_1.EventProfileStatus),
|
|
28
|
+
default: event_profile_status_enum_1.EventProfileStatus.DISABLE,
|
|
29
|
+
},
|
|
30
|
+
filterStatus: {
|
|
31
|
+
type: String,
|
|
32
|
+
required: true,
|
|
33
|
+
enum: Object.values(event_profile_status_enum_1.EventProfileStatus),
|
|
34
|
+
default: event_profile_status_enum_1.EventProfileStatus.DISABLE,
|
|
35
|
+
},
|
|
36
|
+
createdAt: { type: Date, required: true, default: Date.now },
|
|
37
|
+
updatedAt: { type: Date, required: true, default: Date.now },
|
|
38
|
+
});
|
|
39
|
+
//# sourceMappingURL=company-profile-item.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"company-profile-item.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/events/entities/eventProfile/company-profile-item.entity.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC,8FAAoF;AAIpF,MAAa,kBAAkB;CAU9B;AAVD,gDAUC;AACY,QAAA,wBAAwB,GAAG,IAAI,iBAAM,CAGhD;IACA,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;IACnC,SAAS,EAAE;QACT,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,8CAAkB,CAAC;QACvC,OAAO,EAAE,8CAAkB,CAAC,OAAO;KACpC;IACD,kBAAkB,EAAE;QAClB,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,8CAAkB,CAAC;QACvC,OAAO,EAAE,8CAAkB,CAAC,OAAO;KACpC;IACD,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,8CAAkB,CAAC;QACvC,OAAO,EAAE,8CAAkB,CAAC,OAAO;KACpC;IACD,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,8CAAkB,CAAC;QACvC,OAAO,EAAE,8CAAkB,CAAC,OAAO;KACpC;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,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
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 { Connection } from 'mongoose';
|
|
52
|
+
import { CustomModel } from '../../../../../db/CustomModel';
|
|
53
|
+
import { Event } from '../event/event.entity';
|
|
54
|
+
import { CompanyProfileItem } from './company-profile-item.entity';
|
|
55
|
+
export type EventProfileModel = CustomModel<EventProfile>;
|
|
56
|
+
export declare class EventProfile {
|
|
57
|
+
_id?: string;
|
|
58
|
+
companyProfileItems?: CompanyProfileItem[];
|
|
59
|
+
industries?: Object[];
|
|
60
|
+
eventId: Event;
|
|
61
|
+
createdAt: Date;
|
|
62
|
+
updatedAt: Date;
|
|
63
|
+
}
|
|
64
|
+
export declare const eventProfileFactory: (connection: Connection) => import("mongoose").Model<EventProfile, {}, {}, {}, import("mongoose").Document<unknown, {}, EventProfile> & EventProfile & Required<{
|
|
65
|
+
_id: string;
|
|
66
|
+
}>, any>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.eventProfileFactory = exports.EventProfile = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const services_1 = require("../../../../services");
|
|
6
|
+
const validateProjectionResult_1 = require("../../../../../validators/validateProjectionResult");
|
|
7
|
+
const validateProjection_1 = require("../../../../../validators/validateProjection");
|
|
8
|
+
const validateNewItem_1 = require("../../../../../validators/validateNewItem");
|
|
9
|
+
const validateUpdateItem_1 = require("../../../../../validators/validateUpdateItem");
|
|
10
|
+
const company_profile_item_entity_1 = require("./company-profile-item.entity");
|
|
11
|
+
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
12
|
+
class EventProfile {
|
|
13
|
+
}
|
|
14
|
+
exports.EventProfile = EventProfile;
|
|
15
|
+
const eventProfileFactory = (connection) => {
|
|
16
|
+
const eventProfileSchema = new mongoose_1.Schema({
|
|
17
|
+
companyProfileItems: [{ type: company_profile_item_entity_1.CompanyProfileItemSchema, default: [] }],
|
|
18
|
+
industries: [{ type: ObjectId, default: [] }],
|
|
19
|
+
eventId: {
|
|
20
|
+
type: ObjectId,
|
|
21
|
+
ref: (0, services_1.getModelRef)('Event', connection),
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
createdAt: { type: Date, required: true, default: Date.now },
|
|
25
|
+
updatedAt: { type: Date, required: true, default: Date.now },
|
|
26
|
+
});
|
|
27
|
+
const allProjectionFieldArray = [
|
|
28
|
+
'_id',
|
|
29
|
+
'companyProfileItems',
|
|
30
|
+
'industries',
|
|
31
|
+
'eventId',
|
|
32
|
+
'createdAt',
|
|
33
|
+
'updatedAt',
|
|
34
|
+
];
|
|
35
|
+
const allValidateNewItemFieldArray = [
|
|
36
|
+
'_id',
|
|
37
|
+
'companyProfileItems',
|
|
38
|
+
'industries',
|
|
39
|
+
'eventId',
|
|
40
|
+
'createdAt',
|
|
41
|
+
'updatedAt',
|
|
42
|
+
];
|
|
43
|
+
const allValidateUpdateItemFieldArray = [
|
|
44
|
+
'companyProfileItems',
|
|
45
|
+
'industries',
|
|
46
|
+
'updatedAt',
|
|
47
|
+
];
|
|
48
|
+
eventProfileSchema.statics.validateProjectionResult = (necessaryProjectionObj) => (0, validateProjectionResult_1.validateProjectionResult)(allProjectionFieldArray, necessaryProjectionObj);
|
|
49
|
+
eventProfileSchema.statics.validateProjection = (necessaryProjectionArray) => (0, validateProjection_1.validateProjection)(allProjectionFieldArray, necessaryProjectionArray);
|
|
50
|
+
eventProfileSchema.statics.validateNewItem = (newItemObj) => (0, validateNewItem_1.validateNewItem)(allValidateNewItemFieldArray, newItemObj);
|
|
51
|
+
eventProfileSchema.statics.validateUpdateItem = (updateItemObj) => (0, validateUpdateItem_1.validateUpdateItem)(allValidateUpdateItemFieldArray, updateItemObj);
|
|
52
|
+
eventProfileSchema.pre('findOneAndUpdate', async function (next) {
|
|
53
|
+
this._update.updatedAt = new Date();
|
|
54
|
+
next();
|
|
55
|
+
});
|
|
56
|
+
return (0, services_1.generateModel)('EventProfile', connection, eventProfileSchema);
|
|
57
|
+
};
|
|
58
|
+
exports.eventProfileFactory = eventProfileFactory;
|
|
59
|
+
//# sourceMappingURL=event-profile.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-profile.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/events/entities/eventProfile/event-profile.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA8C;AAC9C,mDAAkE;AAClE,iGAA8F;AAC9F,qFAAkF;AAClF,+EAA4E;AAC5E,qFAAkF;AAGlF,+EAGuC;AAEvC,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;AAGvC,MAAa,YAAY;CAOxB;AAPD,oCAOC;AAEM,MAAM,mBAAmB,GAAG,CAAC,UAAsB,EAAE,EAAE;IAC5D,MAAM,kBAAkB,GAAG,IAAI,iBAAM,CAAkC;QACrE,mBAAmB,EAAE,CAAC,EAAE,IAAI,EAAE,sDAAwB,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QACtE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;QAC7C,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;YACd,GAAG,EAAE,IAAA,sBAAW,EAAoB,OAAO,EAAE,UAAU,CAAC;YACxD,QAAQ,EAAE,IAAI;SACf;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,IAAI,CAAC,GAAG,EAAE;KAC7D,CAAC,CAAC;IAEH,MAAM,uBAAuB,GAAG;QAC9B,KAAK;QACL,qBAAqB;QACrB,YAAY;QACZ,SAAS;QACT,WAAW;QACX,WAAW;KACZ,CAAC;IAEF,MAAM,4BAA4B,GAAG;QACnC,KAAK;QACL,qBAAqB;QACrB,YAAY;QACZ,SAAS;QACT,WAAW;QACX,WAAW;KACZ,CAAC;IAEF,MAAM,+BAA+B,GAAG;QACtC,qBAAqB;QACrB,YAAY;QACZ,WAAW;KACZ,CAAC;IAEF,kBAAkB,CAAC,OAAO,CAAC,wBAAwB,GAAG,CACpD,sBAAsB,EACtB,EAAE,CACF,IAAA,mDAAwB,EAAC,uBAAuB,EAAE,sBAAsB,CAAC,CAAC;IAE5E,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,GAAG,CAAC,wBAAwB,EAAE,EAAE,CAC3E,IAAA,uCAAkB,EAAC,uBAAuB,EAAE,wBAAwB,CAAC,CAAC;IAExE,kBAAkB,CAAC,OAAO,CAAC,eAAe,GAAG,CAAC,UAAU,EAAE,EAAE,CAC1D,IAAA,iCAAe,EAAC,4BAA4B,EAAE,UAAU,CAAC,CAAC;IAE5D,kBAAkB,CAAC,OAAO,CAAC,kBAAkB,GAAG,CAAC,aAAa,EAAE,EAAE,CAChE,IAAA,uCAAkB,EAAC,+BAA+B,EAAE,aAAa,CAAC,CAAC;IAErE,kBAAkB,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,WAAiB,IAAI;QAGnE,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QACpC,IAAI,EAAE,CAAC;IACT,CAAC,CAAC,CAAC;IAEH,OAAO,IAAA,wBAAa,EAClB,cAAc,EACd,UAAU,EACV,kBAAkB,CACnB,CAAC;AACJ,CAAC,CAAC;AA/DW,QAAA,mBAAmB,uBA+D9B"}
|
|
@@ -57,6 +57,12 @@ export declare const eventProviders: ({
|
|
|
57
57
|
_id: string;
|
|
58
58
|
}>, any>;
|
|
59
59
|
inject: DatabaseConnection[];
|
|
60
|
+
} | {
|
|
61
|
+
provide: DatabaseModel;
|
|
62
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/eventProfile/event-profile.entity").EventProfile, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/eventProfile/event-profile.entity").EventProfile> & import("./entities/eventProfile/event-profile.entity").EventProfile & Required<{
|
|
63
|
+
_id: string;
|
|
64
|
+
}>, any>;
|
|
65
|
+
inject: DatabaseConnection[];
|
|
60
66
|
} | {
|
|
61
67
|
provide: DatabaseModel;
|
|
62
68
|
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<{
|
|
@@ -5,12 +5,18 @@ const database_model_enum_1 = require("../../../enums/database-model.enum");
|
|
|
5
5
|
const database_connection_enum_1 = require("../../../enums/database-connection.enum");
|
|
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
|
+
const event_profile_entity_1 = require("./entities/eventProfile/event-profile.entity");
|
|
8
9
|
exports.eventProviders = [
|
|
9
10
|
{
|
|
10
11
|
provide: database_model_enum_1.DatabaseModel.EVENT_TYPE_MODEL,
|
|
11
12
|
useFactory: event_type_entity_1.eventTypeFactory,
|
|
12
13
|
inject: [database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION],
|
|
13
14
|
},
|
|
15
|
+
{
|
|
16
|
+
provide: database_model_enum_1.DatabaseModel.EVENT_PROFILE_MODEL,
|
|
17
|
+
useFactory: event_profile_entity_1.eventProfileFactory,
|
|
18
|
+
inject: [database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION],
|
|
19
|
+
},
|
|
14
20
|
{
|
|
15
21
|
provide: database_model_enum_1.DatabaseModel.EVENT_MODEL,
|
|
16
22
|
useFactory: event_entity_1.eventFactory,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/events/events.provider.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"events.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/events/events.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAmE;AACnE,sFAA6E;AAC7E,gEAA6D;AAC7D,8EAA0E;AAC1E,uFAAmF;AAEtE,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,mBAAmB;QAC1C,UAAU,EAAE,0CAAmB;QAC/B,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,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './entities/event/event.entity';
|
|
2
2
|
export * from './entities/eventType/event-type.entity';
|
|
3
|
+
export * from './entities/eventProfile/company-profile-item.entity';
|
|
4
|
+
export * from './entities/eventProfile/event-profile.entity';
|
|
3
5
|
export * from './events.provider';
|
|
4
6
|
export * from './entities/db-record-status.enum';
|
|
5
7
|
export * from './entities/timestamp.entity';
|
|
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./entities/event/event.entity"), exports);
|
|
18
18
|
__exportStar(require("./entities/eventType/event-type.entity"), exports);
|
|
19
|
+
__exportStar(require("./entities/eventProfile/company-profile-item.entity"), exports);
|
|
20
|
+
__exportStar(require("./entities/eventProfile/event-profile.entity"), exports);
|
|
19
21
|
__exportStar(require("./events.provider"), exports);
|
|
20
22
|
__exportStar(require("./entities/db-record-status.enum"), exports);
|
|
21
23
|
__exportStar(require("./entities/timestamp.entity"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,yEAAuD;AACvD,sFAAoE;AACpE,+EAA6D;AAC7D,oDAAkC;AAClC,mEAAiD;AACjD,8DAA4C"}
|
|
@@ -55,6 +55,12 @@ export declare const modelProviders: ({
|
|
|
55
55
|
_id: string;
|
|
56
56
|
}>, any>;
|
|
57
57
|
inject: import("../..").DatabaseConnection[];
|
|
58
|
+
} | {
|
|
59
|
+
provide: import("../..").DatabaseModel;
|
|
60
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./events").EventProfile, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./events").EventProfile> & import("./events").EventProfile & Required<{
|
|
61
|
+
_id: string;
|
|
62
|
+
}>, any>;
|
|
63
|
+
inject: import("../..").DatabaseConnection[];
|
|
58
64
|
} | {
|
|
59
65
|
provide: import("../..").DatabaseModel;
|
|
60
66
|
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<{
|
|
@@ -8,6 +8,7 @@ var DatabaseModel;
|
|
|
8
8
|
DatabaseModel["CONTACT_MODEL"] = "ContactModel";
|
|
9
9
|
DatabaseModel["EVENT_MODEL"] = "EventModel";
|
|
10
10
|
DatabaseModel["EVENT_TYPE_MODEL"] = "EventTypeModel";
|
|
11
|
+
DatabaseModel["EVENT_PROFILE_MODEL"] = "EventProfileModel";
|
|
11
12
|
DatabaseModel["USER_MODEL"] = "UserModel";
|
|
12
13
|
DatabaseModel["ROLE_PERMISSION_MODEL"] = "RolePermissionModel";
|
|
13
14
|
})(DatabaseModel || (exports.DatabaseModel = DatabaseModel = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"database-model.enum.js","sourceRoot":"","sources":["../../src/enums/database-model.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"database-model.enum.js","sourceRoot":"","sources":["../../src/enums/database-model.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aASX;AATD,WAAY,aAAa;IACvB,sDAAqC,CAAA;IACrC,+CAA8B,CAAA;IAC9B,+CAA8B,CAAA;IAC9B,2CAA0B,CAAA;IAC1B,oDAAmC,CAAA;IACnC,0DAAyC,CAAA;IACzC,yCAAwB,CAAA;IACxB,8DAA6C,CAAA;AAC/C,CAAC,EATW,aAAa,6BAAb,aAAa,QASxB"}
|