@aldb2b/common 1.0.1033 → 1.0.1035

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.
@@ -32,7 +32,7 @@ const getCustomFieldSchema = () => {
32
32
  enum: Object.values(profile_item_custom_type_enum_1.ProfileItemCustomType),
33
33
  },
34
34
  customTypePossibleValues: { type: [PossibleValueSchema], default: [], required: true },
35
- value: { type: mongoose_1.Schema.Types.Mixed },
35
+ value: { type: String },
36
36
  createdAt: { type: Date, required: true, default: Date.now },
37
37
  updatedAt: { type: Date, required: true, default: Date.now },
38
38
  });
@@ -1 +1 @@
1
- {"version":3,"file":"custom-fields.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/companies/custom-fields.schema.ts"],"names":[],"mappings":";;;AACA,uCAAiC;AACjC,sGAAyF;AAGzF,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAEtC,MAAa,WAAW;CASvB;AATD,kCASC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAGM,MAAM,oBAAoB,GAAG,GAGlC,EAAE;IACF,MAAM,mBAAmB,GAAG,IAAI,iBAAM,CAIlC;QACE,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;SACf;KACF,EACD,EAAE,GAAG,EAAE,KAAK,EAAE,CACjB,CAAA;IAED,MAAM,iBAAiB,GAAG,IAAI,iBAAM,CAAgC;QAClE,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;QAClC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACvB,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,qDAAqB,CAAC;SAC3C;QACD,wBAAwB,EAAE,EAAE,IAAI,EAAE,CAAC,mBAAmB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtF,KAAK,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,KAAK,EAAE;QACnC,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,CAAA;IAEF,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA;AAtCY,QAAA,oBAAoB,wBAsChC"}
1
+ {"version":3,"file":"custom-fields.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/companies/custom-fields.schema.ts"],"names":[],"mappings":";;;AACA,uCAAiC;AACjC,sGAAyF;AAGzF,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAEtC,MAAa,WAAW;CASvB;AATD,kCASC;AAED,MAAa,uBAAuB;CAGnC;AAHD,0DAGC;AAGM,MAAM,oBAAoB,GAAG,GAGlC,EAAE;IACF,MAAM,mBAAmB,GAAG,IAAI,iBAAM,CAIlC;QACE,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;SACf;QACD,KAAK,EAAE;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;SACf;KACF,EACD,EAAE,GAAG,EAAE,KAAK,EAAE,CACjB,CAAA;IAED,MAAM,iBAAiB,GAAG,IAAI,iBAAM,CAAgC;QAClE,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACjC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;QAClC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACvB,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,qDAAqB,CAAC;SAC3C;QACD,wBAAwB,EAAE,EAAE,IAAI,EAAE,CAAC,mBAAmB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtF,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACvB,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,CAAA;IAEF,OAAO,iBAAiB,CAAA;AAC1B,CAAC,CAAA;AAtCY,QAAA,oBAAoB,wBAsChC"}
@@ -51,6 +51,9 @@
51
51
  import { Schema } from 'mongoose';
52
52
  import { CustomModel } from '../../../../../db/CustomModel';
53
53
  import { EventProfileStatus } from '../../../../../enums/event-profile-status.enum';
54
+ import { ProfileItemType } from "../../../../../enums/profile-item-type.enum";
55
+ import { ProfileItemCustomType } from "../../../../../enums/profile-item-custom-type.enum";
56
+ import { CustomTypePossibleValue } from "../../../companies";
54
57
  export type CompanyProfileItemModel = CustomModel<CompanyProfileItem>;
55
58
  export declare class CompanyProfileItem {
56
59
  _id: string;
@@ -60,6 +63,9 @@ export declare class CompanyProfileItem {
60
63
  registrationStatus: EventProfileStatus;
61
64
  profileStatus: EventProfileStatus;
62
65
  filterStatus: EventProfileStatus;
66
+ profileItemType: ProfileItemType;
67
+ customType: ProfileItemCustomType;
68
+ customTypePossibleValues: CustomTypePossibleValue[];
63
69
  createdAt: Date;
64
70
  updatedAt: Date;
65
71
  }
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CompanyProfileItemSchema = exports.CompanyProfileItem = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const event_profile_status_enum_1 = require("../../../../../enums/event-profile-status.enum");
6
+ const profile_item_type_enum_1 = require("../../../../../enums/profile-item-type.enum");
7
+ const profile_item_custom_type_enum_1 = require("../../../../../enums/profile-item-custom-type.enum");
8
+ const companies_1 = require("../../../companies");
6
9
  class CompanyProfileItem {
7
10
  }
8
11
  exports.CompanyProfileItem = CompanyProfileItem;
@@ -33,6 +36,30 @@ exports.CompanyProfileItemSchema = new mongoose_1.Schema({
33
36
  enum: Object.values(event_profile_status_enum_1.EventProfileStatus),
34
37
  default: event_profile_status_enum_1.EventProfileStatus.DISABLE,
35
38
  },
39
+ profileItemType: {
40
+ type: String,
41
+ enum: profile_item_type_enum_1.ProfileItemType,
42
+ required: true,
43
+ default: profile_item_type_enum_1.ProfileItemType.MAIN,
44
+ },
45
+ customType: {
46
+ type: String,
47
+ enum: profile_item_custom_type_enum_1.ProfileItemCustomType,
48
+ required: function () {
49
+ return this.profileItemType === profile_item_type_enum_1.ProfileItemType.CUSTOM;
50
+ },
51
+ },
52
+ customTypePossibleValues: {
53
+ type: [companies_1.CustomTypePossibleValue],
54
+ required: function () {
55
+ return (this.profileItemType === profile_item_type_enum_1.ProfileItemType.CUSTOM &&
56
+ [
57
+ profile_item_custom_type_enum_1.ProfileItemCustomType.CHECK_BOXS,
58
+ profile_item_custom_type_enum_1.ProfileItemCustomType.RADIO_BUTTONS,
59
+ ].indexOf(this.customType) !== -1);
60
+ },
61
+ default: [],
62
+ },
36
63
  createdAt: { type: Date, required: true, default: Date.now },
37
64
  updatedAt: { type: Date, required: true, default: Date.now },
38
65
  });
@@ -1 +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"}
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;AACpF,wFAA4E;AAC5E,sGAAyF;AACzF,kDAA2D;AAI3D,MAAa,kBAAkB;CAa9B;AAbD,gDAaC;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,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,wCAAe;QACrB,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,wCAAe,CAAC,IAAI;KAC9B;IACD,UAAU,EAAE;QACV,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,qDAAqB;QAC3B,QAAQ,EAAE;YACR,OAAO,IAAI,CAAC,eAAe,KAAK,wCAAe,CAAC,MAAM,CAAC;QACzD,CAAC;KACF;IACD,wBAAwB,EAAE;QACxB,IAAI,EAAE,CAAC,mCAAuB,CAAC;QAC/B,QAAQ,EAAE;YACR,OAAO,CACH,IAAI,CAAC,eAAe,KAAK,wCAAe,CAAC,MAAM;gBAC/C;oBACE,qDAAqB,CAAC,UAAU;oBAChC,qDAAqB,CAAC,aAAa;iBACpC,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CACpC,CAAC;QACJ,CAAC;QACD,OAAO,EAAE,EAAE;KACZ;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"}
@@ -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<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<{
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,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
+ {"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"}
@@ -5,3 +5,4 @@ export * from './entities/eventProfile/event-profile.entity';
5
5
  export * from './events.provider';
6
6
  export * from './entities/db-record-status.enum';
7
7
  export * from './entities/timestamp.entity';
8
+ export * from './repositories/event-profile.repository';
@@ -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":";;;AAAA,IAAY,kBAUX;AAVD,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;AAC3E,CAAC,EAVW,kBAAkB,kCAAlB,kBAAkB,QAU7B"}
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"}