@aldb2b/common 1.0.623 → 1.0.625
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/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/entities/company.entity.d.ts +3 -3
- package/build/entities/models/companies/entities/company.entity.js +2 -2
- 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 +2 -2
- 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/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/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 +1 -1
- 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/services/generate-model.js +4 -3
- 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
|
@@ -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: '1', overwriteModels: true });
|
|
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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AAO,EAAE,IAAI,CAAC,GAAG,EAAE;KAC/D,EACD,EAAE,gBAAgB,EAAE,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,CACjD,CAAA;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"}
|
|
@@ -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) => {
|
|
@@ -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: '1' });
|
|
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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G;QAC9B,KAAK;QACL,SAAS;QACT,UAAU;QACV,MAAM;QACN,SAAS;QACT,UAAU;QACV,cAAc;QACd,KAAK;QACL,OAAO;QACP,QAAQ;QACR,MAAM;KACP,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;AArDY,QAAA,cAAc,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) => {
|
|
@@ -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: '1', overwriteModels: true });
|
|
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,GAAG,EAAE,eAAe,EAAE,IAAI,EAAE,CACjD,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: '1', overwriteModels: true });
|
|
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,U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BAAwB,CAAC,CAAA;IAEvE,WAAW,CAAC,OAAO,CAAC,eAAe,GAAG,UAAU,CAAC,EAAE,CACjD,IAAA,iCAAe,EAAC,4BAA4B,EAAE,UAAU,CAAC,CAAA;IAE3D,WAAW,CAAC,OAAO,CAAC,kBAAkB,GAAG,aAAa,CAAC,EAAE,CACvD,IAAA,uCAAkB,EAAC,+BAA+B,EAAE,aAAa,CAAC,CAAA;IAEpE,WAAW,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,WAAiB,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: '1', overwriteModels: true });
|
|
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;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,kBAAkB,EAAE,KAAK,WAAiB,IAAI;QAGhE,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAA;QACnC,IAAI,EAAE,CAAA;IACR,CAAC,CAAC,CAAA;IAEF,OAAO,IAAA,wBAAa,EAClB,WAAW,EACX,UAAU,EACV,eAAe,CAChB,CAAA;AACH,CAAC,CAAA;AA/DY,QAAA,gBAAgB,oBA+D5B"}
|
|
@@ -48,15 +48,14 @@
|
|
|
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
|
|
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"}
|
|
@@ -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"}
|
|
@@ -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>;
|
|
@@ -10,7 +10,7 @@ const permission_entity_1 = require("./permission.entity");
|
|
|
10
10
|
const generate_model_1 = require("../../../../../entities/services/generate-model");
|
|
11
11
|
const user_role_enum_1 = require("../../../../../types/user-role.enum");
|
|
12
12
|
const user_type_enum_1 = require("../../../../../types/user-type.enum");
|
|
13
|
-
class RolePermission
|
|
13
|
+
class RolePermission {
|
|
14
14
|
}
|
|
15
15
|
exports.RolePermission = RolePermission;
|
|
16
16
|
const rolePermissionFactory = (connection) => {
|
|
@@ -61,7 +61,7 @@ const rolePermissionFactory = (connection) => {
|
|
|
61
61
|
permissions: [{ type: permission_entity_1.PermissionSchema, required: true }],
|
|
62
62
|
createdAt: { type: Date, required: true, default: Date.now },
|
|
63
63
|
updatedAt: { type: Date, required: true, default: Date.now },
|
|
64
|
-
}, { discriminatorKey: '
|
|
64
|
+
}, { discriminatorKey: '1', overwriteModels: true });
|
|
65
65
|
const allProjectionFieldArray = [
|
|
66
66
|
'_id',
|
|
67
67
|
'title',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role-permission.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/rolePermissions/role-permission.entity.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"role-permission.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/rolePermissions/role-permission.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAC7C,iGAA6F;AAC7F,qFAAiF;AACjF,+EAA2E;AAC3E,qFAAiF;AACjF,2DAAkE;AAClE,oFAA+E;AAC/E,wEAA8D;AAC9D,wEAA8D;AAK9D,MAAa,cAAc;CAO1B;AAPD,wCAOC;AAEM,MAAM,qBAAqB,GAAG,CAAC,UAAsB,EAAE,EAAE;IAC9D,MAAM,oBAAoB,GAAG,IAAI,iBAAM,CACrC;QACE,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,yBAAQ,CAAC;YAC7B,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE;gBACR,SAAS,gBAAgB;oBACvB,IAAI,UAAU,CAAA;oBACd,IAAI,IAAI,CAAC,IAAI,IAAI,yBAAQ,CAAC,KAAK,EAAE,CAAC;wBAChC,UAAU,GAAG;4BACX,yBAAQ,CAAC,KAAK;4BACd,yBAAQ,CAAC,OAAO;4BAChB,yBAAQ,CAAC,SAAS;4BAClB,yBAAQ,CAAC,QAAQ;4BACjB,yBAAQ,CAAC,MAAM;yBAChB,CAAA;oBACH,CAAC;yBAAM,IAAI,IAAI,CAAC,IAAI,IAAI,yBAAQ,CAAC,SAAS,EAAE,CAAC;wBAC3C,UAAU,GAAG;4BACX,yBAAQ,CAAC,KAAK;4BACd,yBAAQ,CAAC,OAAO;4BAChB,yBAAQ,CAAC,SAAS;4BAClB,yBAAQ,CAAC,QAAQ;4BACjB,yBAAQ,CAAC,MAAM;yBAChB,CAAA;oBACH,CAAC;yBAAM,IAAI,IAAI,CAAC,IAAI,IAAI,yBAAQ,CAA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EAAC,uBAAuB,EAAE,sBAAsB,CAAC,CAAA;IAE7E,oBAAoB,CAAC,OAAO,CAAC,kBAAkB,GAAG,wBAAwB,CAAC,EAAE,CAC3E,IAAA,uCAAkB,EAAC,uBAAuB,EAAE,wBAAwB,CAAC,CAAA;IAEvE,oBAAoB,CAAC,OAAO,CAAC,eAAe,GAAG,UAAU,CAAC,EAAE,CAC1D,IAAA,iCAAe,EAAC,4BAA4B,EAAE,UAAU,CAAC,CAAA;IAE3D,oBAAoB,CAAC,OAAO,CAAC,kBAAkB,GAAG,aAAa,CAAC,EAAE,CAChE,IAAA,uCAAkB,EAAC,+BAA+B,EAAE,aAAa,CAAC,CAAA;IAEpE,oBAAoB,CAAC,GAAG,CAAC,kBAAkB,EAAE,KAAK,WAAiB,IAAI;QAGrE,IAAI,CAAC,OAAO,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAA;QACnC,IAAI,EAAE,CAAA;IACR,CAAC,CAAC,CAAA;IAEF,OAAO,IAAA,8BAAa,EAClB,gBAAgB,EAChB,UAAU,EACV,oBAAoB,CACrB,CAAA;AACH,CAAC,CAAA;AAtGY,QAAA,qBAAqB,yBAsGjC"}
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
import { Schema, Document } from 'mongoose';
|
|
52
52
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
53
53
|
export type ChatInfoModel = CustomModel<ChatInfo>;
|
|
54
|
-
export declare class ChatInfo
|
|
54
|
+
export declare class ChatInfo {
|
|
55
55
|
_id: string;
|
|
56
56
|
password: string;
|
|
57
57
|
token: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChatInfoSchema = exports.ChatInfo = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
class ChatInfo
|
|
5
|
+
class ChatInfo {
|
|
6
6
|
}
|
|
7
7
|
exports.ChatInfo = ChatInfo;
|
|
8
8
|
exports.ChatInfoSchema = new mongoose_1.Schema({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-info.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/users/chat-info.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAK3C,MAAa,
|
|
1
|
+
{"version":3,"file":"chat-info.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/users/chat-info.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA2C;AAK3C,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AACY,QAAA,cAAc,GAAG,IAAI,iBAAM,CAA0B;IAChE,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACxB,CAAC,CAAA"}
|
|
@@ -52,11 +52,11 @@ import { Contact, Company } from '../../../companies';
|
|
|
52
52
|
import { OnboardedThru } from '../../../../../types/onboarded-thru.enum';
|
|
53
53
|
import { RolePermission } from '../rolePermissions/role-permission.entity';
|
|
54
54
|
import { Event } from '../../../events';
|
|
55
|
-
import { Schema
|
|
55
|
+
import { Schema } from 'mongoose';
|
|
56
56
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
57
57
|
export type EventInfoModel = CustomModel<EventInfo>;
|
|
58
|
-
export declare class EventInfo
|
|
59
|
-
_id:
|
|
58
|
+
export declare class EventInfo {
|
|
59
|
+
_id: EventInfo;
|
|
60
60
|
eventId: Event;
|
|
61
61
|
companyId: Company;
|
|
62
62
|
contactId: Contact;
|
|
@@ -65,6 +65,6 @@ export declare class EventInfo extends Document {
|
|
|
65
65
|
createdAt: Date;
|
|
66
66
|
updatedAt: Date;
|
|
67
67
|
}
|
|
68
|
-
export declare const EventInfoSchema: Schema<EventInfo, EventInfoModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EventInfo, Document<unknown, {}, import("mongoose").FlatRecord<EventInfo>> & import("mongoose").FlatRecord<EventInfo> & Required<{
|
|
69
|
-
_id:
|
|
68
|
+
export declare const EventInfoSchema: Schema<EventInfo, EventInfoModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EventInfo, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<EventInfo>> & import("mongoose").FlatRecord<EventInfo> & Required<{
|
|
69
|
+
_id: EventInfo;
|
|
70
70
|
}>>;
|
|
@@ -4,7 +4,7 @@ exports.EventInfoSchema = exports.EventInfo = void 0;
|
|
|
4
4
|
const onboarded_thru_enum_1 = require("../../../../../types/onboarded-thru.enum");
|
|
5
5
|
const mongoose_1 = require("mongoose");
|
|
6
6
|
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
7
|
-
class EventInfo
|
|
7
|
+
class EventInfo {
|
|
8
8
|
}
|
|
9
9
|
exports.EventInfo = EventInfo;
|
|
10
10
|
exports.EventInfoSchema = new mongoose_1.Schema({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"event-info.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/users/event-info.entity.ts"],"names":[],"mappings":";;;AACA,kFAAwE;AAGxE,
|
|
1
|
+
{"version":3,"file":"event-info.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/users/event-info.entity.ts"],"names":[],"mappings":";;;AACA,kFAAwE;AAGxE,uCAAiC;AAGjC,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,SAAS;CASrB;AATD,8BASC;AAEY,QAAA,eAAe,GAAG,IAAI,iBAAM,CAA4B;IACnE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC3C,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"}
|
|
@@ -48,14 +48,14 @@
|
|
|
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 { Schema } from 'mongoose';
|
|
52
52
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
53
53
|
export type LocationModel = CustomModel<Location>;
|
|
54
|
-
export declare class Location
|
|
54
|
+
export declare class Location {
|
|
55
55
|
_id: string;
|
|
56
56
|
type: string;
|
|
57
57
|
coordinates: number[];
|
|
58
58
|
}
|
|
59
|
-
export declare const LocationSchema: Schema<Location, LocationModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Location, Document<unknown, {}, import("mongoose").FlatRecord<Location>> & import("mongoose").FlatRecord<Location> & Required<{
|
|
59
|
+
export declare const LocationSchema: Schema<Location, LocationModel, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Location, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Location>> & import("mongoose").FlatRecord<Location> & Required<{
|
|
60
60
|
_id: string;
|
|
61
61
|
}>>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LocationSchema = exports.Location = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
class Location
|
|
5
|
+
class Location {
|
|
6
6
|
}
|
|
7
7
|
exports.Location = Location;
|
|
8
8
|
exports.LocationSchema = new mongoose_1.Schema({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/users/location.entity.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"location.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/users/location.entity.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAKjC,MAAa,QAAQ;CAIpB;AAJD,4BAIC;AACY,QAAA,cAAc,GAAG,IAAI,iBAAM,CAA0B;IAChE,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"}
|
|
@@ -48,7 +48,7 @@
|
|
|
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 { ChatPreferences } from '../../../../../enums/chat-preferences-enum';
|
|
53
53
|
import { UserLanguage } from '../../../../../types/user-language.enum';
|
|
54
54
|
import { ChatInfo } from './chat-info.entity';
|
|
@@ -59,7 +59,7 @@ import { RolePermission } from '../rolePermissions';
|
|
|
59
59
|
import { UserStatus } from '../../../../../types/user-status.enum';
|
|
60
60
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
61
61
|
export type UserModel = CustomModel<User>;
|
|
62
|
-
export declare class User
|
|
62
|
+
export declare class User {
|
|
63
63
|
_id: string;
|
|
64
64
|
email: string;
|
|
65
65
|
cognitoUserIds: string[];
|
|
@@ -91,6 +91,6 @@ export declare class User extends Document {
|
|
|
91
91
|
createdAt: Date;
|
|
92
92
|
updatedAt: Date;
|
|
93
93
|
}
|
|
94
|
-
export declare const userFactory: (connection: Connection, companyConnection: Connection, eventConnection: Connection) => import("mongoose").Model<User, {}, {}, {}, Document<unknown, {}, User> & User & Required<{
|
|
94
|
+
export declare const userFactory: (connection: Connection, companyConnection: Connection, eventConnection: Connection) => import("mongoose").Model<User, {}, {}, {}, import("mongoose").Document<unknown, {}, User> & User & Required<{
|
|
95
95
|
_id: string;
|
|
96
96
|
}>, any>;
|