@aldb2b/common 1.0.1097 → 1.0.1099

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.
@@ -51,10 +51,12 @@
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 { Event } from './entities/event/event.entity';
54
55
  import { EventProfile } from './entities/eventProfile/event-profile.entity';
55
56
  import { RepositoryProvider } from "../../../enums/repository-provider.enum";
56
57
  import { CustomModel } from "../../../db/CustomModel";
57
58
  import { EventProfileRepository } from "./repositories/event-profile.repository";
59
+ import { EventRepository } from "./repositories/event.repository";
58
60
  export declare const eventProviders: ({
59
61
  provide: DatabaseModel;
60
62
  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<{
@@ -69,7 +71,7 @@ export declare const eventProviders: ({
69
71
  inject: DatabaseConnection[];
70
72
  } | {
71
73
  provide: DatabaseModel;
72
- 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<{
74
+ useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<Event, {}, {}, {}, import("mongoose").Document<unknown, {}, Event> & Event & Required<{
73
75
  _id: string;
74
76
  }>, any>;
75
77
  inject: DatabaseConnection[];
@@ -77,4 +79,8 @@ export declare const eventProviders: ({
77
79
  provide: RepositoryProvider;
78
80
  inject: DatabaseModel[];
79
81
  useFactory: (eventProfileModel: CustomModel<EventProfile>) => EventProfileRepository;
82
+ } | {
83
+ provide: RepositoryProvider;
84
+ inject: DatabaseModel[];
85
+ useFactory: (eventModel: CustomModel<Event>) => EventRepository;
80
86
  })[];
@@ -8,6 +8,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
9
  const repository_provider_enum_1 = require("../../../enums/repository-provider.enum");
10
10
  const event_profile_repository_1 = require("./repositories/event-profile.repository");
11
+ const event_repository_1 = require("./repositories/event.repository");
11
12
  exports.eventProviders = [
12
13
  {
13
14
  provide: database_model_enum_1.DatabaseModel.EVENT_TYPE_MODEL,
@@ -33,5 +34,10 @@ exports.eventProviders = [
33
34
  inject: [database_model_enum_1.DatabaseModel.EVENT_PROFILE_MODEL],
34
35
  useFactory: (eventProfileModel) => new event_profile_repository_1.EventProfileRepository(eventProfileModel),
35
36
  },
37
+ {
38
+ provide: repository_provider_enum_1.RepositoryProvider.EVENT_REPOSITORY,
39
+ inject: [database_model_enum_1.DatabaseModel.EVENT_MODEL],
40
+ useFactory: (eventModel) => new event_repository_1.EventRepository(eventModel),
41
+ },
36
42
  ];
37
43
  //# 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,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"}
1
+ {"version":3,"file":"events.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/events/events.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAmE;AACnE,sFAA6E;AAC7E,gEAAkE;AAClE,8EAA0E;AAC1E,uFAA+F;AAC/F,sFAA2E;AAE3E,sFAA+E;AAC/E,sEAAgE;AAEnD,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;IACD;QACE,OAAO,EAAE,6CAAkB,CAAC,gBAAgB;QAC5C,MAAM,EAAE,CAAC,mCAAa,CAAC,WAAW,CAAC;QACnC,UAAU,EAAE,CAAC,UAA8B,EAAE,EAAE,CAC3C,IAAI,kCAAe,CAAC,UAAU,CAAC;KACpC;CACF,CAAC"}
@@ -6,3 +6,4 @@ export * from './events.provider';
6
6
  export * from './entities/db-record-status.enum';
7
7
  export * from './entities/timestamp.entity';
8
8
  export * from './repositories/event-profile.repository';
9
+ export * from './repositories/event.repository';
@@ -22,4 +22,5 @@ __exportStar(require("./events.provider"), exports);
22
22
  __exportStar(require("./entities/db-record-status.enum"), exports);
23
23
  __exportStar(require("./entities/timestamp.entity"), exports);
24
24
  __exportStar(require("./repositories/event-profile.repository"), exports);
25
+ __exportStar(require("./repositories/event.repository"), exports);
25
26
  //# 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;AAC5C,0EAAwD"}
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;AACxD,kEAAgD"}
@@ -0,0 +1,7 @@
1
+ import { CustomModel } from "../../../../db/CustomModel";
2
+ import { MongooseBase } from "../../../../db/MongooseBase";
3
+ import { Event } from "../entities/event/event.entity";
4
+ export declare class EventRepository extends MongooseBase<Event> {
5
+ private eventModel;
6
+ constructor(eventModel: CustomModel<Event>);
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.EventRepository = 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 EventRepository = class EventRepository extends MongooseBase_1.MongooseBase {
17
+ constructor(eventModel) {
18
+ super(eventModel);
19
+ this.eventModel = eventModel;
20
+ }
21
+ };
22
+ exports.EventRepository = EventRepository;
23
+ exports.EventRepository = EventRepository = __decorate([
24
+ (0, common_1.Injectable)(),
25
+ __metadata("design:paramtypes", [CustomModel_1.CustomModel])
26
+ ], EventRepository);
27
+ //# sourceMappingURL=event.repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.repository.js","sourceRoot":"","sources":["../../../../../src/entities/models/events/repositories/event.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0C;AAC1C,4DAAuD;AACvD,8DAAyD;AAIlD,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,2BAAmB;IACpD,YAAoB,UAA8B;QAC9C,KAAK,CAAC,UAAU,CAAC,CAAA;QADD,eAAU,GAAV,UAAU,CAAoB;IAElD,CAAC;CAEJ,CAAA;AALY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;qCAEuB,yBAAW;GADlC,eAAe,CAK3B"}
@@ -211,4 +211,8 @@ export declare const modelProviders: ({
211
211
  provide: import("../..").RepositoryProvider;
212
212
  inject: import("../..").DatabaseModel[];
213
213
  useFactory: (eventProfileModel: import("../..").CustomModel<import("./events").EventProfile>) => import("./events").EventProfileRepository;
214
+ } | {
215
+ provide: import("../..").RepositoryProvider;
216
+ inject: import("../..").DatabaseModel[];
217
+ useFactory: (eventModel: import("../..").CustomModel<import("./events").Event>) => import("./events").EventRepository;
214
218
  })[];
@@ -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
+ EVENT_REPOSITORY = "EventRepository"
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["EVENT_REPOSITORY"] = "EventRepository";
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,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"}
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,0DAAoC,CAAA;AACtC,CAAC,EAZW,kBAAkB,kCAAlB,kBAAkB,QAY7B"}