From 2999e539b3987fecb736a29bb3b21f84ce7192e1 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Fri, 14 Jun 2024 12:01:14 +0100 Subject: [PATCH] refactor: Update symbol type to use lowercase 'symbol' in ColumnAccessControl files --- Model/Models/AcmeCertificate.ts | 2 +- Model/Models/AcmeChallenge.ts | 2 +- Model/Models/ApiKey.ts | 6 ++-- Model/Models/ApiKeyPermission.ts | 8 ++--- Model/Models/BillingInvoice.ts | 6 ++-- Model/Models/BillingPaymentMethod.ts | 6 ++-- Model/Models/CallLog.ts | 4 +-- Model/Models/CodeRepository.ts | 6 ++-- Model/Models/CopilotEvent.ts | 12 ++++---- Model/Models/DataMigration.ts | 4 +-- Model/Models/Domain.ts | 6 ++-- Model/Models/EmailLog.ts | 6 ++-- Model/Models/EmailVerificationToken.ts | 4 +-- Model/Models/GreenlockCertificate.ts | 2 +- Model/Models/GreenlockChallenge.ts | 2 +- Model/Models/Incident.ts | 14 ++++----- Model/Models/IncidentCustomField.ts | 6 ++-- Model/Models/IncidentInternalNote.ts | 8 ++--- Model/Models/IncidentNoteTemplate.ts | 6 ++-- Model/Models/IncidentOwnerTeam.ts | 10 +++---- Model/Models/IncidentOwnerUser.ts | 10 +++---- Model/Models/IncidentPublicNote.ts | 8 ++--- Model/Models/IncidentSeverity.ts | 6 ++-- Model/Models/IncidentState.ts | 6 ++-- Model/Models/IncidentStateTimeline.ts | 10 +++---- Model/Models/IncidentTemplate.ts | 10 +++---- Model/Models/IncidentTemplateOwnerTeam.ts | 10 +++---- Model/Models/IncidentTemplateOwnerUser.ts | 10 +++---- Model/Models/Label.ts | 6 ++-- Model/Models/Monitor.ts | 8 ++--- Model/Models/MonitorCustomField.ts | 6 ++-- Model/Models/MonitorGroup.ts | 6 ++-- Model/Models/MonitorGroupOwnerTeam.ts | 10 +++---- Model/Models/MonitorGroupOwnerUser.ts | 10 +++---- Model/Models/MonitorGroupResource.ts | 10 +++---- Model/Models/MonitorOwnerTeam.ts | 10 +++---- Model/Models/MonitorOwnerUser.ts | 10 +++---- Model/Models/MonitorProbe.ts | 10 +++---- Model/Models/MonitorSecret.ts | 6 ++-- Model/Models/MonitorStatus.ts | 6 ++-- Model/Models/MonitorStatusTimeline.ts | 10 +++---- Model/Models/OnCallDutyPolicy.ts | 6 ++-- Model/Models/OnCallDutyPolicyCustomField.ts | 6 ++-- .../Models/OnCallDutyPolicyEscalationRule.ts | 8 ++--- .../OnCallDutyPolicyEscalationRuleSchedule.ts | 12 ++++---- .../OnCallDutyPolicyEscalationRuleTeam.ts | 12 ++++---- .../OnCallDutyPolicyEscalationRuleUser.ts | 12 ++++---- Model/Models/OnCallDutyPolicyExecutionLog.ts | 16 +++++----- .../OnCallDutyPolicyExecutionLogTimeline.ts | 20 ++++++------- Model/Models/OnCallDutyPolicySchedule.ts | 6 ++-- Model/Models/OnCallDutyPolicyScheduleLayer.ts | 8 ++--- .../OnCallDutyPolicyScheduleLayerUser.ts | 12 ++++---- Model/Models/Probe.ts | 8 ++--- Model/Models/Project.ts | 8 ++--- Model/Models/ProjectCallSMSConfig.ts | 6 ++-- Model/Models/ProjectSmtpConfig.ts | 6 ++-- Model/Models/ProjectSso.ts | 6 ++-- Model/Models/PromoCode.ts | 10 +++---- Model/Models/Reseller.ts | 4 +-- Model/Models/ResellerPlan.ts | 6 ++-- Model/Models/ScheduledMaintenance.ts | 10 +++---- .../Models/ScheduledMaintenanceCustomField.ts | 6 ++-- .../ScheduledMaintenanceInternalNote.ts | 8 ++--- .../ScheduledMaintenanceNoteTemplate.ts | 6 ++-- Model/Models/ScheduledMaintenanceOwnerTeam.ts | 10 +++---- Model/Models/ScheduledMaintenanceOwnerUser.ts | 10 +++---- .../Models/ScheduledMaintenancePublicNote.ts | 8 ++--- Model/Models/ScheduledMaintenanceState.ts | 6 ++-- .../ScheduledMaintenanceStateTimeline.ts | 10 +++---- Model/Models/ServiceCatalog.ts | 6 ++-- Model/Models/ServiceCatalogOwnerTeam.ts | 10 +++---- Model/Models/ServiceCatalogOwnerUser.ts | 10 +++---- Model/Models/ServiceRepository.ts | 10 +++---- Model/Models/ShortLink.ts | 2 +- Model/Models/SmsLog.ts | 4 +-- Model/Models/StatusPage.ts | 16 +++++----- Model/Models/StatusPageAnnouncement.ts | 6 ++-- Model/Models/StatusPageCustomField.ts | 6 ++-- Model/Models/StatusPageDomain.ts | 10 +++---- Model/Models/StatusPageFooterLink.ts | 8 ++--- Model/Models/StatusPageGroup.ts | 8 ++--- Model/Models/StatusPageHeaderLink.ts | 8 ++--- .../StatusPageHistoryChartBarColorRule.ts | 8 ++--- Model/Models/StatusPageOwnerTeam.ts | 10 +++---- Model/Models/StatusPageOwnerUser.ts | 10 +++---- Model/Models/StatusPagePrivateUser.ts | 8 ++--- Model/Models/StatusPageResource.ts | 14 ++++----- Model/Models/StatusPageSso.ts | 8 ++--- Model/Models/StatusPageSubscriber.ts | 8 ++--- Model/Models/Team.ts | 6 ++-- Model/Models/TeamMember.ts | 10 +++---- Model/Models/TeamPermission.ts | 8 ++--- Model/Models/TelemetryService.ts | 6 ++-- Model/Models/TelemetryUsageBilling.ts | 8 ++--- Model/Models/User.ts | 4 +-- Model/Models/UserCall.ts | 8 ++--- Model/Models/UserEmail.ts | 8 ++--- Model/Models/UserNotificationRule.ts | 16 +++++----- Model/Models/UserNotificationSetting.ts | 8 ++--- Model/Models/UserOnCallLog.ts | 24 +++++++-------- Model/Models/UserOnCallLogTimeline.ts | 30 +++++++++---------- Model/Models/UserSMS.ts | 8 ++--- Model/Models/Workflow.ts | 6 ++-- Model/Models/WorkflowLog.ts | 6 ++-- Model/Models/WorkflowVariable.ts | 8 ++--- eslint.config.js | 10 ++++--- 106 files changed, 445 insertions(+), 443 deletions(-) diff --git a/Model/Models/AcmeCertificate.ts b/Model/Models/AcmeCertificate.ts index e29924da73..2a86624662 100644 --- a/Model/Models/AcmeCertificate.ts +++ b/Model/Models/AcmeCertificate.ts @@ -108,7 +108,7 @@ export default class AcmeCertificate extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/AcmeChallenge.ts b/Model/Models/AcmeChallenge.ts index 93cccb6123..5cdc1fabbc 100644 --- a/Model/Models/AcmeChallenge.ts +++ b/Model/Models/AcmeChallenge.ts @@ -84,7 +84,7 @@ export default class AcmeChallenge extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ApiKey.ts b/Model/Models/ApiKey.ts index 09a0387c69..e51e02a9a3 100644 --- a/Model/Models/ApiKey.ts +++ b/Model/Models/ApiKey.ts @@ -93,7 +93,7 @@ export default class ApiKey extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -242,7 +242,7 @@ export default class ApiKey extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -294,7 +294,7 @@ export default class ApiKey extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ApiKeyPermission.ts b/Model/Models/ApiKeyPermission.ts index 36fa7988eb..795244be6b 100644 --- a/Model/Models/ApiKeyPermission.ts +++ b/Model/Models/ApiKeyPermission.ts @@ -109,7 +109,7 @@ export default class APIKeyPermission extends BaseModel { 'Relation to API Key resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ApiKey; }, { @@ -173,7 +173,7 @@ export default class APIKeyPermission extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -238,7 +238,7 @@ export default class APIKeyPermission extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -298,7 +298,7 @@ export default class APIKeyPermission extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/BillingInvoice.ts b/Model/Models/BillingInvoice.ts index 10d1350c85..78a5227507 100644 --- a/Model/Models/BillingInvoice.ts +++ b/Model/Models/BillingInvoice.ts @@ -70,7 +70,7 @@ export default class BillingInvoice extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -126,7 +126,7 @@ export default class BillingInvoice extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -178,7 +178,7 @@ export default class BillingInvoice extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/BillingPaymentMethod.ts b/Model/Models/BillingPaymentMethod.ts index 157f2bb374..6c9c49554b 100644 --- a/Model/Models/BillingPaymentMethod.ts +++ b/Model/Models/BillingPaymentMethod.ts @@ -68,7 +68,7 @@ export default class BillingPaymentMethod extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -136,7 +136,7 @@ export default class BillingPaymentMethod extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -196,7 +196,7 @@ export default class BillingPaymentMethod extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/CallLog.ts b/Model/Models/CallLog.ts index 6243e2b792..2a13e91ab9 100644 --- a/Model/Models/CallLog.ts +++ b/Model/Models/CallLog.ts @@ -71,7 +71,7 @@ export default class CallLog extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -271,7 +271,7 @@ export default class CallLog extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/CodeRepository.ts b/Model/Models/CodeRepository.ts index e405c3a24f..e1f590d197 100644 --- a/Model/Models/CodeRepository.ts +++ b/Model/Models/CodeRepository.ts @@ -114,7 +114,7 @@ export default class CodeRepository extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -279,7 +279,7 @@ export default class CodeRepository extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -340,7 +340,7 @@ export default class CodeRepository extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/CopilotEvent.ts b/Model/Models/CopilotEvent.ts index ad17806a7d..e105f5d02d 100644 --- a/Model/Models/CopilotEvent.ts +++ b/Model/Models/CopilotEvent.ts @@ -74,7 +74,7 @@ export default class CopilotEvent extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -132,7 +132,7 @@ export default class CopilotEvent extends BaseModel { 'Relation to CodeRepository Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return CodeRepository; }, { @@ -190,7 +190,7 @@ export default class CopilotEvent extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -244,7 +244,7 @@ export default class CopilotEvent extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -367,7 +367,7 @@ export default class CopilotEvent extends BaseModel { 'Relation to Service Catalog Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ServiceCatalog; }, { @@ -425,7 +425,7 @@ export default class CopilotEvent extends BaseModel { 'Relation to Service Repository Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ServiceRepository; }, { diff --git a/Model/Models/DataMigration.ts b/Model/Models/DataMigration.ts index 06dfb4029f..9df97bc1d0 100644 --- a/Model/Models/DataMigration.ts +++ b/Model/Models/DataMigration.ts @@ -105,7 +105,7 @@ export default class DataMigration extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -149,7 +149,7 @@ export default class DataMigration extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Domain.ts b/Model/Models/Domain.ts index 28ce04fdd0..2e455bd936 100644 --- a/Model/Models/Domain.ts +++ b/Model/Models/Domain.ts @@ -81,7 +81,7 @@ export default class Domain extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -205,7 +205,7 @@ export default class Domain extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -263,7 +263,7 @@ export default class Domain extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/EmailLog.ts b/Model/Models/EmailLog.ts index cab67a92bd..eb78684689 100644 --- a/Model/Models/EmailLog.ts +++ b/Model/Models/EmailLog.ts @@ -72,7 +72,7 @@ export default class EmailLog extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -254,7 +254,7 @@ export default class EmailLog extends BaseModel { 'Relation to ProjectSmtpConfig resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ProjectSmtpConfig; }, { @@ -306,7 +306,7 @@ export default class EmailLog extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/EmailVerificationToken.ts b/Model/Models/EmailVerificationToken.ts index ae9ec92339..5e20a977c9 100755 --- a/Model/Models/EmailVerificationToken.ts +++ b/Model/Models/EmailVerificationToken.ts @@ -44,7 +44,7 @@ export default class EmailVerificationToken extends BaseModel { modelType: User, }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -129,7 +129,7 @@ export default class EmailVerificationToken extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/GreenlockCertificate.ts b/Model/Models/GreenlockCertificate.ts index 3ab183229c..1887d670a0 100644 --- a/Model/Models/GreenlockCertificate.ts +++ b/Model/Models/GreenlockCertificate.ts @@ -83,7 +83,7 @@ export default class GreenlockCertificate extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/GreenlockChallenge.ts b/Model/Models/GreenlockChallenge.ts index 925ad420e1..c538692906 100644 --- a/Model/Models/GreenlockChallenge.ts +++ b/Model/Models/GreenlockChallenge.ts @@ -84,7 +84,7 @@ export default class GreenlockChallenge extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Incident.ts b/Model/Models/Incident.ts index a1c830d8ca..19ad077d49 100644 --- a/Model/Models/Incident.ts +++ b/Model/Models/Incident.ts @@ -110,7 +110,7 @@ export default class Incident extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -277,7 +277,7 @@ export default class Incident extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -331,7 +331,7 @@ export default class Incident extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -531,7 +531,7 @@ export default class Incident extends BaseModel { 'Current state of this incident. Is the incident acknowledged? or resolved?. This is related to Incident State', }) @ManyToOne( - (_type: string) => { + () => { return IncidentState; }, { @@ -606,7 +606,7 @@ export default class Incident extends BaseModel { 'How severe is this incident. Is it critical? or a minor incident?. This is related to Incident Severity.', }) @ManyToOne( - (_type: string) => { + () => { return IncidentSeverity; }, { @@ -676,7 +676,7 @@ export default class Incident extends BaseModel { 'Relation to Monitor Status Object. All monitors connected to this incident will be changed to this status when the incident is created.', }) @ManyToOne( - (_type: string) => { + () => { return MonitorStatus; }, { @@ -955,7 +955,7 @@ export default class Incident extends BaseModel { 'If this incident was created by a Probe, this is the probe that created it.', }) @ManyToOne( - (_type: string) => { + () => { return Probe; }, { diff --git a/Model/Models/IncidentCustomField.ts b/Model/Models/IncidentCustomField.ts index ab3ed26dee..ab40704fae 100644 --- a/Model/Models/IncidentCustomField.ts +++ b/Model/Models/IncidentCustomField.ts @@ -87,7 +87,7 @@ export default class IncidentCustomField extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -245,7 +245,7 @@ export default class IncidentCustomField extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -303,7 +303,7 @@ export default class IncidentCustomField extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentInternalNote.ts b/Model/Models/IncidentInternalNote.ts index e8fbe41ed6..a7c9e7f36f 100644 --- a/Model/Models/IncidentInternalNote.ts +++ b/Model/Models/IncidentInternalNote.ts @@ -90,7 +90,7 @@ export default class IncidentInternalNote extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -157,7 +157,7 @@ export default class IncidentInternalNote extends BaseModel { description: 'Relation to Incident in which this resource belongs', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -223,7 +223,7 @@ export default class IncidentInternalNote extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -277,7 +277,7 @@ export default class IncidentInternalNote extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentNoteTemplate.ts b/Model/Models/IncidentNoteTemplate.ts index 39e6b71cd8..5846d30b90 100644 --- a/Model/Models/IncidentNoteTemplate.ts +++ b/Model/Models/IncidentNoteTemplate.ts @@ -88,7 +88,7 @@ export default class IncidentNoteTemplate extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -258,7 +258,7 @@ export default class IncidentNoteTemplate extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -312,7 +312,7 @@ export default class IncidentNoteTemplate extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentOwnerTeam.ts b/Model/Models/IncidentOwnerTeam.ts index ccb1e12d1e..42fc63f168 100644 --- a/Model/Models/IncidentOwnerTeam.ts +++ b/Model/Models/IncidentOwnerTeam.ts @@ -89,7 +89,7 @@ export default class IncidentOwnerTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -157,7 +157,7 @@ export default class IncidentOwnerTeam extends BaseModel { 'Team that is the owner. All users in this team will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -224,7 +224,7 @@ export default class IncidentOwnerTeam extends BaseModel { 'Relation to Incident Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -292,7 +292,7 @@ export default class IncidentOwnerTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -351,7 +351,7 @@ export default class IncidentOwnerTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentOwnerUser.ts b/Model/Models/IncidentOwnerUser.ts index 2e267d4e81..987e159ebb 100644 --- a/Model/Models/IncidentOwnerUser.ts +++ b/Model/Models/IncidentOwnerUser.ts @@ -88,7 +88,7 @@ export default class IncidentOwnerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -156,7 +156,7 @@ export default class IncidentOwnerUser extends BaseModel { 'User that is the owner. This user will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -223,7 +223,7 @@ export default class IncidentOwnerUser extends BaseModel { 'Relation to Incident Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -291,7 +291,7 @@ export default class IncidentOwnerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -350,7 +350,7 @@ export default class IncidentOwnerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentPublicNote.ts b/Model/Models/IncidentPublicNote.ts index 880fd8b87f..4a5adc8d8c 100644 --- a/Model/Models/IncidentPublicNote.ts +++ b/Model/Models/IncidentPublicNote.ts @@ -90,7 +90,7 @@ export default class IncidentPublicNote extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -157,7 +157,7 @@ export default class IncidentPublicNote extends BaseModel { description: 'Relation to Incident in which this resource belongs', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -223,7 +223,7 @@ export default class IncidentPublicNote extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -277,7 +277,7 @@ export default class IncidentPublicNote extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentSeverity.ts b/Model/Models/IncidentSeverity.ts index 2f58c457c2..035e6f3ec9 100644 --- a/Model/Models/IncidentSeverity.ts +++ b/Model/Models/IncidentSeverity.ts @@ -101,7 +101,7 @@ export default class IncidentSeverity extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -261,7 +261,7 @@ export default class IncidentSeverity extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -320,7 +320,7 @@ export default class IncidentSeverity extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentState.ts b/Model/Models/IncidentState.ts index 79b2d3ca99..457108c124 100644 --- a/Model/Models/IncidentState.ts +++ b/Model/Models/IncidentState.ts @@ -101,7 +101,7 @@ export default class IncidentState extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -261,7 +261,7 @@ export default class IncidentState extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -320,7 +320,7 @@ export default class IncidentState extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentStateTimeline.ts b/Model/Models/IncidentStateTimeline.ts index 71b8fc32a4..652e619277 100644 --- a/Model/Models/IncidentStateTimeline.ts +++ b/Model/Models/IncidentStateTimeline.ts @@ -93,7 +93,7 @@ export default class IncidentStateTimeline extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -160,7 +160,7 @@ export default class IncidentStateTimeline extends BaseModel { description: 'Relation to Incident in which this resource belongs', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -226,7 +226,7 @@ export default class IncidentStateTimeline extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -280,7 +280,7 @@ export default class IncidentStateTimeline extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -341,7 +341,7 @@ export default class IncidentStateTimeline extends BaseModel { 'Incident State Relation. Which incident state does this incident change to?', }) @ManyToOne( - (_type: string) => { + () => { return IncidentState; }, { diff --git a/Model/Models/IncidentTemplate.ts b/Model/Models/IncidentTemplate.ts index 354392d0fc..acd3887197 100644 --- a/Model/Models/IncidentTemplate.ts +++ b/Model/Models/IncidentTemplate.ts @@ -107,7 +107,7 @@ export default class IncidentTemplate extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -342,7 +342,7 @@ export default class IncidentTemplate extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -396,7 +396,7 @@ export default class IncidentTemplate extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -596,7 +596,7 @@ export default class IncidentTemplate extends BaseModel { 'How severe is this incident. Is it critical? or a minor incident?. This is related to Incident Severity.', }) @ManyToOne( - (_type: string) => { + () => { return IncidentSeverity; }, { @@ -666,7 +666,7 @@ export default class IncidentTemplate extends BaseModel { 'Relation to Monitor Status Object. All monitors connected to this incident will be changed to this status when the incident is created.', }) @ManyToOne( - (_type: string) => { + () => { return MonitorStatus; }, { diff --git a/Model/Models/IncidentTemplateOwnerTeam.ts b/Model/Models/IncidentTemplateOwnerTeam.ts index c58f34e028..451ff63797 100644 --- a/Model/Models/IncidentTemplateOwnerTeam.ts +++ b/Model/Models/IncidentTemplateOwnerTeam.ts @@ -89,7 +89,7 @@ export default class IncidentTemplateOwnerTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -157,7 +157,7 @@ export default class IncidentTemplateOwnerTeam extends BaseModel { 'Team that is the owner. All users in this team will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -224,7 +224,7 @@ export default class IncidentTemplateOwnerTeam extends BaseModel { 'Relation to IncidentTemplate Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return IncidentTemplate; }, { @@ -292,7 +292,7 @@ export default class IncidentTemplateOwnerTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -351,7 +351,7 @@ export default class IncidentTemplateOwnerTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/IncidentTemplateOwnerUser.ts b/Model/Models/IncidentTemplateOwnerUser.ts index 744270c345..bbc083349c 100644 --- a/Model/Models/IncidentTemplateOwnerUser.ts +++ b/Model/Models/IncidentTemplateOwnerUser.ts @@ -90,7 +90,7 @@ export default class IncidentTemplateOwnerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -160,7 +160,7 @@ export default class IncidentTemplateOwnerUser extends BaseModel { 'User that is the owner. This user will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -229,7 +229,7 @@ export default class IncidentTemplateOwnerUser extends BaseModel { 'Relation to Incident Template Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return IncidentTemplate; }, { @@ -299,7 +299,7 @@ export default class IncidentTemplateOwnerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -360,7 +360,7 @@ export default class IncidentTemplateOwnerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Label.ts b/Model/Models/Label.ts index ca4bbe5bee..a389d779ee 100644 --- a/Model/Models/Label.ts +++ b/Model/Models/Label.ts @@ -97,7 +97,7 @@ export default class Label extends AccessControlModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -251,7 +251,7 @@ export default class Label extends AccessControlModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -309,7 +309,7 @@ export default class Label extends AccessControlModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Monitor.ts b/Model/Models/Monitor.ts index da6512fdd3..16b4ed679a 100644 --- a/Model/Models/Monitor.ts +++ b/Model/Models/Monitor.ts @@ -108,7 +108,7 @@ export default class Monitor extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -275,7 +275,7 @@ export default class Monitor extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -329,7 +329,7 @@ export default class Monitor extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -464,7 +464,7 @@ export default class Monitor extends BaseModel { description: 'Whats the current status of this monitor?', }) @ManyToOne( - (_type: string) => { + () => { return MonitorStatus; }, { diff --git a/Model/Models/MonitorCustomField.ts b/Model/Models/MonitorCustomField.ts index f21913694b..876748e565 100644 --- a/Model/Models/MonitorCustomField.ts +++ b/Model/Models/MonitorCustomField.ts @@ -87,7 +87,7 @@ export default class MonitorCustomField extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -245,7 +245,7 @@ export default class MonitorCustomField extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -303,7 +303,7 @@ export default class MonitorCustomField extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorGroup.ts b/Model/Models/MonitorGroup.ts index c9b4e5e1ad..84dfaaa6d0 100644 --- a/Model/Models/MonitorGroup.ts +++ b/Model/Models/MonitorGroup.ts @@ -110,7 +110,7 @@ export default class MonitorGroup extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -277,7 +277,7 @@ export default class MonitorGroup extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -331,7 +331,7 @@ export default class MonitorGroup extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorGroupOwnerTeam.ts b/Model/Models/MonitorGroupOwnerTeam.ts index f92f4898b5..c8b02eb7a0 100644 --- a/Model/Models/MonitorGroupOwnerTeam.ts +++ b/Model/Models/MonitorGroupOwnerTeam.ts @@ -97,7 +97,7 @@ export default class MonitorGroupOwnerTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -165,7 +165,7 @@ export default class MonitorGroupOwnerTeam extends BaseModel { 'Team that is the owner. All users in this team will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -232,7 +232,7 @@ export default class MonitorGroupOwnerTeam extends BaseModel { 'Relation to MonitorGroup Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return MonitorGroup; }, { @@ -300,7 +300,7 @@ export default class MonitorGroupOwnerTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -359,7 +359,7 @@ export default class MonitorGroupOwnerTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorGroupOwnerUser.ts b/Model/Models/MonitorGroupOwnerUser.ts index fd29781084..813625c3ea 100644 --- a/Model/Models/MonitorGroupOwnerUser.ts +++ b/Model/Models/MonitorGroupOwnerUser.ts @@ -96,7 +96,7 @@ export default class MonitorGroupOwnerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -164,7 +164,7 @@ export default class MonitorGroupOwnerUser extends BaseModel { 'User that is the owner. This user will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -231,7 +231,7 @@ export default class MonitorGroupOwnerUser extends BaseModel { 'Relation to MonitorGroup Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return MonitorGroup; }, { @@ -299,7 +299,7 @@ export default class MonitorGroupOwnerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -358,7 +358,7 @@ export default class MonitorGroupOwnerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorGroupResource.ts b/Model/Models/MonitorGroupResource.ts index cf08024d66..75e4838902 100644 --- a/Model/Models/MonitorGroupResource.ts +++ b/Model/Models/MonitorGroupResource.ts @@ -91,7 +91,7 @@ export default class MonitorGroupResource extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -159,7 +159,7 @@ export default class MonitorGroupResource extends BaseModel { 'Relation to Monitor Group Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return MonitorGroup; }, { @@ -231,7 +231,7 @@ export default class MonitorGroupResource extends BaseModel { 'Relation to Monitor Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Monitor; }, { @@ -303,7 +303,7 @@ export default class MonitorGroupResource extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -357,7 +357,7 @@ export default class MonitorGroupResource extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorOwnerTeam.ts b/Model/Models/MonitorOwnerTeam.ts index 3c7e242260..472b2d4746 100644 --- a/Model/Models/MonitorOwnerTeam.ts +++ b/Model/Models/MonitorOwnerTeam.ts @@ -97,7 +97,7 @@ export default class MonitorOwnerTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -165,7 +165,7 @@ export default class MonitorOwnerTeam extends BaseModel { 'Team that is the owner. All users in this team will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -232,7 +232,7 @@ export default class MonitorOwnerTeam extends BaseModel { 'Relation to Monitor Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Monitor; }, { @@ -300,7 +300,7 @@ export default class MonitorOwnerTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -359,7 +359,7 @@ export default class MonitorOwnerTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorOwnerUser.ts b/Model/Models/MonitorOwnerUser.ts index d47d6e3a28..da406d3cc2 100644 --- a/Model/Models/MonitorOwnerUser.ts +++ b/Model/Models/MonitorOwnerUser.ts @@ -96,7 +96,7 @@ export default class MonitorOwnerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -164,7 +164,7 @@ export default class MonitorOwnerUser extends BaseModel { 'User that is the owner. This user will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -231,7 +231,7 @@ export default class MonitorOwnerUser extends BaseModel { 'Relation to Monitor Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Monitor; }, { @@ -299,7 +299,7 @@ export default class MonitorOwnerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -358,7 +358,7 @@ export default class MonitorOwnerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorProbe.ts b/Model/Models/MonitorProbe.ts index 56dac9019d..6137edf27d 100644 --- a/Model/Models/MonitorProbe.ts +++ b/Model/Models/MonitorProbe.ts @@ -90,7 +90,7 @@ export default class MonitorProbe extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -155,7 +155,7 @@ export default class MonitorProbe extends BaseModel { description: 'Relation to Probe Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Probe; }, { @@ -220,7 +220,7 @@ export default class MonitorProbe extends BaseModel { 'Relation to Monitor Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Monitor; }, { @@ -333,7 +333,7 @@ export default class MonitorProbe extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -391,7 +391,7 @@ export default class MonitorProbe extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorSecret.ts b/Model/Models/MonitorSecret.ts index 0b89bf8a21..07bde274be 100644 --- a/Model/Models/MonitorSecret.ts +++ b/Model/Models/MonitorSecret.ts @@ -103,7 +103,7 @@ export default class MonitorSecret extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -308,7 +308,7 @@ export default class MonitorSecret extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -366,7 +366,7 @@ export default class MonitorSecret extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorStatus.ts b/Model/Models/MonitorStatus.ts index 4f1b335802..ffb5c0a99b 100644 --- a/Model/Models/MonitorStatus.ts +++ b/Model/Models/MonitorStatus.ts @@ -101,7 +101,7 @@ export default class MonitorStatus extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -261,7 +261,7 @@ export default class MonitorStatus extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -320,7 +320,7 @@ export default class MonitorStatus extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/MonitorStatusTimeline.ts b/Model/Models/MonitorStatusTimeline.ts index 643e6c53eb..7e56100c08 100644 --- a/Model/Models/MonitorStatusTimeline.ts +++ b/Model/Models/MonitorStatusTimeline.ts @@ -95,7 +95,7 @@ export default class MonitorStatusTimeline extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -163,7 +163,7 @@ export default class MonitorStatusTimeline extends BaseModel { 'Relation to Monitor Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Monitor; }, { @@ -230,7 +230,7 @@ export default class MonitorStatusTimeline extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -284,7 +284,7 @@ export default class MonitorStatusTimeline extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -345,7 +345,7 @@ export default class MonitorStatusTimeline extends BaseModel { 'Relation to Monitor Status Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return MonitorStatus; }, { diff --git a/Model/Models/OnCallDutyPolicy.ts b/Model/Models/OnCallDutyPolicy.ts index 1022d5ec12..c016995942 100644 --- a/Model/Models/OnCallDutyPolicy.ts +++ b/Model/Models/OnCallDutyPolicy.ts @@ -96,7 +96,7 @@ export default class OnCallDutyPolicy extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -310,7 +310,7 @@ export default class OnCallDutyPolicy extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -364,7 +364,7 @@ export default class OnCallDutyPolicy extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyCustomField.ts b/Model/Models/OnCallDutyPolicyCustomField.ts index 47c6c458a3..89be1e09b9 100644 --- a/Model/Models/OnCallDutyPolicyCustomField.ts +++ b/Model/Models/OnCallDutyPolicyCustomField.ts @@ -87,7 +87,7 @@ export default class OnCallDutyPolicyCustomField extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -245,7 +245,7 @@ export default class OnCallDutyPolicyCustomField extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -303,7 +303,7 @@ export default class OnCallDutyPolicyCustomField extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyEscalationRule.ts b/Model/Models/OnCallDutyPolicyEscalationRule.ts index 1b1081eb50..cc08c2d0b6 100644 --- a/Model/Models/OnCallDutyPolicyEscalationRule.ts +++ b/Model/Models/OnCallDutyPolicyEscalationRule.ts @@ -83,7 +83,7 @@ export default class OnCallDutyPolicyEscalationRule extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -151,7 +151,7 @@ export default class OnCallDutyPolicyEscalationRule extends BaseModel { 'Relation to On-Call Policy where this escalation rule belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -287,7 +287,7 @@ export default class OnCallDutyPolicyEscalationRule extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -341,7 +341,7 @@ export default class OnCallDutyPolicyEscalationRule extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyEscalationRuleSchedule.ts b/Model/Models/OnCallDutyPolicyEscalationRuleSchedule.ts index 613e7a1e95..a605696aae 100644 --- a/Model/Models/OnCallDutyPolicyEscalationRuleSchedule.ts +++ b/Model/Models/OnCallDutyPolicyEscalationRuleSchedule.ts @@ -84,7 +84,7 @@ export default class OnCallDutyPolicyEscalationRuleSchedule extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -152,7 +152,7 @@ export default class OnCallDutyPolicyEscalationRuleSchedule extends BaseModel { 'Relation to On-Call Policy where this escalation rule belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -220,7 +220,7 @@ export default class OnCallDutyPolicyEscalationRuleSchedule extends BaseModel { 'Relation to On Call Policy Schedule who is in this escalation rule.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicySchedule; }, { @@ -285,7 +285,7 @@ export default class OnCallDutyPolicyEscalationRuleSchedule extends BaseModel { 'Relation to On-Call Policy Escalation Rule where this user belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyEscalationRule; }, { @@ -353,7 +353,7 @@ export default class OnCallDutyPolicyEscalationRuleSchedule extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -407,7 +407,7 @@ export default class OnCallDutyPolicyEscalationRuleSchedule extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyEscalationRuleTeam.ts b/Model/Models/OnCallDutyPolicyEscalationRuleTeam.ts index 6fbb34e436..71a1dcf080 100644 --- a/Model/Models/OnCallDutyPolicyEscalationRuleTeam.ts +++ b/Model/Models/OnCallDutyPolicyEscalationRuleTeam.ts @@ -84,7 +84,7 @@ export default class OnCallDutyPolicyEscalationRuleTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -152,7 +152,7 @@ export default class OnCallDutyPolicyEscalationRuleTeam extends BaseModel { 'Relation to On-Call Policy where this escalation rule belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -219,7 +219,7 @@ export default class OnCallDutyPolicyEscalationRuleTeam extends BaseModel { description: 'Relation to Team who is in this escalation rule.', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -283,7 +283,7 @@ export default class OnCallDutyPolicyEscalationRuleTeam extends BaseModel { 'Relation to On-Call Policy Escalation Rule where this user belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyEscalationRule; }, { @@ -351,7 +351,7 @@ export default class OnCallDutyPolicyEscalationRuleTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -405,7 +405,7 @@ export default class OnCallDutyPolicyEscalationRuleTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyEscalationRuleUser.ts b/Model/Models/OnCallDutyPolicyEscalationRuleUser.ts index 6d352a76b9..1f2489cbcf 100644 --- a/Model/Models/OnCallDutyPolicyEscalationRuleUser.ts +++ b/Model/Models/OnCallDutyPolicyEscalationRuleUser.ts @@ -83,7 +83,7 @@ export default class OnCallDutyPolicyEscalationRuleUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -151,7 +151,7 @@ export default class OnCallDutyPolicyEscalationRuleUser extends BaseModel { 'Relation to On-Call Policy where this escalation rule belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -219,7 +219,7 @@ export default class OnCallDutyPolicyEscalationRuleUser extends BaseModel { 'Relation to On-Call Policy Escalation Rule where this user belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyEscalationRule; }, { @@ -286,7 +286,7 @@ export default class OnCallDutyPolicyEscalationRuleUser extends BaseModel { description: 'Relation to User who is in this escalation rule.', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -350,7 +350,7 @@ export default class OnCallDutyPolicyEscalationRuleUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -404,7 +404,7 @@ export default class OnCallDutyPolicyEscalationRuleUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyExecutionLog.ts b/Model/Models/OnCallDutyPolicyExecutionLog.ts index 23ae794f19..258f4e437c 100644 --- a/Model/Models/OnCallDutyPolicyExecutionLog.ts +++ b/Model/Models/OnCallDutyPolicyExecutionLog.ts @@ -75,7 +75,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -133,7 +133,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to On-Call Policy which belongs to this execution log event.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -191,7 +191,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to Incident which triggered this on-call duty policy.', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -318,7 +318,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -367,7 +367,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -423,7 +423,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to User who acknowledged this policy execution (if this policy was acknowledged by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -492,7 +492,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to Team who acknowledged this policy execution (if this policy was acknowledged by a Team)', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -586,7 +586,7 @@ export default class OnCallDutyPolicyExecutionLog extends BaseModel { 'Relation to On-Call Policy Last Executed Escalation Rule.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyEscalationRule; }, { diff --git a/Model/Models/OnCallDutyPolicyExecutionLogTimeline.ts b/Model/Models/OnCallDutyPolicyExecutionLogTimeline.ts index b6376c4051..a250df36b0 100644 --- a/Model/Models/OnCallDutyPolicyExecutionLogTimeline.ts +++ b/Model/Models/OnCallDutyPolicyExecutionLogTimeline.ts @@ -77,7 +77,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -135,7 +135,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Relation to on-call duty policy Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -193,7 +193,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Relation to Incident Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -251,7 +251,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Relation to On-Call Policy Execution Log where this timeline event belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyExecutionLog; }, { @@ -309,7 +309,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Relation to On-Call Policy Escalation Rule where this timeline event belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyEscalationRule; }, { @@ -366,7 +366,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { description: 'Relation to User who we sent alert to.', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -444,7 +444,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Which team did the user belong to when the alert was sent?', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -499,7 +499,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Which schedule did the user belong to when the alert was sent?', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicySchedule; }, { @@ -602,7 +602,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -651,7 +651,7 @@ export default class OnCallDutyPolicyExecutionLogTimeline extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicySchedule.ts b/Model/Models/OnCallDutyPolicySchedule.ts index 826e168506..9fa169c026 100644 --- a/Model/Models/OnCallDutyPolicySchedule.ts +++ b/Model/Models/OnCallDutyPolicySchedule.ts @@ -103,7 +103,7 @@ export default class OnCallDutyPolicySchedule extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -317,7 +317,7 @@ export default class OnCallDutyPolicySchedule extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -371,7 +371,7 @@ export default class OnCallDutyPolicySchedule extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyScheduleLayer.ts b/Model/Models/OnCallDutyPolicyScheduleLayer.ts index fbd3ee94d1..4fe0005d63 100644 --- a/Model/Models/OnCallDutyPolicyScheduleLayer.ts +++ b/Model/Models/OnCallDutyPolicyScheduleLayer.ts @@ -91,7 +91,7 @@ export default class OnCallDutyPolicyScheduleLayer extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -159,7 +159,7 @@ export default class OnCallDutyPolicyScheduleLayer extends BaseModel { 'Relation to On-Call Policy Schedule where this escalation rule belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicySchedule; }, { @@ -294,7 +294,7 @@ export default class OnCallDutyPolicyScheduleLayer extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -353,7 +353,7 @@ export default class OnCallDutyPolicyScheduleLayer extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/OnCallDutyPolicyScheduleLayerUser.ts b/Model/Models/OnCallDutyPolicyScheduleLayerUser.ts index 1e1330fcd1..931f4e388d 100644 --- a/Model/Models/OnCallDutyPolicyScheduleLayerUser.ts +++ b/Model/Models/OnCallDutyPolicyScheduleLayerUser.ts @@ -88,7 +88,7 @@ export default class OnCallDutyPolicyScheduleLayerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -156,7 +156,7 @@ export default class OnCallDutyPolicyScheduleLayerUser extends BaseModel { 'Relation to On-Call Policy Schedule where this escalation rule belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicySchedule; }, { @@ -224,7 +224,7 @@ export default class OnCallDutyPolicyScheduleLayerUser extends BaseModel { 'Relation to On-Call Policy Schedule Layer where this belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyScheduleLayer; }, { @@ -292,7 +292,7 @@ export default class OnCallDutyPolicyScheduleLayerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -351,7 +351,7 @@ export default class OnCallDutyPolicyScheduleLayerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -449,7 +449,7 @@ export default class OnCallDutyPolicyScheduleLayerUser extends BaseModel { description: 'User who belongs to this layer.', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Probe.ts b/Model/Models/Probe.ts index 83789e4516..476d707bac 100755 --- a/Model/Models/Probe.ts +++ b/Model/Models/Probe.ts @@ -235,7 +235,7 @@ export default class Probe extends BaseModel { description: 'Probe Icon', }) @ManyToOne( - (_type: string) => { + () => { return File; }, { @@ -297,7 +297,7 @@ export default class Probe extends BaseModel { modelType: Project, }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -340,7 +340,7 @@ export default class Probe extends BaseModel { }) @TableColumn({ type: TableColumnType.Entity, modelType: User }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -384,7 +384,7 @@ export default class Probe extends BaseModel { }) @TableColumn({ type: TableColumnType.Entity, modelType: User }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Project.ts b/Model/Models/Project.ts index 1c33ec53da..9cf68c4f67 100644 --- a/Model/Models/Project.ts +++ b/Model/Models/Project.ts @@ -331,7 +331,7 @@ export default class Model extends TenantModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -382,7 +382,7 @@ export default class Model extends TenantModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -1016,7 +1016,7 @@ export default class Model extends TenantModel { 'Relation to Reseller Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Reseller; }, { @@ -1071,7 +1071,7 @@ export default class Model extends TenantModel { 'Relation to ResellerPlan Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ResellerPlan; }, { diff --git a/Model/Models/ProjectCallSMSConfig.ts b/Model/Models/ProjectCallSMSConfig.ts index 4c72ba3aa6..36e2082922 100644 --- a/Model/Models/ProjectCallSMSConfig.ts +++ b/Model/Models/ProjectCallSMSConfig.ts @@ -87,7 +87,7 @@ export default class ProjectCallSMSConfig extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -239,7 +239,7 @@ export default class ProjectCallSMSConfig extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -297,7 +297,7 @@ export default class ProjectCallSMSConfig extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ProjectSmtpConfig.ts b/Model/Models/ProjectSmtpConfig.ts index f66d180a10..56e48b9fba 100755 --- a/Model/Models/ProjectSmtpConfig.ts +++ b/Model/Models/ProjectSmtpConfig.ts @@ -89,7 +89,7 @@ export default class ProjectSmtpConfig extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -241,7 +241,7 @@ export default class ProjectSmtpConfig extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -299,7 +299,7 @@ export default class ProjectSmtpConfig extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ProjectSso.ts b/Model/Models/ProjectSso.ts index aea981cb92..901e2aa457 100644 --- a/Model/Models/ProjectSso.ts +++ b/Model/Models/ProjectSso.ts @@ -100,7 +100,7 @@ export default class ProjectSSO extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -434,7 +434,7 @@ export default class ProjectSSO extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -494,7 +494,7 @@ export default class ProjectSSO extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/PromoCode.ts b/Model/Models/PromoCode.ts index 24c682edc3..1b245e171f 100644 --- a/Model/Models/PromoCode.ts +++ b/Model/Models/PromoCode.ts @@ -121,7 +121,7 @@ export default class PromoCode extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -179,7 +179,7 @@ export default class PromoCode extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -230,7 +230,7 @@ export default class PromoCode extends BaseModel { 'Relation to Reseller Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Reseller; }, { @@ -278,7 +278,7 @@ export default class PromoCode extends BaseModel { 'Relation to ResellerPlan Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ResellerPlan; }, { @@ -380,7 +380,7 @@ export default class PromoCode extends BaseModel { 'If promo code is used for a specific project, please specify here.', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { diff --git a/Model/Models/Reseller.ts b/Model/Models/Reseller.ts index 6878aeb953..70386f9367 100644 --- a/Model/Models/Reseller.ts +++ b/Model/Models/Reseller.ts @@ -143,7 +143,7 @@ export default class Reseller extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -187,7 +187,7 @@ export default class Reseller extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ResellerPlan.ts b/Model/Models/ResellerPlan.ts index 34eb853613..ba04dfc112 100644 --- a/Model/Models/ResellerPlan.ts +++ b/Model/Models/ResellerPlan.ts @@ -49,7 +49,7 @@ export default class ResellerPlan extends BaseModel { 'Relation to Reseller Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Reseller; }, { @@ -211,7 +211,7 @@ export default class ResellerPlan extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -255,7 +255,7 @@ export default class ResellerPlan extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenance.ts b/Model/Models/ScheduledMaintenance.ts index a4a034b766..12deb2e722 100644 --- a/Model/Models/ScheduledMaintenance.ts +++ b/Model/Models/ScheduledMaintenance.ts @@ -108,7 +108,7 @@ export default class ScheduledMaintenance extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -275,7 +275,7 @@ export default class ScheduledMaintenance extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -329,7 +329,7 @@ export default class ScheduledMaintenance extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -529,7 +529,7 @@ export default class ScheduledMaintenance extends BaseModel { 'Relation to Scheduled Maintenance State. The state the event currently is in.', }) @ManyToOne( - (_type: string) => { + () => { return ScheduledMaintenanceState; }, { @@ -600,7 +600,7 @@ export default class ScheduledMaintenance extends BaseModel { 'Relation to Monitor Status Object. All monitors connected to this event will be changed to this status when the event is ongoing.', }) @ManyToOne( - (_type: string) => { + () => { return MonitorStatus; }, { diff --git a/Model/Models/ScheduledMaintenanceCustomField.ts b/Model/Models/ScheduledMaintenanceCustomField.ts index f335e1233a..049558398b 100644 --- a/Model/Models/ScheduledMaintenanceCustomField.ts +++ b/Model/Models/ScheduledMaintenanceCustomField.ts @@ -87,7 +87,7 @@ export default class ScheduledMaintenanceCustomField extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -245,7 +245,7 @@ export default class ScheduledMaintenanceCustomField extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -303,7 +303,7 @@ export default class ScheduledMaintenanceCustomField extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenanceInternalNote.ts b/Model/Models/ScheduledMaintenanceInternalNote.ts index 030a295748..9076b9f712 100644 --- a/Model/Models/ScheduledMaintenanceInternalNote.ts +++ b/Model/Models/ScheduledMaintenanceInternalNote.ts @@ -89,7 +89,7 @@ export default class ScheduledMaintenanceInternalNote extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -157,7 +157,7 @@ export default class ScheduledMaintenanceInternalNote extends BaseModel { 'Relation to Scheduled Maintenance Event this resource belongs to', }) @ManyToOne( - (_type: string) => { + () => { return ScheduledMaintenance; }, { @@ -223,7 +223,7 @@ export default class ScheduledMaintenanceInternalNote extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -277,7 +277,7 @@ export default class ScheduledMaintenanceInternalNote extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenanceNoteTemplate.ts b/Model/Models/ScheduledMaintenanceNoteTemplate.ts index 69bb5d3f1d..7559e29996 100644 --- a/Model/Models/ScheduledMaintenanceNoteTemplate.ts +++ b/Model/Models/ScheduledMaintenanceNoteTemplate.ts @@ -89,7 +89,7 @@ export default class ScheduledMaintenanceNoteTemplate extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -259,7 +259,7 @@ export default class ScheduledMaintenanceNoteTemplate extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -313,7 +313,7 @@ export default class ScheduledMaintenanceNoteTemplate extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenanceOwnerTeam.ts b/Model/Models/ScheduledMaintenanceOwnerTeam.ts index dab925152a..1251a402e6 100644 --- a/Model/Models/ScheduledMaintenanceOwnerTeam.ts +++ b/Model/Models/ScheduledMaintenanceOwnerTeam.ts @@ -90,7 +90,7 @@ export default class ScheduledMaintenanceOwnerTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -158,7 +158,7 @@ export default class ScheduledMaintenanceOwnerTeam extends BaseModel { 'Team that is the owner. All users in this team will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -225,7 +225,7 @@ export default class ScheduledMaintenanceOwnerTeam extends BaseModel { 'Relation to ScheduledMaintenance Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ScheduledMaintenance; }, { @@ -293,7 +293,7 @@ export default class ScheduledMaintenanceOwnerTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -352,7 +352,7 @@ export default class ScheduledMaintenanceOwnerTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenanceOwnerUser.ts b/Model/Models/ScheduledMaintenanceOwnerUser.ts index cef1181159..d5b728a934 100644 --- a/Model/Models/ScheduledMaintenanceOwnerUser.ts +++ b/Model/Models/ScheduledMaintenanceOwnerUser.ts @@ -89,7 +89,7 @@ export default class ScheduledMaintenanceOwnerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -157,7 +157,7 @@ export default class ScheduledMaintenanceOwnerUser extends BaseModel { 'User that is the owner. This user will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -224,7 +224,7 @@ export default class ScheduledMaintenanceOwnerUser extends BaseModel { 'Relation to ScheduledMaintenance Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ScheduledMaintenance; }, { @@ -292,7 +292,7 @@ export default class ScheduledMaintenanceOwnerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -351,7 +351,7 @@ export default class ScheduledMaintenanceOwnerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenancePublicNote.ts b/Model/Models/ScheduledMaintenancePublicNote.ts index 0e11bc876e..3cecc59d75 100644 --- a/Model/Models/ScheduledMaintenancePublicNote.ts +++ b/Model/Models/ScheduledMaintenancePublicNote.ts @@ -90,7 +90,7 @@ export default class ScheduledMaintenancePublicNote extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -158,7 +158,7 @@ export default class ScheduledMaintenancePublicNote extends BaseModel { 'Relation to Scheduled Maintenance Event this resource belongs to', }) @ManyToOne( - (_type: string) => { + () => { return ScheduledMaintenance; }, { @@ -224,7 +224,7 @@ export default class ScheduledMaintenancePublicNote extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -278,7 +278,7 @@ export default class ScheduledMaintenancePublicNote extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenanceState.ts b/Model/Models/ScheduledMaintenanceState.ts index 8d334deac7..af1a471019 100644 --- a/Model/Models/ScheduledMaintenanceState.ts +++ b/Model/Models/ScheduledMaintenanceState.ts @@ -101,7 +101,7 @@ export default class ScheduledMaintenanceState extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -261,7 +261,7 @@ export default class ScheduledMaintenanceState extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -320,7 +320,7 @@ export default class ScheduledMaintenanceState extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ScheduledMaintenanceStateTimeline.ts b/Model/Models/ScheduledMaintenanceStateTimeline.ts index 55a708cb0a..a9492347e6 100644 --- a/Model/Models/ScheduledMaintenanceStateTimeline.ts +++ b/Model/Models/ScheduledMaintenanceStateTimeline.ts @@ -91,7 +91,7 @@ export default class ScheduledMaintenanceStateTimeline extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -159,7 +159,7 @@ export default class ScheduledMaintenanceStateTimeline extends BaseModel { 'Relation to Scheduled Maintenance Event this resource belongs to', }) @ManyToOne( - (_type: string) => { + () => { return ScheduledMaintenance; }, { @@ -225,7 +225,7 @@ export default class ScheduledMaintenanceStateTimeline extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -279,7 +279,7 @@ export default class ScheduledMaintenanceStateTimeline extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -340,7 +340,7 @@ export default class ScheduledMaintenanceStateTimeline extends BaseModel { 'Which state does this event belongs to?. Relation to Scheduled Maintenance State', }) @ManyToOne( - (_type: string) => { + () => { return ScheduledMaintenanceState; }, { diff --git a/Model/Models/ServiceCatalog.ts b/Model/Models/ServiceCatalog.ts index d80831658e..4812a5aa8f 100644 --- a/Model/Models/ServiceCatalog.ts +++ b/Model/Models/ServiceCatalog.ts @@ -115,7 +115,7 @@ export default class ServiceCatalog extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -280,7 +280,7 @@ export default class ServiceCatalog extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -341,7 +341,7 @@ export default class ServiceCatalog extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ServiceCatalogOwnerTeam.ts b/Model/Models/ServiceCatalogOwnerTeam.ts index 2f094cdc61..3e3f81dac4 100644 --- a/Model/Models/ServiceCatalogOwnerTeam.ts +++ b/Model/Models/ServiceCatalogOwnerTeam.ts @@ -97,7 +97,7 @@ export default class ServiceCatalogOwnerTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -165,7 +165,7 @@ export default class ServiceCatalogOwnerTeam extends BaseModel { 'Team that is the owner. All users in this team will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -232,7 +232,7 @@ export default class ServiceCatalogOwnerTeam extends BaseModel { 'Relation to Service Catalog Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ServiceCatalog; }, { @@ -300,7 +300,7 @@ export default class ServiceCatalogOwnerTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -359,7 +359,7 @@ export default class ServiceCatalogOwnerTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ServiceCatalogOwnerUser.ts b/Model/Models/ServiceCatalogOwnerUser.ts index 18793e116f..594b821916 100644 --- a/Model/Models/ServiceCatalogOwnerUser.ts +++ b/Model/Models/ServiceCatalogOwnerUser.ts @@ -96,7 +96,7 @@ export default class ServiceCatalogOwnerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -164,7 +164,7 @@ export default class ServiceCatalogOwnerUser extends BaseModel { 'User that is the owner. This user will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -231,7 +231,7 @@ export default class ServiceCatalogOwnerUser extends BaseModel { 'Relation to Service Catalog Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ServiceCatalog; }, { @@ -299,7 +299,7 @@ export default class ServiceCatalogOwnerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -358,7 +358,7 @@ export default class ServiceCatalogOwnerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/ServiceRepository.ts b/Model/Models/ServiceRepository.ts index 10c3728f0a..c54518a722 100644 --- a/Model/Models/ServiceRepository.ts +++ b/Model/Models/ServiceRepository.ts @@ -103,7 +103,7 @@ export default class ServiceRepository extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -285,7 +285,7 @@ export default class ServiceRepository extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -346,7 +346,7 @@ export default class ServiceRepository extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -414,7 +414,7 @@ export default class ServiceRepository extends BaseModel { 'Relation to CodeRepository Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return CodeRepository; }, { @@ -494,7 +494,7 @@ export default class ServiceRepository extends BaseModel { 'Relation to Service Catalog Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return ServiceCatalog; }, { diff --git a/Model/Models/ShortLink.ts b/Model/Models/ShortLink.ts index 91b38c935a..dec582966a 100644 --- a/Model/Models/ShortLink.ts +++ b/Model/Models/ShortLink.ts @@ -85,7 +85,7 @@ export default class ShortLink extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/SmsLog.ts b/Model/Models/SmsLog.ts index 3d12063ae7..f8fa23a13d 100644 --- a/Model/Models/SmsLog.ts +++ b/Model/Models/SmsLog.ts @@ -71,7 +71,7 @@ export default class SmsLog extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -271,7 +271,7 @@ export default class SmsLog extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPage.ts b/Model/Models/StatusPage.ts index f77fcdea63..6d3a991e14 100755 --- a/Model/Models/StatusPage.ts +++ b/Model/Models/StatusPage.ts @@ -110,7 +110,7 @@ export default class StatusPage extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -344,7 +344,7 @@ export default class StatusPage extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -445,7 +445,7 @@ export default class StatusPage extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -507,7 +507,7 @@ export default class StatusPage extends BaseModel { description: 'Status Page Favicon', }) @ManyToOne( - (_type: string) => { + () => { return File; }, { @@ -580,7 +580,7 @@ export default class StatusPage extends BaseModel { description: 'Status Page Logo', }) @ManyToOne( - (_type: string) => { + () => { return File; }, { @@ -653,7 +653,7 @@ export default class StatusPage extends BaseModel { description: 'Status Page Cover Image', }) @ManyToOne( - (_type: string) => { + () => { return File; }, { @@ -1227,7 +1227,7 @@ export default class StatusPage extends BaseModel { 'Relation to SMTP Config Resource which is used to send email to subscribers.', }) @ManyToOne( - (_type: string) => { + () => { return ProjectSmtpConfig; }, { @@ -1305,7 +1305,7 @@ export default class StatusPage extends BaseModel { 'Relation to Call/SMS Config Resource which is used to send SMS to subscribers.', }) @ManyToOne( - (_type: string) => { + () => { return ProjectCallSMSConfig; }, { diff --git a/Model/Models/StatusPageAnnouncement.ts b/Model/Models/StatusPageAnnouncement.ts index e241d462c5..4b3cff8555 100644 --- a/Model/Models/StatusPageAnnouncement.ts +++ b/Model/Models/StatusPageAnnouncement.ts @@ -109,7 +109,7 @@ export default class StatusPageAnnouncement extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -347,7 +347,7 @@ export default class StatusPageAnnouncement extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -406,7 +406,7 @@ export default class StatusPageAnnouncement extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageCustomField.ts b/Model/Models/StatusPageCustomField.ts index 90efd42b5d..003c0a10ef 100644 --- a/Model/Models/StatusPageCustomField.ts +++ b/Model/Models/StatusPageCustomField.ts @@ -87,7 +87,7 @@ export default class StatusPageCustomField extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -245,7 +245,7 @@ export default class StatusPageCustomField extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -303,7 +303,7 @@ export default class StatusPageCustomField extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageDomain.ts b/Model/Models/StatusPageDomain.ts index eff6d2dd34..865849c29b 100644 --- a/Model/Models/StatusPageDomain.ts +++ b/Model/Models/StatusPageDomain.ts @@ -93,7 +93,7 @@ export default class StatusPageDomain extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -158,7 +158,7 @@ export default class StatusPageDomain extends BaseModel { modelType: Domain, }) @ManyToOne( - (_type: string) => { + () => { return Domain; }, { @@ -219,7 +219,7 @@ export default class StatusPageDomain extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -349,7 +349,7 @@ export default class StatusPageDomain extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -408,7 +408,7 @@ export default class StatusPageDomain extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageFooterLink.ts b/Model/Models/StatusPageFooterLink.ts index b09d0e17cf..b22d48a7f7 100644 --- a/Model/Models/StatusPageFooterLink.ts +++ b/Model/Models/StatusPageFooterLink.ts @@ -98,7 +98,7 @@ export default class StatusPageFooterLink extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -166,7 +166,7 @@ export default class StatusPageFooterLink extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -300,7 +300,7 @@ export default class StatusPageFooterLink extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -359,7 +359,7 @@ export default class StatusPageFooterLink extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageGroup.ts b/Model/Models/StatusPageGroup.ts index d077bd150a..32f67933b9 100644 --- a/Model/Models/StatusPageGroup.ts +++ b/Model/Models/StatusPageGroup.ts @@ -103,7 +103,7 @@ export default class StatusPageGroup extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -171,7 +171,7 @@ export default class StatusPageGroup extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -330,7 +330,7 @@ export default class StatusPageGroup extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -448,7 +448,7 @@ export default class StatusPageGroup extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageHeaderLink.ts b/Model/Models/StatusPageHeaderLink.ts index eba87fcc62..db17c49a9e 100644 --- a/Model/Models/StatusPageHeaderLink.ts +++ b/Model/Models/StatusPageHeaderLink.ts @@ -98,7 +98,7 @@ export default class StatusPageHeaderLink extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -166,7 +166,7 @@ export default class StatusPageHeaderLink extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -300,7 +300,7 @@ export default class StatusPageHeaderLink extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -359,7 +359,7 @@ export default class StatusPageHeaderLink extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageHistoryChartBarColorRule.ts b/Model/Models/StatusPageHistoryChartBarColorRule.ts index b162fe44ca..51a36606b2 100644 --- a/Model/Models/StatusPageHistoryChartBarColorRule.ts +++ b/Model/Models/StatusPageHistoryChartBarColorRule.ts @@ -94,7 +94,7 @@ export default class StatusPageHistoryChartBarColorRule extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -162,7 +162,7 @@ export default class StatusPageHistoryChartBarColorRule extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -300,7 +300,7 @@ export default class StatusPageHistoryChartBarColorRule extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -385,7 +385,7 @@ export default class StatusPageHistoryChartBarColorRule extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageOwnerTeam.ts b/Model/Models/StatusPageOwnerTeam.ts index 4821e2dd6f..a33c69027d 100644 --- a/Model/Models/StatusPageOwnerTeam.ts +++ b/Model/Models/StatusPageOwnerTeam.ts @@ -97,7 +97,7 @@ export default class StatusPageOwnerTeam extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -165,7 +165,7 @@ export default class StatusPageOwnerTeam extends BaseModel { 'Team that is the owner. All users in this team will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -232,7 +232,7 @@ export default class StatusPageOwnerTeam extends BaseModel { 'Relation to StatusPage Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -300,7 +300,7 @@ export default class StatusPageOwnerTeam extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -359,7 +359,7 @@ export default class StatusPageOwnerTeam extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageOwnerUser.ts b/Model/Models/StatusPageOwnerUser.ts index 5cccc5ef53..1abb4a7f49 100644 --- a/Model/Models/StatusPageOwnerUser.ts +++ b/Model/Models/StatusPageOwnerUser.ts @@ -96,7 +96,7 @@ export default class StatusPageOwnerUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -164,7 +164,7 @@ export default class StatusPageOwnerUser extends BaseModel { 'User that is the owner. This user will receive notifications. ', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -231,7 +231,7 @@ export default class StatusPageOwnerUser extends BaseModel { 'Relation to StatusPage Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -299,7 +299,7 @@ export default class StatusPageOwnerUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -358,7 +358,7 @@ export default class StatusPageOwnerUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPagePrivateUser.ts b/Model/Models/StatusPagePrivateUser.ts index 9ae2acdeab..90b042de57 100644 --- a/Model/Models/StatusPagePrivateUser.ts +++ b/Model/Models/StatusPagePrivateUser.ts @@ -103,7 +103,7 @@ export default class StatusPagePrivateUser extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -171,7 +171,7 @@ export default class StatusPagePrivateUser extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -347,7 +347,7 @@ export default class StatusPagePrivateUser extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -406,7 +406,7 @@ export default class StatusPagePrivateUser extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageResource.ts b/Model/Models/StatusPageResource.ts index bf5e5829b0..fe0122fc44 100644 --- a/Model/Models/StatusPageResource.ts +++ b/Model/Models/StatusPageResource.ts @@ -103,7 +103,7 @@ export default class StatusPageResource extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -171,7 +171,7 @@ export default class StatusPageResource extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -243,7 +243,7 @@ export default class StatusPageResource extends BaseModel { 'Relation to Monitor Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Monitor; }, { @@ -320,7 +320,7 @@ export default class StatusPageResource extends BaseModel { 'Relation to Monitor Group Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return MonitorGroup; }, { @@ -397,7 +397,7 @@ export default class StatusPageResource extends BaseModel { 'Does this monitor belong to a status page group? If so - which one is it?', }) @ManyToOne( - (_type: string) => { + () => { return StatusPageGroup; }, { @@ -697,7 +697,7 @@ export default class StatusPageResource extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -782,7 +782,7 @@ export default class StatusPageResource extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageSso.ts b/Model/Models/StatusPageSso.ts index 4c41ebd32c..d53973cea3 100644 --- a/Model/Models/StatusPageSso.ts +++ b/Model/Models/StatusPageSso.ts @@ -92,7 +92,7 @@ export default class StatusPageSSO extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -160,7 +160,7 @@ export default class StatusPageSSO extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -441,7 +441,7 @@ export default class StatusPageSSO extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -499,7 +499,7 @@ export default class StatusPageSSO extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/StatusPageSubscriber.ts b/Model/Models/StatusPageSubscriber.ts index 66cba14ae8..63fdf4267a 100644 --- a/Model/Models/StatusPageSubscriber.ts +++ b/Model/Models/StatusPageSubscriber.ts @@ -106,7 +106,7 @@ export default class StatusPageSubscriber extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -174,7 +174,7 @@ export default class StatusPageSubscriber extends BaseModel { 'Relation to Status Page Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return StatusPage; }, { @@ -345,7 +345,7 @@ export default class StatusPageSubscriber extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -404,7 +404,7 @@ export default class StatusPageSubscriber extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Team.ts b/Model/Models/Team.ts index 289bf306bf..6b74c195dd 100644 --- a/Model/Models/Team.ts +++ b/Model/Models/Team.ts @@ -98,7 +98,7 @@ export default class Team extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -258,7 +258,7 @@ export default class Team extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -311,7 +311,7 @@ export default class Team extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/TeamMember.ts b/Model/Models/TeamMember.ts index bcd1e86e09..f3e33048bc 100644 --- a/Model/Models/TeamMember.ts +++ b/Model/Models/TeamMember.ts @@ -97,7 +97,7 @@ export default class TeamMember extends BaseModel { description: 'Team this permission belongs in.', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -164,7 +164,7 @@ export default class TeamMember extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -232,7 +232,7 @@ export default class TeamMember extends BaseModel { description: 'User who belongs to this team.', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -288,7 +288,7 @@ export default class TeamMember extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -332,7 +332,7 @@ export default class TeamMember extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/TeamPermission.ts b/Model/Models/TeamPermission.ts index 57be133460..abb7cb4eee 100644 --- a/Model/Models/TeamPermission.ts +++ b/Model/Models/TeamPermission.ts @@ -107,7 +107,7 @@ export default class TeamPermission extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -174,7 +174,7 @@ export default class TeamPermission extends BaseModel { description: 'Team this permission belongs in.', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -238,7 +238,7 @@ export default class TeamPermission extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -300,7 +300,7 @@ export default class TeamPermission extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/TelemetryService.ts b/Model/Models/TelemetryService.ts index 33ee3588c4..b0b8aa29e7 100644 --- a/Model/Models/TelemetryService.ts +++ b/Model/Models/TelemetryService.ts @@ -106,7 +106,7 @@ export default class TelemetryService extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -271,7 +271,7 @@ export default class TelemetryService extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -332,7 +332,7 @@ export default class TelemetryService extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/TelemetryUsageBilling.ts b/Model/Models/TelemetryUsageBilling.ts index 3bc57305ee..19aa6f762d 100644 --- a/Model/Models/TelemetryUsageBilling.ts +++ b/Model/Models/TelemetryUsageBilling.ts @@ -63,7 +63,7 @@ export default class TelemetryUsageBilling extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -254,7 +254,7 @@ export default class TelemetryUsageBilling extends BaseModel { 'Relation to Telemetry Service Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return TelemetryService; }, { @@ -328,7 +328,7 @@ export default class TelemetryUsageBilling extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -380,7 +380,7 @@ export default class TelemetryUsageBilling extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/User.ts b/Model/Models/User.ts index 609a0c9cf7..f60fd390c9 100644 --- a/Model/Models/User.ts +++ b/Model/Models/User.ts @@ -245,7 +245,7 @@ class User extends UserModel { modelType: File, }) @ManyToOne( - (_type: string) => { + () => { return File; }, { @@ -670,7 +670,7 @@ class User extends UserModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/UserCall.ts b/Model/Models/UserCall.ts index 32e62727b0..875f2de3cf 100644 --- a/Model/Models/UserCall.ts +++ b/Model/Models/UserCall.ts @@ -55,7 +55,7 @@ class UserCall extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -123,7 +123,7 @@ class UserCall extends BaseModel { description: 'Relation to User who this email belongs to', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -168,7 +168,7 @@ class UserCall extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -212,7 +212,7 @@ class UserCall extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/UserEmail.ts b/Model/Models/UserEmail.ts index 24e54780c1..60a9260a5a 100644 --- a/Model/Models/UserEmail.ts +++ b/Model/Models/UserEmail.ts @@ -55,7 +55,7 @@ class UserEmail extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -123,7 +123,7 @@ class UserEmail extends BaseModel { description: 'Relation to User who this email belongs to', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -168,7 +168,7 @@ class UserEmail extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -212,7 +212,7 @@ class UserEmail extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/UserNotificationRule.ts b/Model/Models/UserNotificationRule.ts index 553da71782..c0ca941617 100644 --- a/Model/Models/UserNotificationRule.ts +++ b/Model/Models/UserNotificationRule.ts @@ -58,7 +58,7 @@ class UserNotificationRule extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -125,7 +125,7 @@ class UserNotificationRule extends BaseModel { description: 'Relation to User who this email belongs to', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -170,7 +170,7 @@ class UserNotificationRule extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -214,7 +214,7 @@ class UserNotificationRule extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -260,7 +260,7 @@ class UserNotificationRule extends BaseModel { 'Relation to User Call Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserCall; }, { @@ -307,7 +307,7 @@ class UserNotificationRule extends BaseModel { 'Relation to User SMS Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserSMS; }, { @@ -354,7 +354,7 @@ class UserNotificationRule extends BaseModel { 'Relation to User Email Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserEmail; }, { @@ -423,7 +423,7 @@ class UserNotificationRule extends BaseModel { 'Relation to Incident Severity Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return IncidentSeverity; }, { diff --git a/Model/Models/UserNotificationSetting.ts b/Model/Models/UserNotificationSetting.ts index c3583bd93f..55bcd9ddcd 100644 --- a/Model/Models/UserNotificationSetting.ts +++ b/Model/Models/UserNotificationSetting.ts @@ -54,7 +54,7 @@ class UserNotificationSetting extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -121,7 +121,7 @@ class UserNotificationSetting extends BaseModel { description: 'Relation to User who this email belongs to', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -166,7 +166,7 @@ class UserNotificationSetting extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -210,7 +210,7 @@ class UserNotificationSetting extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/UserOnCallLog.ts b/Model/Models/UserOnCallLog.ts index 4975c0ffbf..2da4628cc2 100644 --- a/Model/Models/UserOnCallLog.ts +++ b/Model/Models/UserOnCallLog.ts @@ -68,7 +68,7 @@ export default class UserOnCallLog extends BaseModel { description: 'Relation to User who this log belongs to', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -112,7 +112,7 @@ export default class UserOnCallLog extends BaseModel { 'Which team did the user belong to when the alert was sent?', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -157,7 +157,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -205,7 +205,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to On-Call Policy which belongs to this execution log event.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -253,7 +253,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to On-Call Policy Execution Log which belongs to this execution log event.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyExecutionLog; }, { @@ -301,7 +301,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to On-Call Policy Escalation Rule which belongs to this execution log event.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyEscalationRule; }, { @@ -349,7 +349,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to Incident which triggered this on-call duty policy.', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -432,7 +432,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to On-Call Policy Execution Log Timeline where this timeline event belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyExecutionLogTimeline; }, { @@ -500,7 +500,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -544,7 +544,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -589,7 +589,7 @@ export default class UserOnCallLog extends BaseModel { 'Relation to User who acknowledged this policy execution (if this policy was acknowledged by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -669,7 +669,7 @@ export default class UserOnCallLog extends BaseModel { 'Which schedule did the user belong to when the alert was sent?', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicySchedule; }, { diff --git a/Model/Models/UserOnCallLogTimeline.ts b/Model/Models/UserOnCallLogTimeline.ts index efd3c7d129..7a2fa9348e 100644 --- a/Model/Models/UserOnCallLogTimeline.ts +++ b/Model/Models/UserOnCallLogTimeline.ts @@ -71,7 +71,7 @@ export default class UserOnCallLogTimeline extends BaseModel { description: 'Relation to User who this log belongs to', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -115,7 +115,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -163,7 +163,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to User Notification Log Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserOnCallLog; }, { @@ -211,7 +211,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to User Notification Rule Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserNotificationRule; }, { @@ -259,7 +259,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to on-call duty policy Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicy; }, { @@ -307,7 +307,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to Incident Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Incident; }, { @@ -355,7 +355,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to On-Call Policy Execution Log where this timeline event belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyExecutionLog; }, { @@ -403,7 +403,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to On-Call Policy Execution Log Timeline where this timeline event belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyExecutionLogTimeline; }, { @@ -452,7 +452,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to On-Call Policy Escalation Rule where this timeline event belongs.', }) @ManyToOne( - (_type: string) => { + () => { return OnCallDutyPolicyEscalationRule; }, { @@ -519,7 +519,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Which team did the user belong to when the alert was sent?', }) @ManyToOne( - (_type: string) => { + () => { return Team; }, { @@ -602,7 +602,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -646,7 +646,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -708,7 +708,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to User Call Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserCall; }, { @@ -755,7 +755,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to User SMS Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserSMS; }, { @@ -802,7 +802,7 @@ export default class UserOnCallLogTimeline extends BaseModel { 'Relation to User Email Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return UserEmail; }, { diff --git a/Model/Models/UserSMS.ts b/Model/Models/UserSMS.ts index 6223b2cdd7..6d6cd51c06 100644 --- a/Model/Models/UserSMS.ts +++ b/Model/Models/UserSMS.ts @@ -55,7 +55,7 @@ class UserSMS extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -123,7 +123,7 @@ class UserSMS extends BaseModel { description: 'Relation to User who this email belongs to', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -168,7 +168,7 @@ class UserSMS extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -212,7 +212,7 @@ class UserSMS extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/Workflow.ts b/Model/Models/Workflow.ts index b129b2779f..9e9f5ed7cb 100644 --- a/Model/Models/Workflow.ts +++ b/Model/Models/Workflow.ts @@ -105,7 +105,7 @@ export default class Workflow extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -265,7 +265,7 @@ export default class Workflow extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -324,7 +324,7 @@ export default class Workflow extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/WorkflowLog.ts b/Model/Models/WorkflowLog.ts index 51cabd8815..e00f4d9832 100644 --- a/Model/Models/WorkflowLog.ts +++ b/Model/Models/WorkflowLog.ts @@ -74,7 +74,7 @@ export default class WorkflowLog extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -131,7 +131,7 @@ export default class WorkflowLog extends BaseModel { description: 'Workflow this logs belong to', }) @ManyToOne( - (_type: string) => { + () => { return Workflow; }, { @@ -270,7 +270,7 @@ export default class WorkflowLog extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/Model/Models/WorkflowVariable.ts b/Model/Models/WorkflowVariable.ts index 93379f0033..0eb612afad 100644 --- a/Model/Models/WorkflowVariable.ts +++ b/Model/Models/WorkflowVariable.ts @@ -88,7 +88,7 @@ export default class WorkflowVariable extends BaseModel { 'Relation to Project Resource in which this object belongs', }) @ManyToOne( - (_type: string) => { + () => { return Project; }, { @@ -154,7 +154,7 @@ export default class WorkflowVariable extends BaseModel { 'Workflow this variable belong to. If this is null then this variable will be a global variable', }) @ManyToOne( - (_type: string) => { + () => { return Workflow; }, { @@ -333,7 +333,7 @@ export default class WorkflowVariable extends BaseModel { 'Relation to User who created this object (if this object was created by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { @@ -391,7 +391,7 @@ export default class WorkflowVariable extends BaseModel { 'Relation to User who deleted this object (if this object was deleted by a User)', }) @ManyToOne( - (_type: string) => { + () => { return User; }, { diff --git a/eslint.config.js b/eslint.config.js index 7d3e80e06e..8647b9e516 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,9 +1,11 @@ // @ts-check - import eslint from '@eslint/js'; import tseslint from 'typescript-eslint'; export default tseslint.config( - eslint.configs.recommended, - ...tseslint.configs.recommended, -); \ No newline at end of file + { + ignores: ['**/node_modules/', '**/dist/', '**/build/', '**/out/'], + }, + eslint.configs.recommended, + ...tseslint.configs.strict +);