@aldb2b/common 1.0.2023 → 1.0.2026
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/model.providers.d.ts +4 -0
- package/build/entities/models/users/entities/users/user.entity.d.ts +1 -1
- package/build/entities/models/users/entities/users/user.entity.js +10 -10
- package/build/entities/models/users/entities/users/user.entity.js.map +1 -1
- package/build/entities/models/users/index.d.ts +1 -0
- package/build/entities/models/users/index.js +1 -0
- package/build/entities/models/users/index.js.map +1 -1
- package/build/entities/models/users/repositories/index.d.ts +1 -0
- package/build/entities/models/users/repositories/index.js +18 -0
- package/build/entities/models/users/repositories/index.js.map +1 -0
- package/build/entities/models/users/repositories/user-common.repository.d.ts +7 -0
- package/build/entities/models/users/repositories/user-common.repository.js +12 -0
- package/build/entities/models/users/repositories/user-common.repository.js.map +1 -0
- package/build/entities/models/users/users.provider.d.ts +9 -1
- package/build/entities/models/users/users.provider.js +7 -0
- package/build/entities/models/users/users.provider.js.map +1 -1
- package/build/enums/repository-provider.enum.d.ts +2 -1
- package/build/enums/repository-provider.enum.js +1 -0
- package/build/enums/repository-provider.enum.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -195,6 +195,10 @@ export declare const modelProviders: ({
|
|
|
195
195
|
_id: string;
|
|
196
196
|
}>, any>;
|
|
197
197
|
inject: import("../..").DatabaseConnection[];
|
|
198
|
+
} | {
|
|
199
|
+
provide: import("../..").RepositoryProvider;
|
|
200
|
+
inject: import("../..").DatabaseModel[];
|
|
201
|
+
useFactory: (userRepositoryService: import("../..").CustomModel<import("./users").User>) => import("./users").UserCommonRepository;
|
|
198
202
|
} | {
|
|
199
203
|
provide: import("../..").DatabaseModel;
|
|
200
204
|
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./events").EventType, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./events").EventType> & import("./events").EventType & Required<{
|
|
@@ -54,7 +54,7 @@ import { UserLanguage } from '../../../../../types/user-language.enum';
|
|
|
54
54
|
import { ChatInfo } from './chat-info.entity';
|
|
55
55
|
import { EventInfo } from './event-info.entity';
|
|
56
56
|
import { Company, Contact } from '../../../companies';
|
|
57
|
-
import { Event } from '
|
|
57
|
+
import { Event } from '../../../events';
|
|
58
58
|
import { RolePermission } from '../rolePermissions';
|
|
59
59
|
import { UserStatus } from '../../../../../types/user-status.enum';
|
|
60
60
|
import { CustomModel } from '../../../../../db/CustomModel';
|
|
@@ -8,11 +8,11 @@ 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
|
-
const
|
|
11
|
+
const common_1 = require("../../../common");
|
|
12
12
|
const chat_info_entity_1 = require("./chat-info.entity");
|
|
13
13
|
const event_info_entity_1 = require("./event-info.entity");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const services_1 = require("../../../../services");
|
|
15
|
+
const services_2 = require("../../../../services");
|
|
16
16
|
const user_status_enum_1 = require("../../../../../types/user-status.enum");
|
|
17
17
|
const ObjectId = mongoose_1.Schema.Types.ObjectId;
|
|
18
18
|
class User {
|
|
@@ -34,11 +34,11 @@ const userFactory = (connection, companyConnection, eventConnection) => {
|
|
|
34
34
|
wish: { type: String },
|
|
35
35
|
description: { type: String },
|
|
36
36
|
impression: { type: String },
|
|
37
|
-
location: { type:
|
|
37
|
+
location: { type: common_1.LocationSchema },
|
|
38
38
|
chatInfo: { type: chat_info_entity_1.ChatInfoSchema },
|
|
39
39
|
role: {
|
|
40
40
|
type: ObjectId,
|
|
41
|
-
ref: (0,
|
|
41
|
+
ref: (0, services_1.getModelRef)('RolePermission', connection),
|
|
42
42
|
required: true,
|
|
43
43
|
},
|
|
44
44
|
eventInfos: [
|
|
@@ -69,19 +69,19 @@ const userFactory = (connection, companyConnection, eventConnection) => {
|
|
|
69
69
|
deletedAt: { type: Date },
|
|
70
70
|
deletedBy: {
|
|
71
71
|
type: ObjectId,
|
|
72
|
-
ref: (0,
|
|
72
|
+
ref: (0, services_1.getModelRef)('User', connection),
|
|
73
73
|
},
|
|
74
74
|
lastLoggedInContactId: {
|
|
75
75
|
type: ObjectId,
|
|
76
|
-
ref: (0,
|
|
76
|
+
ref: (0, services_1.getModelRef)('Contact', companyConnection),
|
|
77
77
|
},
|
|
78
78
|
lastLoggedInCompanyId: {
|
|
79
79
|
type: ObjectId,
|
|
80
|
-
ref: (0,
|
|
80
|
+
ref: (0, services_1.getModelRef)('Company', companyConnection),
|
|
81
81
|
},
|
|
82
82
|
lastLoggedInEventId: {
|
|
83
83
|
type: ObjectId,
|
|
84
|
-
ref: (0,
|
|
84
|
+
ref: (0, services_1.getModelRef)('Event', eventConnection),
|
|
85
85
|
},
|
|
86
86
|
createdAt: { type: Date, required: true, default: Date.now },
|
|
87
87
|
updatedAt: { type: Date, required: true, default: Date.now },
|
|
@@ -186,7 +186,7 @@ const userFactory = (connection, companyConnection, eventConnection) => {
|
|
|
186
186
|
next();
|
|
187
187
|
});
|
|
188
188
|
userSchema.index({ 'eventInfos.eventId': 1 });
|
|
189
|
-
return (0,
|
|
189
|
+
return (0, services_2.generateModel)('User', connection, userSchema);
|
|
190
190
|
};
|
|
191
191
|
exports.userFactory = userFactory;
|
|
192
192
|
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/entities/users/user.entity.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAC7C,sFAA4E;AAC5E,gFAAsE;AACtE,iGAA6F;AAC7F,qFAAiF;AACjF,+EAA2E;AAC3E,qFAAiF;AACjF,
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../../../../src/entities/models/users/ent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ineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./entities/users"), exports);
|
|
18
18
|
__exportStar(require("./entities/rolePermissions"), exports);
|
|
19
19
|
__exportStar(require("./users.provider"), exports);
|
|
20
|
+
__exportStar(require("./repositories"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,6DAA0C;AAC1C,mDAAgC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/models/users/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAgC;AAChC,6DAA0C;AAC1C,mDAAgC;AAChC,iDAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './user-common.repository';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./user-common.repository"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/repositories/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { User } from "../entities/users";
|
|
2
|
+
import { MongooseBase } from "../../../../db/MongooseBase";
|
|
3
|
+
import { CustomModel } from "../../../../db/CustomModel";
|
|
4
|
+
export declare class UserCommonRepository extends MongooseBase<User> {
|
|
5
|
+
private userModel;
|
|
6
|
+
constructor(userModel: CustomModel<User>);
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserCommonRepository = void 0;
|
|
4
|
+
const MongooseBase_1 = require("../../../../db/MongooseBase");
|
|
5
|
+
class UserCommonRepository extends MongooseBase_1.MongooseBase {
|
|
6
|
+
constructor(userModel) {
|
|
7
|
+
super(userModel);
|
|
8
|
+
this.userModel = userModel;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.UserCommonRepository = UserCommonRepository;
|
|
12
|
+
//# sourceMappingURL=user-common.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-common.repository.js","sourceRoot":"","sources":["../../../../../src/entities/models/users/repositories/user-common.repository.ts"],"names":[],"mappings":";;;AACA,8DAAyD;AAGzD,MAAa,oBAAqB,SAAQ,2BAAkB;IAC1D,YACU,SAA4B;QAEpC,KAAK,CAAC,SAAS,CAAC,CAAA;QAFR,cAAS,GAAT,SAAS,CAAmB;IAGtC,CAAC;CACF;AAND,oDAMC"}
|
|
@@ -51,6 +51,10 @@
|
|
|
51
51
|
/// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
|
|
52
52
|
import { DatabaseModel } from '../../../enums/database-model.enum';
|
|
53
53
|
import { DatabaseConnection } from '../../../enums/database-connection.enum';
|
|
54
|
+
import { User } from './entities/users';
|
|
55
|
+
import { RepositoryProvider } from "../../../enums/repository-provider.enum";
|
|
56
|
+
import { CustomModel } from "../../../db/CustomModel";
|
|
57
|
+
import { UserCommonRepository } from "./repositories";
|
|
54
58
|
export declare const userProviders: ({
|
|
55
59
|
provide: DatabaseModel;
|
|
56
60
|
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/rolePermissions").RolePermission, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/rolePermissions").RolePermission> & import("./entities/rolePermissions").RolePermission & Required<{
|
|
@@ -59,8 +63,12 @@ export declare const userProviders: ({
|
|
|
59
63
|
inject: DatabaseConnection[];
|
|
60
64
|
} | {
|
|
61
65
|
provide: DatabaseModel;
|
|
62
|
-
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<
|
|
66
|
+
useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, eventConnection: import("mongoose").Connection) => import("mongoose").Model<User, {}, {}, {}, import("mongoose").Document<unknown, {}, User> & User & Required<{
|
|
63
67
|
_id: string;
|
|
64
68
|
}>, any>;
|
|
65
69
|
inject: DatabaseConnection[];
|
|
70
|
+
} | {
|
|
71
|
+
provide: RepositoryProvider;
|
|
72
|
+
inject: DatabaseModel[];
|
|
73
|
+
useFactory: (userRepositoryService: CustomModel<User>) => UserCommonRepository;
|
|
66
74
|
})[];
|
|
@@ -5,6 +5,8 @@ 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 users_1 = require("./entities/users");
|
|
7
7
|
const rolePermissions_1 = require("./entities/rolePermissions");
|
|
8
|
+
const repository_provider_enum_1 = require("../../../enums/repository-provider.enum");
|
|
9
|
+
const repositories_1 = require("./repositories");
|
|
8
10
|
exports.userProviders = [
|
|
9
11
|
{
|
|
10
12
|
provide: database_model_enum_1.DatabaseModel.ROLE_PERMISSION_MODEL,
|
|
@@ -20,5 +22,10 @@ exports.userProviders = [
|
|
|
20
22
|
database_connection_enum_1.DatabaseConnection.EVENT_CONNECTION,
|
|
21
23
|
],
|
|
22
24
|
},
|
|
25
|
+
{
|
|
26
|
+
provide: repository_provider_enum_1.RepositoryProvider.USER_REPOSITORY,
|
|
27
|
+
inject: [database_model_enum_1.DatabaseModel.USER_MODEL],
|
|
28
|
+
useFactory: (userRepositoryService) => new repositories_1.UserCommonRepository(userRepositoryService),
|
|
29
|
+
},
|
|
23
30
|
];
|
|
24
31
|
//# sourceMappingURL=users.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/users/users.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAClE,sFAA4E;AAC5E,
|
|
1
|
+
{"version":3,"file":"users.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/users/users.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAClE,sFAA4E;AAC5E,4CAAkD;AAClD,gEAAkE;AAClE,sFAA2E;AAE3E,iDAAoD;AAEvC,QAAA,aAAa,GAAG;IAC3B;QACE,OAAO,EAAE,mCAAa,CAAC,qBAAqB;QAC5C,UAAU,EAAE,uCAAqB;QACjC,MAAM,EAAE,CAAC,6CAAkB,CAAC,eAAe,CAAC;KAC7C;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,UAAU;QACjC,UAAU,EAAE,mBAAW;QACvB,MAAM,EAAE;YACN,6CAAkB,CAAC,eAAe;YAClC,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,6CAAkB,CAAC,eAAe;QAC3C,MAAM,EAAE,CAAC,mCAAa,CAAC,UAAU,CAAC;QAClC,UAAU,EAAE,CAAC,qBAAwC,EAAE,EAAE,CACrD,IAAI,mCAAoB,CAAC,qBAAqB,CAAC;KACpD;CACF,CAAA"}
|
|
@@ -8,5 +8,6 @@ export declare enum RepositoryProvider {
|
|
|
8
8
|
COMPANY_SUBSCRIPTION_COMMON_REPOSITORY = "CompanySubscriptioCommonRepository",
|
|
9
9
|
EVENT_SUBSCRIPTION_COMMON_REPOSITORY = "EventSubscriptioCommonRepository",
|
|
10
10
|
PREFERENCE_CUSTOMIZATION_REPOSITORY = "PreferenceCustomizationRepository",
|
|
11
|
-
EVENT_PROFILE_REPOSITORY = "EventProfileRepository"
|
|
11
|
+
EVENT_PROFILE_REPOSITORY = "EventProfileRepository",
|
|
12
|
+
USER_REPOSITORY = "UserRepository"
|
|
12
13
|
}
|
|
@@ -13,5 +13,6 @@ var RepositoryProvider;
|
|
|
13
13
|
RepositoryProvider["EVENT_SUBSCRIPTION_COMMON_REPOSITORY"] = "EventSubscriptioCommonRepository";
|
|
14
14
|
RepositoryProvider["PREFERENCE_CUSTOMIZATION_REPOSITORY"] = "PreferenceCustomizationRepository";
|
|
15
15
|
RepositoryProvider["EVENT_PROFILE_REPOSITORY"] = "EventProfileRepository";
|
|
16
|
+
RepositoryProvider["USER_REPOSITORY"] = "UserRepository";
|
|
16
17
|
})(RepositoryProvider || (exports.RepositoryProvider = RepositoryProvider = {}));
|
|
17
18
|
//# sourceMappingURL=repository-provider.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-provider.enum.js","sourceRoot":"","sources":["../../src/enums/repository-provider.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,
|
|
1
|
+
{"version":3,"file":"repository-provider.enum.js","sourceRoot":"","sources":["../../src/enums/repository-provider.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,kBAYX;AAZD,WAAY,kBAAkB;IAC5B,qEAA+C,CAAA;IAC/C,2EAAqD,CAAA;IACrD,2EAAqD,CAAA;IACrD,2EAAqD,CAAA;IACrD,0FAAoE,CAAA;IACpE,8EAAwD,CAAA;IACxD,mGAA6E,CAAA;IAC7E,+FAAyE,CAAA;IACzE,+FAAyE,CAAA;IACzE,yEAAmD,CAAA;IACnD,wDAAkC,CAAA;AACpC,CAAC,EAZW,kBAAkB,kCAAlB,kBAAkB,QAY7B"}
|