@aldb2b/common 1.0.1032 → 1.0.1034
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/events.provider.d.ts +9 -1
- package/build/entities/models/events/events.provider.js +7 -0
- package/build/entities/models/events/events.provider.js.map +1 -1
- package/build/entities/models/events/index.d.ts +1 -0
- package/build/entities/models/events/index.js +1 -0
- package/build/entities/models/events/index.js.map +1 -1
- package/build/entities/models/events/repositories/event-profile.repository.d.ts +7 -0
- package/build/entities/models/events/repositories/event-profile.repository.js +27 -0
- package/build/entities/models/events/repositories/event-profile.repository.js.map +1 -0
- package/build/entities/models/model.providers.d.ts +4 -0
- 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
|
@@ -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 { EventProfile } from './entities/eventProfile/event-profile.entity';
|
|
55
|
+
import { RepositoryProvider } from "../../../enums/repository-provider.enum";
|
|
56
|
+
import { CustomModel } from "../../../db/CustomModel";
|
|
57
|
+
import { EventProfileRepository } from "./repositories/event-profile.repository";
|
|
54
58
|
export declare const eventProviders: ({
|
|
55
59
|
provide: DatabaseModel;
|
|
56
60
|
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<{
|
|
@@ -59,7 +63,7 @@ export declare const eventProviders: ({
|
|
|
59
63
|
inject: DatabaseConnection[];
|
|
60
64
|
} | {
|
|
61
65
|
provide: DatabaseModel;
|
|
62
|
-
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<
|
|
66
|
+
useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<EventProfile, {}, {}, {}, import("mongoose").Document<unknown, {}, EventProfile> & EventProfile & Required<{
|
|
63
67
|
_id: string;
|
|
64
68
|
}>, any>;
|
|
65
69
|
inject: DatabaseConnection[];
|
|
@@ -69,4 +73,8 @@ export declare const eventProviders: ({
|
|
|
69
73
|
_id: string;
|
|
70
74
|
}>, any>;
|
|
71
75
|
inject: DatabaseConnection[];
|
|
76
|
+
} | {
|
|
77
|
+
provide: RepositoryProvider;
|
|
78
|
+
inject: DatabaseModel[];
|
|
79
|
+
useFactory: (eventProfileModel: CustomModel<EventProfile>) => EventProfileRepository;
|
|
72
80
|
})[];
|
|
@@ -6,6 +6,8 @@ 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
|
const event_profile_entity_1 = require("./entities/eventProfile/event-profile.entity");
|
|
9
|
+
const repository_provider_enum_1 = require("../../../enums/repository-provider.enum");
|
|
10
|
+
const event_profile_repository_1 = require("./repositories/event-profile.repository");
|
|
9
11
|
exports.eventProviders = [
|
|
10
12
|
{
|
|
11
13
|
provide: database_model_enum_1.DatabaseModel.EVENT_TYPE_MODEL,
|
|
@@ -26,5 +28,10 @@ exports.eventProviders = [
|
|
|
26
28
|
database_connection_enum_1.DatabaseConnection.USER_CONNECTION,
|
|
27
29
|
],
|
|
28
30
|
},
|
|
31
|
+
{
|
|
32
|
+
provide: repository_provider_enum_1.RepositoryProvider.EVENT_PROFILE_REPOSITORY,
|
|
33
|
+
inject: [database_model_enum_1.DatabaseModel.EVENT_PROFILE_MODEL],
|
|
34
|
+
useFactory: (eventProfileModel) => new event_profile_repository_1.EventProfileRepository(eventProfileModel),
|
|
35
|
+
},
|
|
29
36
|
];
|
|
30
37
|
//# 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,4EAAmE;AACnE,sFAA6E;AAC7E,gEAA6D;AAC7D,8EAA0E;AAC1E,
|
|
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,uFAA+F;AAC/F,sFAA2E;AAE3E,sFAA+E;AAElE,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;IACD;QACE,OAAO,EAAE,6CAAkB,CAAC,wBAAwB;QACpD,MAAM,EAAE,CAAC,mCAAa,CAAC,mBAAmB,CAAC;QAC3C,UAAU,EAAE,CAAC,iBAA4C,EAAE,EAAE,CACzD,IAAI,iDAAsB,CAAC,iBAAiB,CAAC;KAClD;CACF,CAAC"}
|
|
@@ -21,4 +21,5 @@ __exportStar(require("./entities/eventProfile/event-profile.entity"), exports);
|
|
|
21
21
|
__exportStar(require("./events.provider"), exports);
|
|
22
22
|
__exportStar(require("./entities/db-record-status.enum"), exports);
|
|
23
23
|
__exportStar(require("./entities/timestamp.entity"), exports);
|
|
24
|
+
__exportStar(require("./repositories/event-profile.repository"), exports);
|
|
24
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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;AAC5C,0EAAwD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CustomModel } from "../../../../db/CustomModel";
|
|
2
|
+
import { MongooseBase } from "../../../../db/MongooseBase";
|
|
3
|
+
import { EventProfile } from "../entities/eventProfile/event-profile.entity";
|
|
4
|
+
export declare class EventProfileRepository extends MongooseBase<EventProfile> {
|
|
5
|
+
private eventProfileModel;
|
|
6
|
+
constructor(eventProfileModel: CustomModel<EventProfile>);
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
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
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.EventProfileRepository = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const CustomModel_1 = require("../../../../db/CustomModel");
|
|
15
|
+
const MongooseBase_1 = require("../../../../db/MongooseBase");
|
|
16
|
+
let EventProfileRepository = class EventProfileRepository extends MongooseBase_1.MongooseBase {
|
|
17
|
+
constructor(eventProfileModel) {
|
|
18
|
+
super(eventProfileModel);
|
|
19
|
+
this.eventProfileModel = eventProfileModel;
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.EventProfileRepository = EventProfileRepository;
|
|
23
|
+
exports.EventProfileRepository = EventProfileRepository = __decorate([
|
|
24
|
+
(0, common_1.Injectable)(),
|
|
25
|
+
__metadata("design:paramtypes", [CustomModel_1.CustomModel])
|
|
26
|
+
], EventProfileRepository);
|
|
27
|
+
//# sourceMappingURL=event-profile.repository.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event-profile.repository.js","sourceRoot":"","sources":["../../../../../src/entities/models/events/repositories/event-profile.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C,4DAAuD;AACvD,8DAAyD;AAIlD,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,2BAA0B;IAClE,YAAoB,iBAA4C;QAC5D,KAAK,CAAC,iBAAiB,CAAC,CAAA;QADR,sBAAiB,GAAjB,iBAAiB,CAA2B;IAEhE,CAAC;CAEJ,CAAA;AALY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,mBAAU,GAAE;qCAE8B,yBAAW;GADzC,sBAAsB,CAKlC"}
|
|
@@ -201,4 +201,8 @@ export declare const modelProviders: ({
|
|
|
201
201
|
_id: string;
|
|
202
202
|
}>, any>;
|
|
203
203
|
inject: import("../..").DatabaseConnection[];
|
|
204
|
+
} | {
|
|
205
|
+
provide: import("../..").RepositoryProvider;
|
|
206
|
+
inject: import("../..").DatabaseModel[];
|
|
207
|
+
useFactory: (eventProfileModel: import("../..").CustomModel<import("./events").EventProfile>) => import("./events").EventProfileRepository;
|
|
204
208
|
})[];
|
|
@@ -7,5 +7,6 @@ export declare enum RepositoryProvider {
|
|
|
7
7
|
SUBSCRIPTION_LOG_REPOSITORY = "SubscriptioLogRepository",
|
|
8
8
|
COMPANY_SUBSCRIPTION_COMMON_REPOSITORY = "CompanySubscriptioCommonRepository",
|
|
9
9
|
EVENT_SUBSCRIPTION_COMMON_REPOSITORY = "EventSubscriptioCommonRepository",
|
|
10
|
-
PREFERENCE_CUSTOMIZATION_REPOSITORY = "PreferenceCustomizationRepository"
|
|
10
|
+
PREFERENCE_CUSTOMIZATION_REPOSITORY = "PreferenceCustomizationRepository",
|
|
11
|
+
EVENT_PROFILE_REPOSITORY = "EventProfileRepository"
|
|
11
12
|
}
|
|
@@ -12,5 +12,6 @@ var RepositoryProvider;
|
|
|
12
12
|
RepositoryProvider["COMPANY_SUBSCRIPTION_COMMON_REPOSITORY"] = "CompanySubscriptioCommonRepository";
|
|
13
13
|
RepositoryProvider["EVENT_SUBSCRIPTION_COMMON_REPOSITORY"] = "EventSubscriptioCommonRepository";
|
|
14
14
|
RepositoryProvider["PREFERENCE_CUSTOMIZATION_REPOSITORY"] = "PreferenceCustomizationRepository";
|
|
15
|
+
RepositoryProvider["EVENT_PROFILE_REPOSITORY"] = "EventProfileRepository";
|
|
15
16
|
})(RepositoryProvider || (exports.RepositoryProvider = RepositoryProvider = {}));
|
|
16
17
|
//# 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":";;;
|
|
1
|
+
{"version":3,"file":"repository-provider.enum.js","sourceRoot":"","sources":["../../src/enums/repository-provider.enum.ts"],"names":[],"mappings":";;;AACA,IAAY,kBAWX;AAXD,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;AACrD,CAAC,EAXW,kBAAkB,kCAAlB,kBAAkB,QAW7B"}
|