@aldb2b/common 1.0.847 → 1.0.854
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/db/auditTrail/interfaces/Audit-trail-input.interface.d.ts +1 -1
- package/build/entities/models/common/common.provider.d.ts +5 -5
- package/build/entities/models/common/common.provider.js +5 -5
- package/build/entities/models/common/common.provider.js.map +1 -1
- package/build/entities/models/common/controllers/audit-trail.controller.js +2 -2
- package/build/entities/models/common/controllers/audit-trail.controller.js.map +1 -1
- package/build/entities/models/{users/entities/users → common/entities}/location.entity.d.ts +1 -1
- package/build/entities/models/common/entities/location.entity.js.map +1 -0
- package/build/entities/models/common/index.d.ts +1 -0
- package/build/entities/models/common/index.js +1 -0
- package/build/entities/models/common/index.js.map +1 -1
- package/build/entities/models/companies/companies.provider.d.ts +50 -2
- package/build/entities/models/companies/companies.provider.js +67 -2
- package/build/entities/models/companies/companies.provider.js.map +1 -1
- package/build/entities/models/companies/dto/update-company-statistics.dto.d.ts +10 -0
- package/build/{types/enddpoint.interface.js → entities/models/companies/dto/update-company-statistics.dto.js} +1 -1
- package/build/entities/models/companies/dto/update-company-statistics.dto.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company-contact-detail.schema.d.ts +70 -0
- package/build/entities/models/companies/entities/companies/company-contact-detail.schema.js +37 -0
- package/build/entities/models/companies/entities/companies/company-contact-detail.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company-size.enum.d.ts +6 -0
- package/build/entities/models/companies/entities/companies/company-size.enum.js +11 -0
- package/build/entities/models/companies/entities/companies/company-size.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company-statistic-entity.enum.d.ts +5 -0
- package/build/entities/models/companies/entities/companies/company-statistic-entity.enum.js +10 -0
- package/build/entities/models/companies/entities/companies/company-statistic-entity.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company-statistic-type.enum.d.ts +4 -0
- package/build/entities/models/companies/entities/companies/company-statistic-type.enum.js +9 -0
- package/build/entities/models/companies/entities/companies/company-statistic-type.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company-statistic.entity.d.ts +69 -0
- package/build/entities/models/companies/entities/companies/company-statistic.entity.js +60 -0
- package/build/entities/models/companies/entities/companies/company-statistic.entity.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company-type.enum.d.ts +26 -0
- package/build/entities/models/companies/entities/companies/company-type.enum.js +31 -0
- package/build/entities/models/companies/entities/companies/company-type.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company-user-type.enum.d.ts +9 -0
- package/build/entities/models/companies/entities/companies/company-user-type.enum.js +14 -0
- package/build/entities/models/companies/entities/companies/company-user-type.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/company.entity.d.ts +184 -0
- package/build/entities/models/companies/entities/companies/company.entity.js +578 -0
- package/build/entities/models/companies/entities/companies/company.entity.js.map +1 -0
- package/build/entities/models/companies/entities/companies/export-capability.schema.d.ts +70 -0
- package/build/entities/models/companies/entities/companies/export-capability.schema.js +27 -0
- package/build/entities/models/companies/entities/companies/export-capability.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/fortune.enum.d.ts +6 -0
- package/build/entities/models/companies/entities/companies/fortune.enum.js +11 -0
- package/build/entities/models/companies/entities/companies/fortune.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/funding-stage.enum.d.ts +12 -0
- package/build/entities/models/companies/entities/companies/funding-stage.enum.js +17 -0
- package/build/entities/models/companies/entities/companies/funding-stage.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/group.enum.d.ts +6 -0
- package/build/entities/models/companies/entities/companies/group.enum.js +11 -0
- package/build/entities/models/companies/entities/companies/group.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/hr-data.schema.d.ts +61 -0
- package/build/entities/models/companies/entities/companies/hr-data.schema.js +18 -0
- package/build/entities/models/companies/entities/companies/hr-data.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/index.d.ts +24 -0
- package/build/entities/models/companies/entities/companies/index.js +41 -0
- package/build/entities/models/companies/entities/companies/index.js.map +1 -0
- package/build/entities/models/companies/entities/companies/investment-ticket.enum.d.ts +10 -0
- package/build/entities/models/companies/entities/companies/investment-ticket.enum.js +15 -0
- package/build/entities/models/companies/entities/companies/investment-ticket.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/investment-type.enum.d.ts +22 -0
- package/build/entities/models/companies/entities/companies/investment-type.enum.js +27 -0
- package/build/entities/models/companies/entities/companies/investment-type.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/investor.schema.d.ts +95 -0
- package/build/entities/models/companies/entities/companies/investor.schema.js +52 -0
- package/build/entities/models/companies/entities/companies/investor.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/manufacturer.schema.d.ts +63 -0
- package/build/entities/models/companies/entities/companies/manufacturer.schema.js +20 -0
- package/build/entities/models/companies/entities/companies/manufacturer.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/number-of-employees.enum.d.ts +10 -0
- package/build/entities/models/companies/entities/companies/number-of-employees.enum.js +15 -0
- package/build/entities/models/companies/entities/companies/number-of-employees.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/number-of-followers.enum.d.ts +7 -0
- package/build/entities/models/companies/entities/companies/number-of-followers.enum.js +12 -0
- package/build/entities/models/companies/entities/companies/number-of-followers.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/ownership-status.enum.d.ts +12 -0
- package/build/entities/models/companies/entities/companies/ownership-status.enum.js +17 -0
- package/build/entities/models/companies/entities/companies/ownership-status.enum.js.map +1 -0
- package/build/entities/models/companies/entities/companies/preference.schema.d.ts +69 -0
- package/build/entities/models/companies/entities/companies/preference.schema.js +26 -0
- package/build/entities/models/companies/entities/companies/preference.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/sector.schema.d.ts +62 -0
- package/build/entities/models/companies/entities/companies/sector.schema.js +20 -0
- package/build/entities/models/companies/entities/companies/sector.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/status-detail.schema.d.ts +62 -0
- package/build/entities/models/companies/entities/companies/status-detail.schema.js +26 -0
- package/build/entities/models/companies/entities/companies/status-detail.schema.js.map +1 -0
- package/build/entities/models/companies/entities/companies/trade-show-attended-as.enum.d.ts +11 -0
- package/build/entities/models/companies/entities/companies/trade-show-attended-as.enum.js +16 -0
- package/build/entities/models/companies/entities/companies/trade-show-attended-as.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/activity-log.schema.d.ts +61 -0
- package/build/entities/models/companies/entities/contacts/activity-log.schema.js +24 -0
- package/build/entities/models/companies/entities/contacts/activity-log.schema.js.map +1 -0
- package/build/entities/models/companies/entities/{company.entity.d.ts → contacts/company-status-detail.schema.d.ts} +10 -21
- package/build/entities/models/companies/entities/contacts/company-status-detail.schema.js +26 -0
- package/build/entities/models/companies/entities/contacts/company-status-detail.schema.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/connection-degree.enum.d.ts +5 -0
- package/build/entities/models/companies/entities/contacts/connection-degree.enum.js +10 -0
- package/build/entities/models/companies/entities/contacts/connection-degree.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/contact-detail.schema.d.ts +69 -0
- package/build/entities/models/companies/entities/contacts/contact-detail.schema.js +31 -0
- package/build/entities/models/companies/entities/contacts/contact-detail.schema.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/contact.entity.d.ts +144 -0
- package/build/entities/models/companies/entities/contacts/contact.entity.js +380 -0
- package/build/entities/models/companies/entities/contacts/contact.entity.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/data-association-modules.enum.d.ts +10 -0
- package/build/entities/models/companies/entities/contacts/data-association-modules.enum.js +15 -0
- package/build/entities/models/companies/entities/contacts/data-association-modules.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/department.enum.d.ts +31 -0
- package/build/entities/models/companies/entities/contacts/department.enum.js +36 -0
- package/build/entities/models/companies/entities/contacts/department.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/device-notification.schema.d.ts +59 -0
- package/build/entities/models/companies/entities/contacts/device-notification.schema.js +18 -0
- package/build/entities/models/companies/entities/contacts/device-notification.schema.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/device.enum.d.ts +5 -0
- package/build/entities/models/companies/entities/contacts/device.enum.js +10 -0
- package/build/entities/models/companies/entities/contacts/device.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/index.d.ts +16 -0
- package/build/entities/models/companies/entities/contacts/index.js +33 -0
- package/build/entities/models/companies/entities/contacts/index.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/position.enum.d.ts +16 -0
- package/build/entities/models/companies/entities/contacts/position.enum.js +21 -0
- package/build/entities/models/companies/entities/contacts/position.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/seniority-level.enum.d.ts +15 -0
- package/build/entities/models/companies/entities/contacts/seniority-level.enum.js +20 -0
- package/build/entities/models/companies/entities/contacts/seniority-level.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/status.enum.d.ts +6 -0
- package/build/entities/models/companies/entities/contacts/status.enum.js +11 -0
- package/build/entities/models/companies/entities/contacts/status.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/user-activity.enum.d.ts +4 -0
- package/build/entities/models/companies/entities/contacts/user-activity.enum.js +9 -0
- package/build/entities/models/companies/entities/contacts/user-activity.enum.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/web-notification-key.schema.d.ts +58 -0
- package/build/entities/models/companies/entities/contacts/web-notification-key.schema.js +16 -0
- package/build/entities/models/companies/entities/contacts/web-notification-key.schema.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/web-notification.schema.d.ts +60 -0
- package/build/entities/models/companies/entities/contacts/web-notification.schema.js +20 -0
- package/build/entities/models/companies/entities/contacts/web-notification.schema.js.map +1 -0
- package/build/entities/models/companies/entities/contacts/years-of-experience.enum.d.ts +7 -0
- package/build/entities/models/companies/entities/contacts/years-of-experience.enum.js +12 -0
- package/build/entities/models/companies/entities/contacts/years-of-experience.enum.js.map +1 -0
- package/build/entities/models/companies/index.d.ts +5 -2
- package/build/entities/models/companies/index.js +5 -2
- package/build/entities/models/companies/index.js.map +1 -1
- package/build/entities/models/companies/repositories/company-common.repository.d.ts +7 -0
- package/build/entities/models/companies/repositories/company-common.repository.js +12 -0
- package/build/entities/models/companies/repositories/company-common.repository.js.map +1 -0
- package/build/entities/models/companies/repositories/contact-common.repository.d.ts +7 -0
- package/build/entities/models/companies/repositories/contact-common.repository.js +12 -0
- package/build/entities/models/companies/repositories/contact-common.repository.js.map +1 -0
- package/build/entities/models/companies/services/company-common.service.d.ts +19 -0
- package/build/entities/models/companies/services/company-common.service.js +96 -0
- package/build/entities/models/companies/services/company-common.service.js.map +1 -0
- package/build/entities/models/meetings/index.d.ts +2 -0
- package/build/entities/models/meetings/index.js +2 -0
- package/build/entities/models/meetings/index.js.map +1 -1
- package/build/entities/models/meetings/repositories/meeting-common.repository.d.ts +9 -0
- package/build/entities/models/meetings/repositories/meeting-common.repository.js +43 -0
- package/build/entities/models/meetings/repositories/meeting-common.repository.js.map +1 -0
- package/build/entities/models/meetings/repositories/meeting-request-common.repository.d.ts +9 -0
- package/build/entities/models/meetings/repositories/meeting-request-common.repository.js +43 -0
- package/build/entities/models/meetings/repositories/meeting-request-common.repository.js.map +1 -0
- package/build/entities/models/model.providers.d.ts +47 -3
- package/build/entities/models/model.providers.js +2 -0
- package/build/entities/models/model.providers.js.map +1 -1
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-status.enum.d.ts +8 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-status.enum.js +13 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-status.enum.js.map +1 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-user-status.enum.d.ts +4 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-user-status.enum.js +9 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-user-status.enum.js.map +1 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-user.entity.d.ts +66 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-user.entity.js +49 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription-user.entity.js.map +1 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription.entity.d.ts +80 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription.entity.js +133 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/company-subscription.entity.js.map +1 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/index.d.ts +4 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/index.js +21 -0
- package/build/entities/models/subscriptions/entities/companySubscriptions/index.js.map +1 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/event-subscription-status.enum.d.ts +6 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/event-subscription-status.enum.js +11 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/event-subscription-status.enum.js.map +1 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/event-subscription.entity.d.ts +75 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/event-subscription.entity.js +112 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/event-subscription.entity.js.map +1 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/index.d.ts +2 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/index.js +19 -0
- package/build/entities/models/subscriptions/entities/eventSubscriptions/index.js.map +1 -0
- package/build/entities/models/subscriptions/entities/features/endpoint.entity.d.ts +65 -0
- package/build/entities/models/subscriptions/entities/features/endpoint.entity.js +32 -0
- package/build/entities/models/subscriptions/entities/features/endpoint.entity.js.map +1 -0
- package/build/entities/models/{companies/entities/contact.entity.d.ts → subscriptions/entities/features/feature.entity.d.ts} +15 -16
- package/build/entities/models/subscriptions/entities/features/feature.entity.js +77 -0
- package/build/entities/models/subscriptions/entities/features/feature.entity.js.map +1 -0
- package/build/entities/models/subscriptions/entities/features/index.d.ts +2 -0
- package/build/entities/models/subscriptions/entities/features/index.js +19 -0
- package/build/entities/models/subscriptions/entities/features/index.js.map +1 -0
- package/build/entities/models/subscriptions/entities/subscriptionLogs/index.d.ts +1 -0
- package/build/entities/models/subscriptions/entities/subscriptionLogs/index.js +18 -0
- package/build/entities/models/subscriptions/entities/subscriptionLogs/index.js.map +1 -0
- package/build/entities/models/subscriptions/entities/subscriptionLogs/subscription-log.entity.d.ts +76 -0
- package/build/entities/models/subscriptions/entities/subscriptionLogs/subscription-log.entity.js +132 -0
- package/build/entities/models/subscriptions/entities/subscriptionLogs/subscription-log.entity.js.map +1 -0
- package/build/entities/models/subscriptions/index.d.ts +5 -0
- package/build/entities/models/subscriptions/index.js +22 -0
- package/build/entities/models/subscriptions/index.js.map +1 -0
- package/build/entities/models/subscriptions/repositories/company-subscription-common.repository.d.ts +7 -0
- package/build/entities/models/subscriptions/repositories/company-subscription-common.repository.js +12 -0
- package/build/entities/models/subscriptions/repositories/company-subscription-common.repository.js.map +1 -0
- package/build/entities/models/subscriptions/repositories/event-subscription-common.repository.d.ts +7 -0
- package/build/entities/models/subscriptions/repositories/event-subscription-common.repository.js +12 -0
- package/build/entities/models/subscriptions/repositories/event-subscription-common.repository.js.map +1 -0
- package/build/entities/models/subscriptions/repositories/index.d.ts +3 -0
- package/build/entities/models/subscriptions/repositories/index.js +20 -0
- package/build/entities/models/subscriptions/repositories/index.js.map +1 -0
- package/build/entities/models/subscriptions/repositories/subscription-log.repository.d.ts +7 -0
- package/build/entities/models/subscriptions/repositories/subscription-log.repository.js +12 -0
- package/build/entities/models/subscriptions/repositories/subscription-log.repository.js.map +1 -0
- package/build/entities/models/subscriptions/subscriptions.provider.d.ts +78 -0
- package/build/entities/models/subscriptions/subscriptions.provider.js +44 -0
- package/build/entities/models/subscriptions/subscriptions.provider.js.map +1 -0
- package/build/entities/models/users/entities/users/index.d.ts +1 -1
- package/build/entities/models/users/entities/users/index.js +1 -1
- package/build/entities/models/users/entities/users/index.js.map +1 -1
- package/build/entities/models/users/entities/users/user.entity.js +5 -5
- package/build/entities/models/users/entities/users/user.entity.js.map +1 -1
- package/build/entities/mongoose.providers.js +4 -0
- package/build/entities/mongoose.providers.js.map +1 -1
- package/build/enums/company-status-condition.enum.d.ts +6 -0
- package/build/enums/company-status-condition.enum.js +11 -0
- package/build/enums/company-status-condition.enum.js.map +1 -0
- package/build/enums/company-status.enum.d.ts +9 -0
- package/build/enums/company-status.enum.js +14 -0
- package/build/enums/company-status.enum.js.map +1 -0
- package/build/enums/contact-type.enum.d.ts +8 -0
- package/build/enums/contact-type.enum.js +13 -0
- package/build/enums/contact-type.enum.js.map +1 -0
- package/build/enums/database-connection.enum.d.ts +2 -1
- package/build/enums/database-connection.enum.js +1 -0
- package/build/enums/database-connection.enum.js.map +1 -1
- package/build/enums/database-model.enum.d.ts +5 -1
- package/build/enums/database-model.enum.js +4 -0
- package/build/enums/database-model.enum.js.map +1 -1
- package/build/enums/repository-provider.enum.d.ts +9 -0
- package/build/enums/repository-provider.enum.js +14 -0
- package/build/enums/repository-provider.enum.js.map +1 -0
- package/build/enums/request-method.enum.d.ts +7 -0
- package/build/enums/request-method.enum.js +12 -0
- package/build/enums/request-method.enum.js.map +1 -0
- package/build/enums/service-provider.enum.d.ts +4 -0
- package/build/enums/service-provider.enum.js +9 -0
- package/build/enums/service-provider.enum.js.map +1 -0
- package/build/enums/territory.enum.d.ts +27 -0
- package/build/enums/territory.enum.js +32 -0
- package/build/enums/territory.enum.js.map +1 -0
- package/build/enums/verify-data-source.enum.d.ts +4 -0
- package/build/enums/verify-data-source.enum.js +9 -0
- package/build/enums/verify-data-source.enum.js.map +1 -0
- package/build/index.d.ts +11 -5
- package/build/index.js +11 -5
- package/build/index.js.map +1 -1
- package/build/middlewares/inject-subscription.middleware.d.ts +15 -0
- package/build/middlewares/inject-subscription.middleware.js +219 -0
- package/build/middlewares/inject-subscription.middleware.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/utils/getEndpoint.d.ts +4 -4
- package/build/utils/getEndpoint.js.map +1 -1
- package/package.json +1 -1
- package/build/entities/models/companies/entities/company.entity.js +0 -58
- package/build/entities/models/companies/entities/company.entity.js.map +0 -1
- package/build/entities/models/companies/entities/contact.entity.js +0 -52
- package/build/entities/models/companies/entities/contact.entity.js.map +0 -1
- package/build/entities/models/users/entities/users/location.entity.js.map +0 -1
- package/build/enums/repository-provide.enum.d.ts +0 -3
- package/build/enums/repository-provide.enum.js +0 -8
- package/build/enums/repository-provide.enum.js.map +0 -1
- package/build/enums/service-provide.enum.d.ts +0 -3
- package/build/enums/service-provide.enum.js +0 -8
- package/build/enums/service-provide.enum.js.map +0 -1
- package/build/types/enddpoint.interface.d.ts +0 -10
- package/build/types/enddpoint.interface.js.map +0 -1
- package/build/types/feature.interface.d.ts +0 -10
- package/build/types/feature.interface.js +0 -3
- package/build/types/feature.interface.js.map +0 -1
- /package/build/entities/models/{users/entities/users → common/entities}/location.entity.js +0 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Request, Response, NextFunction } from 'express';
|
|
2
|
+
import { SubscriptionLogRepository } from '../entities/models/subscriptions/repositories/subscription-log.repository';
|
|
3
|
+
import { CompanySubscriptionCommonRepository, EventSubscriptionCommonRepository } from '../entities/models/subscriptions';
|
|
4
|
+
import { ClientProxy } from '@nestjs/microservices';
|
|
5
|
+
import { CompanyCommonService } from '../entities/models/companies';
|
|
6
|
+
export declare function InjectSubscriptionLogMiddleware(relatedRecordId?: string): {
|
|
7
|
+
new (subscriptionLogRepository: SubscriptionLogRepository, companySubscriptionRepository: CompanySubscriptionCommonRepository, eventSubscriptionRepository: EventSubscriptionCommonRepository, client: ClientProxy, companyCommonService: CompanyCommonService): {
|
|
8
|
+
subscriptionLogRepository: SubscriptionLogRepository;
|
|
9
|
+
companySubscriptionRepository: CompanySubscriptionCommonRepository;
|
|
10
|
+
eventSubscriptionRepository: EventSubscriptionCommonRepository;
|
|
11
|
+
client: ClientProxy;
|
|
12
|
+
companyCommonService: CompanyCommonService;
|
|
13
|
+
use(request: Request, response: Response, next: NextFunction): Promise<void>;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,219 @@
|
|
|
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
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.InjectSubscriptionLogMiddleware = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const subscription_log_repository_1 = require("../entities/models/subscriptions/repositories/subscription-log.repository");
|
|
18
|
+
const getHeaderParam_1 = require("../utils/getHeaderParam");
|
|
19
|
+
const get_parsed_query_1 = require("../utils/get-parsed-query");
|
|
20
|
+
const subscriptions_1 = require("../entities/models/subscriptions");
|
|
21
|
+
const endpoint_type_enum_1 = require("../types/endpoint-type.enum");
|
|
22
|
+
const getEndpoint_1 = require("../utils/getEndpoint");
|
|
23
|
+
const rxjs_1 = require("rxjs");
|
|
24
|
+
const microservices_1 = require("@nestjs/microservices");
|
|
25
|
+
const subjects_1 = require("../events/subjects");
|
|
26
|
+
const companies_1 = require("../entities/models/companies");
|
|
27
|
+
function InjectSubscriptionLogMiddleware(relatedRecordId) {
|
|
28
|
+
let SubscriptionLogMiddleware = class SubscriptionLogMiddleware {
|
|
29
|
+
constructor(subscriptionLogRepository, companySubscriptionRepository, eventSubscriptionRepository, client, companyCommonService) {
|
|
30
|
+
this.subscriptionLogRepository = subscriptionLogRepository;
|
|
31
|
+
this.companySubscriptionRepository = companySubscriptionRepository;
|
|
32
|
+
this.eventSubscriptionRepository = eventSubscriptionRepository;
|
|
33
|
+
this.client = client;
|
|
34
|
+
this.companyCommonService = companyCommonService;
|
|
35
|
+
}
|
|
36
|
+
async use(request, response, next) {
|
|
37
|
+
let hasSubscriptionLog = false;
|
|
38
|
+
const userId = (0, getHeaderParam_1.getHeaderParam)(request.headers, 'id');
|
|
39
|
+
const companyId = (0, getHeaderParam_1.getHeaderParam)(request.headers, 'company');
|
|
40
|
+
const contactId = (0, getHeaderParam_1.getHeaderParam)(request.headers, 'contactId');
|
|
41
|
+
const eventId = (0, getHeaderParam_1.getHeaderParam)(request.headers, 'event-id');
|
|
42
|
+
if (relatedRecordId) {
|
|
43
|
+
const response = await this.subscriptionLogRepository.read({
|
|
44
|
+
query: {
|
|
45
|
+
relatedRecordId: relatedRecordId,
|
|
46
|
+
companyId: companyId,
|
|
47
|
+
},
|
|
48
|
+
lean: true,
|
|
49
|
+
necessaryProjectionArray: ['_id'],
|
|
50
|
+
limit: 1,
|
|
51
|
+
});
|
|
52
|
+
hasSubscriptionLog =
|
|
53
|
+
response.data && response.data.length ? true : false;
|
|
54
|
+
}
|
|
55
|
+
if (hasSubscriptionLog === false) {
|
|
56
|
+
let subscription = null;
|
|
57
|
+
let companySubscriptionId;
|
|
58
|
+
let eventSubscriptionId;
|
|
59
|
+
const companySubscription = await this.companySubscriptionRepository.findOne({ company: companyId, status: subscriptions_1.CompanySubscriptionStatus.ACTIVE }, {}, [], {
|
|
60
|
+
lean: true,
|
|
61
|
+
});
|
|
62
|
+
if (companySubscription) {
|
|
63
|
+
subscription = companySubscription;
|
|
64
|
+
companySubscriptionId = companySubscription._id;
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
const eventSubscription = await this.eventSubscriptionRepository.findOne({ company: companyId, status: subscriptions_1.CompanySubscriptionStatus.ACTIVE }, {}, [], {
|
|
68
|
+
lean: true,
|
|
69
|
+
});
|
|
70
|
+
if (eventSubscription) {
|
|
71
|
+
subscription = eventSubscription;
|
|
72
|
+
eventSubscriptionId = eventSubscription._id;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
if (!subscription) {
|
|
76
|
+
throw new common_1.ForbiddenException('Subscription is required');
|
|
77
|
+
}
|
|
78
|
+
const features = subscription
|
|
79
|
+
? subscription.features && subscription.features.length
|
|
80
|
+
? subscription.features
|
|
81
|
+
: []
|
|
82
|
+
: [];
|
|
83
|
+
const remainingPoints = subscription
|
|
84
|
+
? subscription.remainingPoints
|
|
85
|
+
? subscription.remainingPoints
|
|
86
|
+
: 0
|
|
87
|
+
: 0;
|
|
88
|
+
const { endpoint, feature } = validateSubscription(features, remainingPoints, request.method, request.route.path);
|
|
89
|
+
const chunks = [];
|
|
90
|
+
let oldWrite = response.write;
|
|
91
|
+
const overwriteWrite = async (...restArgs) => {
|
|
92
|
+
chunks.push(Buffer.from(restArgs[0]));
|
|
93
|
+
oldWrite.apply(response, restArgs);
|
|
94
|
+
};
|
|
95
|
+
response.write = overwriteWrite;
|
|
96
|
+
let oldEnd = response.end;
|
|
97
|
+
const overwriteEnd = async (...restArgs) => {
|
|
98
|
+
if (restArgs[0]) {
|
|
99
|
+
chunks.push(Buffer.from(restArgs[0]));
|
|
100
|
+
}
|
|
101
|
+
let body = Buffer.concat(chunks).toString('utf8');
|
|
102
|
+
if (body == null || body == undefined) {
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
body = (0, get_parsed_query_1.getParsedQuery)(body, null);
|
|
107
|
+
if (body.success) {
|
|
108
|
+
relatedRecordId = relatedRecordId
|
|
109
|
+
? relatedRecordId
|
|
110
|
+
: body.result && Array.isArray(body.result) == false
|
|
111
|
+
? body.result['_id']
|
|
112
|
+
: null;
|
|
113
|
+
await this.subscriptionLogRepository.create({
|
|
114
|
+
userId: userId,
|
|
115
|
+
contactId: contactId,
|
|
116
|
+
companyId: companyId,
|
|
117
|
+
companySubscriptionId: companySubscriptionId,
|
|
118
|
+
eventSubscriptionId: eventSubscriptionId,
|
|
119
|
+
subscriptionId: subscription.subscription,
|
|
120
|
+
relatedRecordId: relatedRecordId,
|
|
121
|
+
featureType: feature.featureType,
|
|
122
|
+
featureId: feature._id,
|
|
123
|
+
endpointId: endpoint._id,
|
|
124
|
+
});
|
|
125
|
+
const description = subtractSubscriptionDescription(endpoint, feature, response['description']);
|
|
126
|
+
(0, rxjs_1.firstValueFrom)(this.client.send(subjects_1.Subjects.SubtractSubscriptionPoint, {
|
|
127
|
+
point: endpoint.point,
|
|
128
|
+
id: subscription._id,
|
|
129
|
+
method: endpoint.method,
|
|
130
|
+
action: 'endpoint-called',
|
|
131
|
+
description: description.trim(),
|
|
132
|
+
createdBy: contactId,
|
|
133
|
+
relatedRecord: relatedRecordId,
|
|
134
|
+
relatedRecordType: feature.featureType,
|
|
135
|
+
event: eventId,
|
|
136
|
+
}));
|
|
137
|
+
await this.companyCommonService.updateCompanyStatistics({
|
|
138
|
+
eventId: eventId,
|
|
139
|
+
companyIds: [companyId],
|
|
140
|
+
featureType: feature.featureType,
|
|
141
|
+
statisticType: companies_1.CompanyStatisticType.FEATURE,
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
oldEnd.apply(response, restArgs);
|
|
146
|
+
};
|
|
147
|
+
response.end = overwriteEnd;
|
|
148
|
+
}
|
|
149
|
+
next();
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
SubscriptionLogMiddleware = __decorate([
|
|
153
|
+
(0, common_1.Injectable)(),
|
|
154
|
+
__param(3, (0, common_1.Inject)('SUBSCRIPTION_SERVICE')),
|
|
155
|
+
__param(4, (0, common_1.Inject)('COMPANY_COMMON_SERVICE')),
|
|
156
|
+
__metadata("design:paramtypes", [subscription_log_repository_1.SubscriptionLogRepository,
|
|
157
|
+
subscriptions_1.CompanySubscriptionCommonRepository,
|
|
158
|
+
subscriptions_1.EventSubscriptionCommonRepository,
|
|
159
|
+
microservices_1.ClientProxy,
|
|
160
|
+
companies_1.CompanyCommonService])
|
|
161
|
+
], SubscriptionLogMiddleware);
|
|
162
|
+
return SubscriptionLogMiddleware;
|
|
163
|
+
}
|
|
164
|
+
exports.InjectSubscriptionLogMiddleware = InjectSubscriptionLogMiddleware;
|
|
165
|
+
const validateSubscription = (features, remainingPoints, method, path) => {
|
|
166
|
+
const { endpoint, feature, exceptionResp } = (0, getEndpoint_1.getEndpoint)(features, method, path);
|
|
167
|
+
if (exceptionResp) {
|
|
168
|
+
throw new common_1.ForbiddenException(exceptionResp);
|
|
169
|
+
}
|
|
170
|
+
if (endpoint && endpoint.isFree == false) {
|
|
171
|
+
if (endpoint.endpointType === endpoint_type_enum_1.EndpointType.BINARY) {
|
|
172
|
+
throw new common_1.ForbiddenException({
|
|
173
|
+
statusCode: 403,
|
|
174
|
+
message: 'Please upgrade your subscription',
|
|
175
|
+
error: 'Forbidden',
|
|
176
|
+
description: 'Please upgrade your subscription',
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
else if (endpoint.endpointType === endpoint_type_enum_1.EndpointType.LIMIT &&
|
|
180
|
+
endpoint.limit == 0) {
|
|
181
|
+
throw new common_1.ForbiddenException({
|
|
182
|
+
statusCode: 402,
|
|
183
|
+
message: 'Limits exceeded',
|
|
184
|
+
error: 'Forbidden',
|
|
185
|
+
description: 'Limits exceeded, please renew your subscription or upgrade your plan',
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
else if (endpoint.endpointType === endpoint_type_enum_1.EndpointType.CREDIT &&
|
|
189
|
+
remainingPoints < endpoint.point) {
|
|
190
|
+
throw new common_1.ForbiddenException({
|
|
191
|
+
statusCode: 402,
|
|
192
|
+
message: 'Insufficient credit',
|
|
193
|
+
error: 'Forbidden',
|
|
194
|
+
description: 'Insufficient credits, please renew your subscription or upgrade your plan',
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return { endpoint, feature };
|
|
199
|
+
};
|
|
200
|
+
const subtractSubscriptionDescription = (endpoint, feature, description) => {
|
|
201
|
+
description = description ? description : '';
|
|
202
|
+
if (endpoint.isFree === false &&
|
|
203
|
+
endpoint.endpointType !== endpoint_type_enum_1.EndpointType.BINARY) {
|
|
204
|
+
if (endpoint?.endpointType === endpoint_type_enum_1.EndpointType.LIMIT) {
|
|
205
|
+
description =
|
|
206
|
+
description +
|
|
207
|
+
' ' +
|
|
208
|
+
`Deduct ${endpoint.limit} ${endpoint.endpointType} for ${feature.featureType}`;
|
|
209
|
+
}
|
|
210
|
+
else if (endpoint?.endpointType === endpoint_type_enum_1.EndpointType.CREDIT) {
|
|
211
|
+
description =
|
|
212
|
+
description +
|
|
213
|
+
' ' +
|
|
214
|
+
`Deduct ${endpoint.point} ${endpoint.endpointType} for ${feature.featureType}`;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
return description;
|
|
218
|
+
};
|
|
219
|
+
//# sourceMappingURL=inject-subscription.middleware.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject-subscription.middleware.js","sourceRoot":"","sources":["../../src/middlewares/inject-subscription.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAKuB;AAEvB,2HAAqH;AACrH,4DAAwD;AACxD,gEAA0D;AAC1D,oEAMyC;AACzC,oEAA0D;AAC1D,sDAAkD;AAClD,+BAAqC;AACrC,yDAAmD;AACnD,iDAA6C;AAC7C,4DAGqC;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