@aldb2b/common 1.0.854 → 1.0.856

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.
Files changed (24) hide show
  1. package/build/entities/models/companies/entities/companies/investor.schema.d.ts +1 -1
  2. package/build/entities/models/companies/entities/companies/status-detail.schema.d.ts +1 -0
  3. package/build/entities/models/companies/entities/companies/status-detail.schema.js.map +1 -1
  4. package/build/entities/models/companies/entities/contacts/activity-log.schema.d.ts +1 -0
  5. package/build/entities/models/companies/entities/contacts/activity-log.schema.js.map +1 -1
  6. package/build/entities/models/companies/entities/contacts/company-status-detail.schema.d.ts +1 -0
  7. package/build/entities/models/companies/entities/contacts/company-status-detail.schema.js.map +1 -1
  8. package/build/entities/models/companies/entities/contacts/contact-detail.schema.d.ts +1 -0
  9. package/build/entities/models/companies/entities/contacts/contact-detail.schema.js.map +1 -1
  10. package/build/entities/models/companies/entities/contacts/device-notification.schema.d.ts +1 -0
  11. package/build/entities/models/companies/entities/contacts/device-notification.schema.js.map +1 -1
  12. package/build/entities/models/companies/entities/contacts/location.schema.d.ts +58 -0
  13. package/build/entities/models/companies/entities/contacts/location.schema.js +22 -0
  14. package/build/entities/models/companies/entities/contacts/location.schema.js.map +1 -0
  15. package/build/entities/models/companies/entities/contacts/web-notification-key.schema.d.ts +1 -0
  16. package/build/entities/models/companies/entities/contacts/web-notification-key.schema.js.map +1 -1
  17. package/build/entities/models/companies/entities/contacts/web-notification.schema.d.ts +1 -0
  18. package/build/entities/models/companies/entities/contacts/web-notification.schema.js +0 -1
  19. package/build/entities/models/companies/entities/contacts/web-notification.schema.js.map +1 -1
  20. package/build/entities/models/subscriptions/subscriptions.provider.d.ts +9 -1
  21. package/build/entities/models/subscriptions/subscriptions.provider.js +7 -0
  22. package/build/entities/models/subscriptions/subscriptions.provider.js.map +1 -1
  23. package/build/tsconfig.tsbuildinfo +1 -1
  24. package/package.json +1 -1
@@ -53,7 +53,7 @@ import { CustomModel } from '../../../../../db/CustomModel';
53
53
  import { InvestmentType } from './investment-type.enum';
54
54
  export type InvestorModel = CustomModel<Investor>;
55
55
  export declare class Investor {
56
- _id?: string;
56
+ _id: string;
57
57
  investmentType: InvestmentType;
58
58
  numberOfInvestments?: number;
59
59
  numberOfLeadInvestments?: number;
@@ -54,6 +54,7 @@ import { CompanyStatus } from '../../../../../enums/company-status.enum';
54
54
  import { Contact } from '../contacts/contact.entity';
55
55
  export type StatusDetailModel = CustomModel<StatusDetail>;
56
56
  export declare class StatusDetail {
57
+ _id: string;
57
58
  actionBy: Contact;
58
59
  actionAt: Date;
59
60
  fromStatus: CompanyStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"status-detail.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/companies/status-detail.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,kFAAwE;AAGxE,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,YAAY;CAKxB;AALD,oCAKC;AAEM,MAAM,qBAAqB,GAAG,GAGnC,EAAE;IACF,MAAM,kBAAkB,GAAG,IAAI,iBAAM,CAAkC;QACrE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;QAC5C,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC3D,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;KACF,CAAC,CAAA;IAEF,OAAO,kBAAkB,CAAA;AAC3B,CAAC,CAAA;AAlBY,QAAA,qBAAqB,yBAkBjC"}
1
+ {"version":3,"file":"status-detail.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/companies/status-detail.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,kFAAwE;AAGxE,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,YAAY;CAMxB;AAND,oCAMC;AAEM,MAAM,qBAAqB,GAAG,GAGnC,EAAE;IACF,MAAM,kBAAkB,GAAG,IAAI,iBAAM,CAAkC;QACrE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;QAC5C,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC3D,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;KACF,CAAC,CAAA;IAEF,OAAO,kBAAkB,CAAA;AAC3B,CAAC,CAAA;AAlBY,QAAA,qBAAqB,yBAkBjC"}
@@ -53,6 +53,7 @@ import { CustomModel } from '../../../../../db/CustomModel';
53
53
  import { UserActivityEnum } from './user-activity.enum';
54
54
  export type ActivityLogModel = CustomModel<ActivityLog>;
55
55
  export declare class ActivityLog {
56
+ _id: string;
56
57
  timestamp: Date;
57
58
  activityType: UserActivityEnum;
58
59
  createdBy?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"activity-log.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/activity-log.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,6DAAuD;AAIvD,MAAa,WAAW;CAKvB;AALD,kCAKC;AAEM,MAAM,oBAAoB,GAAG,GAGlC,EAAE;IACF,MAAM,iBAAiB,GAAG,IAAI,iBAAM,CAAgC;QAClE,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC5D,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,qCAAgB,CAAC;YACrC,OAAO,EAAE,qCAAgB,CAAC,QAAQ;SACnC;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;QACvC,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;AAjBY,QAAA,oBAAoB,wBAiBhC"}
1
+ {"version":3,"file":"activity-log.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/activity-log.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,6DAAuD;AAIvD,MAAa,WAAW;CAMvB;AAND,kCAMC;AAEM,MAAM,oBAAoB,GAAG,GAGlC,EAAE;IACF,MAAM,iBAAiB,GAAG,IAAI,iBAAM,CAAgC;QAClE,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC5D,YAAY,EAAE;YACZ,IAAI,EAAE,MAAM;YACZ,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,qCAAgB,CAAC;YACrC,OAAO,EAAE,qCAAgB,CAAC,QAAQ;SACnC;QACD,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE;QACvC,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;AAjBY,QAAA,oBAAoB,wBAiBhC"}
@@ -54,6 +54,7 @@ import { CompanyStatus } from '../../../../../enums/company-status.enum';
54
54
  import { Contact } from './contact.entity';
55
55
  export type CompanyStatusDetailModel = CustomModel<CompanyStatusDetail>;
56
56
  export declare class CompanyStatusDetail {
57
+ _id: string;
57
58
  actionBy: Contact;
58
59
  actionAt: Date;
59
60
  fromStatus: CompanyStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"company-status-detail.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/company-status-detail.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,kFAAwE;AAGxE,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,mBAAmB;CAK/B;AALD,kDAKC;AAEM,MAAM,4BAA4B,GAAG,GAG1C,EAAE;IACF,MAAM,yBAAyB,GAAG,IAAI,iBAAM,CAG1C;QACA,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;QAC5C,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC3D,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;KACF,CAAC,CAAA;IAEF,OAAO,yBAAyB,CAAA;AAClC,CAAC,CAAA;AArBY,QAAA,4BAA4B,gCAqBxC"}
1
+ {"version":3,"file":"company-status-detail.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/company-status-detail.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,kFAAwE;AAGxE,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,mBAAmB;CAM/B;AAND,kDAMC;AAEM,MAAM,4BAA4B,GAAG,GAG1C,EAAE;IACF,MAAM,yBAAyB,GAAG,IAAI,iBAAM,CAG1C;QACA,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;QAC5C,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,GAAG,EAAE;QAC3D,UAAU,EAAE;YACV,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,mCAAa,CAAC;SACnC;KACF,CAAC,CAAA;IAEF,OAAO,yBAAyB,CAAA;AAClC,CAAC,CAAA;AArBY,QAAA,4BAA4B,gCAqBxC"}
@@ -55,6 +55,7 @@ import { ContactTypeEnum } from '../../../../../enums/contact-type.enum';
55
55
  import { VerifyDataSourceEnum } from '../../../../../enums/verify-data-source.enum';
56
56
  export type ContactDetailModel = CustomModel<ContactDetail>;
57
57
  export declare class ContactDetail {
58
+ _id: string;
58
59
  contactType: ContactTypeEnum;
59
60
  dataSource?: VerifyDataSourceEnum;
60
61
  value: string;
@@ -1 +1 @@
1
- {"version":3,"file":"contact-detail.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/contact-detail.schema.ts"],"names":[],"mappings":";;;AACA,uCAAiC;AAEjC,8EAAwE;AACxE,0FAAmF;AAEnF,MAAM,QAAQ,GAA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-52,6 +52,7 @@ import { Schema } from 'mongoose';
52
52
  import { CustomModel } from '../../../../../db/CustomModel';
53
53
  export type DeviceNotificationModel = CustomModel<DeviceNotification>;
54
54
  export declare class DeviceNotification {
55
+ _id: string;
55
56
  deviceToken: string;
56
57
  endpointARN: string;
57
58
  tags: any[];
@@ -1 +1 @@
1
- {"version":3,"file":"device-notification.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/device-notification.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAGjC,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAEM,MAAM,2BAA2B,GAAG,GAGzC,EAAE;IACF,MAAM,wBAAwB,GAAG,IAAI,iBAAM,CAGzC;QACA,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QACzD,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QACzD,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;KACvC,CAAC,CAAA;IAEF,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AAdY,QAAA,2BAA2B,+BAcvC"}
1
+ {"version":3,"file":"device-notification.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/device-notification.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAGjC,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,kBAAkB;CAK9B;AALD,gDAKC;AAEM,MAAM,2BAA2B,GAAG,GAGzC,EAAE;IACF,MAAM,wBAAwB,GAAG,IAAI,iBAAM,CAGzC;QACA,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QACzD,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;QACzD,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,EAAE,CAAC;KACvC,CAAC,CAAA;IAEF,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AAdY,QAAA,2BAA2B,+BAcvC"}
@@ -0,0 +1,58 @@
1
+ /// <reference types="mongoose/types/aggregate" />
2
+ /// <reference types="mongoose/types/callback" />
3
+ /// <reference types="mongoose/types/collection" />
4
+ /// <reference types="mongoose/types/connection" />
5
+ /// <reference types="mongoose/types/cursor" />
6
+ /// <reference types="mongoose/types/document" />
7
+ /// <reference types="mongoose/types/error" />
8
+ /// <reference types="mongoose/types/expressions" />
9
+ /// <reference types="mongoose/types/helpers" />
10
+ /// <reference types="mongoose/types/middlewares" />
11
+ /// <reference types="mongoose/types/indexes" />
12
+ /// <reference types="mongoose/types/models" />
13
+ /// <reference types="mongoose/types/mongooseoptions" />
14
+ /// <reference types="mongoose/types/pipelinestage" />
15
+ /// <reference types="mongoose/types/populate" />
16
+ /// <reference types="mongoose/types/query" />
17
+ /// <reference types="mongoose/types/schemaoptions" />
18
+ /// <reference types="mongoose/types/schematypes" />
19
+ /// <reference types="mongoose/types/session" />
20
+ /// <reference types="mongoose/types/types" />
21
+ /// <reference types="mongoose/types/utility" />
22
+ /// <reference types="mongoose/types/validation" />
23
+ /// <reference types="mongoose/types/virtuals" />
24
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/aggregate" />
25
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/callback" />
26
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/collection" />
27
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/connection" />
28
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/cursor" />
29
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/document" />
30
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/error" />
31
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/expressions" />
32
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/helpers" />
33
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/middlewares" />
34
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/indexes" />
35
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/models" />
36
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/mongooseoptions" />
37
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/pipelinestage" />
38
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/populate" />
39
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/query" />
40
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/schemaoptions" />
41
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/schematypes" />
42
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/session" />
43
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/types" />
44
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/utility" />
45
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/validation" />
46
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/virtuals" />
47
+ /// <reference types="@aldb2b/common/node_modules/mongoose" />
48
+ /// <reference types="mongoose/types/inferschematype" />
49
+ /// <reference types="mongoose/types/inferrawdoctype" />
50
+ /// <reference types="@aldb2b/common/node_modules/mongoose/types/inferschematype" />
51
+ import { Schema } from 'mongoose';
52
+ import { CustomModel } from '../../../../../db/CustomModel';
53
+ export type LocationModel = CustomModel<Location>;
54
+ export declare class Location {
55
+ type: string;
56
+ coordinates: number[];
57
+ }
58
+ export declare const getLocationSchema: () => Schema<Location, LocationModel>;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getLocationSchema = exports.Location = void 0;
4
+ const mongoose_1 = require("mongoose");
5
+ class Location {
6
+ }
7
+ exports.Location = Location;
8
+ const getLocationSchema = () => {
9
+ const locationSchema = new mongoose_1.Schema({
10
+ type: {
11
+ type: String,
12
+ trim: true,
13
+ required: true,
14
+ enum: ['Point'],
15
+ default: 'Point',
16
+ },
17
+ coordinates: { type: [Number], required: true },
18
+ });
19
+ return locationSchema;
20
+ };
21
+ exports.getLocationSchema = getLocationSchema;
22
+ //# sourceMappingURL=location.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/location.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAKjC,MAAa,QAAQ;CAGpB;AAHD,4BAGC;AAEM,MAAM,iBAAiB,GAAG,GAAoC,EAAE;IACrE,MAAM,cAAc,GAAG,IAAI,iBAAM,CAA0B;QACzD,IAAI,EAAE;YACJ,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,IAAI;YACV,QAAQ,EAAE,IAAI;YACd,IAAI,EAAE,CAAC,OAAO,CAAC;YACf,OAAO,EAAE,OAAO;SACjB;QAED,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;KAChD,CAAC,CAAA;IAEF,OAAO,cAAc,CAAA;AACvB,CAAC,CAAA;AAdY,QAAA,iBAAiB,qBAc7B"}
@@ -52,6 +52,7 @@ import { Schema } from 'mongoose';
52
52
  import { CustomModel } from '../../../../../db/CustomModel';
53
53
  export type WebNotificationKeyModel = CustomModel<WebNotificationKey>;
54
54
  export declare class WebNotificationKey {
55
+ _id: string;
55
56
  auth: string;
56
57
  p256dh: string;
57
58
  }
@@ -1 +1 @@
1
- {"version":3,"file":"web-notification-key.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/web-notification-key.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAKjC,MAAa,kBAAkB;CAG9B;AAHD,gDAGC;AAEM,MAAM,2BAA2B,GAAG,GAGzC,EAAE;IACF,MAAM,wBAAwB,GAAG,IAAI,iBAAM,CAGzC;QACA,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;QAC/D,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;KAClE,CAAC,CAAA;IAEF,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AAbY,QAAA,2BAA2B,+BAavC"}
1
+ {"version":3,"file":"web-notification-key.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/web-notification-key.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAKjC,MAAa,kBAAkB;CAI9B;AAJD,gDAIC;AAEM,MAAM,2BAA2B,GAAG,GAGzC,EAAE;IACF,MAAM,wBAAwB,GAAG,IAAI,iBAAM,CAGzC;QACA,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;QAC/D,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;KAClE,CAAC,CAAA;IAEF,OAAO,wBAAwB,CAAA;AACjC,CAAC,CAAA;AAbY,QAAA,2BAA2B,+BAavC"}
@@ -53,6 +53,7 @@ import { CustomModel } from '../../../../../db/CustomModel';
53
53
  import { WebNotificationKey } from './web-notification-key.schema';
54
54
  export type WebNotificationModel = CustomModel<WebNotification>;
55
55
  export declare class WebNotification {
56
+ _id: string;
56
57
  endpoint: string;
57
58
  expirationTime: string;
58
59
  keys: WebNotificationKey[];
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getWebNotificationSchema = exports.WebNotification = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  const web_notification_key_schema_1 = require("./web-notification-key.schema");
6
- const ObjectId = mongoose_1.Schema.Types.ObjectId;
7
6
  class WebNotification {
8
7
  }
9
8
  exports.WebNotification = WebNotification;
@@ -1 +1 @@
1
- {"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/web-notification.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,+EAGsC;AAEtC,MAAM,QAAQ,GAAG,iBAAM,CAAC,KAAK,CAAC,QAAQ,CAAA;AAGtC,MAAa,eAAe;CAI3B;AAJD,0CAIC;AAEM,MAAM,wBAAwB,GAAG,GAGtC,EAAE;IACF,MAAM,wBAAwB,GAAG,IAAA,yDAA2B,GAAE,CAAA;IAE9D,MAAM,qBAAqB,GAAG,IAAI,iBAAM,CAGtC;QACA,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtD,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5D,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;KAC3C,CAAC,CAAA;IAEF,OAAO,qBAAqB,CAAA;AAC9B,CAAC,CAAA;AAhBY,QAAA,wBAAwB,4BAgBpC"}
1
+ {"version":3,"file":"web-notification.schema.js","sourceRoot":"","sources":["../../../../../../src/entities/models/companies/entities/contacts/web-notification.schema.ts"],"names":[],"mappings":";;;AAAA,uCAAiC;AAEjC,+EAGsC;AAItC,MAAa,eAAe;CAK3B;AALD,0CAKC;AAEM,MAAM,wBAAwB,GAAG,GAGtC,EAAE;IACF,MAAM,wBAAwB,GAAG,IAAA,yDAA2B,GAAE,CAAA;IAE9D,MAAM,qBAAqB,GAAG,IAAI,iBAAM,CAGtC;QACA,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QACtD,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC5D,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAC;KAC3C,CAAC,CAAA;IAEF,OAAO,qBAAqB,CAAA;AAC9B,CAAC,CAAA;AAhBY,QAAA,wBAAwB,4BAgBpC"}
@@ -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 { SubscriptionLog } from './entities/subscriptionLogs';
55
+ import { RepositoryProvider } from 'src/enums/repository-provider.enum';
56
+ import { CustomModel } from '@aldb2b/common';
57
+ import { SubscriptionLogRepository } from './repositories';
54
58
  export declare const subscriptionProviders: ({
55
59
  provide: DatabaseModel;
56
60
  useFactory: (connection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/features").Feature, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/features").Feature> & import("./entities/features").Feature & Required<{
@@ -71,8 +75,12 @@ export declare const subscriptionProviders: ({
71
75
  inject: DatabaseConnection[];
72
76
  } | {
73
77
  provide: DatabaseModel;
74
- useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<import("./entities/subscriptionLogs").SubscriptionLog, {}, {}, {}, import("mongoose").Document<unknown, {}, import("./entities/subscriptionLogs").SubscriptionLog> & import("./entities/subscriptionLogs").SubscriptionLog & Required<{
78
+ useFactory: (connection: import("mongoose").Connection, companyConnection: import("mongoose").Connection, userConnection: import("mongoose").Connection) => import("mongoose").Model<SubscriptionLog, {}, {}, {}, import("mongoose").Document<unknown, {}, SubscriptionLog> & SubscriptionLog & Required<{
75
79
  _id: string;
76
80
  }>, any>;
77
81
  inject: DatabaseConnection[];
82
+ } | {
83
+ provide: RepositoryProvider;
84
+ inject: DatabaseModel[];
85
+ useFactory: (subscriptionLog: CustomModel<SubscriptionLog>) => SubscriptionLogRepository;
78
86
  })[];
@@ -7,6 +7,8 @@ const features_1 = require("./entities/features");
7
7
  const companySubscriptions_1 = require("./entities/companySubscriptions");
8
8
  const eventSubscriptions_1 = require("./entities/eventSubscriptions");
9
9
  const subscriptionLogs_1 = require("./entities/subscriptionLogs");
10
+ const repository_provider_enum_1 = require("src/enums/repository-provider.enum");
11
+ const repositories_1 = require("./repositories");
10
12
  exports.subscriptionProviders = [
11
13
  {
12
14
  provide: database_model_enum_1.DatabaseModel.FEATURE_MODEL,
@@ -40,5 +42,10 @@ exports.subscriptionProviders = [
40
42
  database_connection_enum_1.DatabaseConnection.USER_CONNECTION,
41
43
  ],
42
44
  },
45
+ {
46
+ provide: repository_provider_enum_1.RepositoryProvider.SUBSCRIPTION_LOG_REPOSITORY,
47
+ inject: [database_model_enum_1.DatabaseModel.SUBSCRIPTION_LOG_MODEL],
48
+ useFactory: (subscriptionLog) => new repositories_1.SubscriptionLogRepository(subscriptionLog),
49
+ },
43
50
  ];
44
51
  //# sourceMappingURL=subscriptions.provider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"subscriptions.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/subscriptions/subscriptions.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAClE,sFAA4E;AAC5E,kDAAoD;AACpD,0EAA4E;AAC5E,sEAAwE;AACxE,kEAAoE;AAEvD,QAAA,qBAAqB,GAAG;IACnC;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,yBAAc;QAC1B,MAAM,EAAE,CAAC,6CAAkB,CAAC,uBAAuB,CAAC;KACrD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,0BAA0B;QACjD,UAAU,EAAE,iDAA0B;QACtC,MAAM,EAAE;YACN,6CAAkB,CAAC,uBAAuB;YAC1C,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,wBAAwB;QAC/C,UAAU,EAAE,6CAAwB;QACpC,MAAM,EAAE;YACN,6CAAkB,CAAC,uBAAuB;YAC1C,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,sBAAsB;QAC7C,UAAU,EAAE,yCAAsB;QAClC,MAAM,EAAE;YACN,6CAAkB,CAAC,uBAAuB;YAC1C,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,eAAe;SACnC;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"subscriptions.provider.js","sourceRoot":"","sources":["../../../../src/entities/models/subscriptions/subscriptions.provider.ts"],"names":[],"mappings":";;;AAAA,4EAAkE;AAClE,sFAA4E;AAC5E,kDAAoD;AACpD,0EAA4E;AAC5E,sEAAwE;AACxE,kEAGoC;AACpC,iFAAuE;AAEvE,iDAA0D;AAE7C,QAAA,qBAAqB,GAAG;IACnC;QACE,OAAO,EAAE,mCAAa,CAAC,aAAa;QACpC,UAAU,EAAE,yBAAc;QAC1B,MAAM,EAAE,CAAC,6CAAkB,CAAC,uBAAuB,CAAC;KACrD;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,0BAA0B;QACjD,UAAU,EAAE,iDAA0B;QACtC,MAAM,EAAE;YACN,6CAAkB,CAAC,uBAAuB;YAC1C,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,wBAAwB;QAC/C,UAAU,EAAE,6CAAwB;QACpC,MAAM,EAAE;YACN,6CAAkB,CAAC,uBAAuB;YAC1C,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,gBAAgB;SACpC;KACF;IACD;QACE,OAAO,EAAE,mCAAa,CAAC,sBAAsB;QAC7C,UAAU,EAAE,yCAAsB;QAClC,MAAM,EAAE;YACN,6CAAkB,CAAC,uBAAuB;YAC1C,6CAAkB,CAAC,kBAAkB;YACrC,6CAAkB,CAAC,eAAe;SACnC;KACF;IACD;QACE,OAAO,EAAE,6CAAkB,CAAC,2BAA2B;QACvD,MAAM,EAAE,CAAC,mCAAa,CAAC,sBAAsB,CAAC;QAC9C,UAAU,EAAE,CAAC,eAA6C,EAAE,EAAE,CAC5D,IAAI,wCAAyB,CAAC,eAAe,CAAC;KACjD;CACF,CAAA"}