Skip to content

Commit

Permalink
fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed May 15, 2023
1 parent e1f3b45 commit 05540db
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 60 deletions.
20 changes: 0 additions & 20 deletions Common/Types/Permission.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ enum Permission {
CanEditIncidentOwnerUser = 'CanEditIncidentOwnerUser',
CanReadIncidentOwnerUser = 'CanReadIncidentOwnerUser',



CanCreateScheduledMaintenanceOwnerTeam = 'CanCreateScheduledMaintenanceOwnerTeam',
CanDeleteScheduledMaintenanceOwnerTeam = 'CanDeleteScheduledMaintenanceOwnerTeam',
CanEditScheduledMaintenanceOwnerTeam = 'CanEditScheduledMaintenanceOwnerTeam',
Expand All @@ -95,7 +93,6 @@ enum Permission {
CanEditScheduledMaintenanceOwnerUser = 'CanEditScheduledMaintenanceOwnerUser',
CanReadScheduledMaintenanceOwnerUser = 'CanReadScheduledMaintenanceOwnerUser',


CanCreateStatusPageOwnerTeam = 'CanCreateStatusPageOwnerTeam',
CanDeleteStatusPageOwnerTeam = 'CanDeleteStatusPageOwnerTeam',
CanEditStatusPageOwnerTeam = 'CanEditStatusPageOwnerTeam',
Expand All @@ -106,7 +103,6 @@ enum Permission {
CanEditStatusPageOwnerUser = 'CanEditStatusPageOwnerUser',
CanReadStatusPageOwnerUser = 'CanReadStatusPageOwnerUser',


CanCreateMonitorOwnerTeam = 'CanCreateMonitorOwnerTeam',
CanDeleteMonitorOwnerTeam = 'CanDeleteMonitorOwnerTeam',
CanEditMonitorOwnerTeam = 'CanEditMonitorOwnerTeam',
Expand All @@ -117,7 +113,6 @@ enum Permission {
CanEditMonitorOwnerUser = 'CanEditMonitorOwnerUser',
CanReadMonitorOwnerUser = 'CanReadMonitorOwnerUser',


CanCreateStatusPageCustomField = 'CanCreateStatusPageCustomField',
CanDeleteStatusPageCustomField = 'CanDeleteStatusPageCustomField',
CanEditStatusPageCustomField = 'CanEditStatusPageCustomField',
Expand Down Expand Up @@ -1706,7 +1701,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},


{
permission: Permission.CanCreateScheduledMaintenanceOwnerTeam,
title: 'Can Create Scheduled Maintenance Team Owner',
Expand Down Expand Up @@ -1740,7 +1734,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},


{
permission: Permission.CanCreateScheduledMaintenanceOwnerUser,
title: 'Can Create Scheduled Maintenance User Owner',
Expand Down Expand Up @@ -1774,7 +1767,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},


{
permission: Permission.CanCreateIncidentOwnerTeam,
title: 'Can Create Incident Team Owner',
Expand Down Expand Up @@ -1808,7 +1800,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},


{
permission: Permission.CanCreateIncidentOwnerUser,
title: 'Can Create Incident User Owner',
Expand Down Expand Up @@ -1842,9 +1833,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},




{
permission: Permission.CanCreateStatusPageOwnerTeam,
title: 'Can Create Status Page Team Owner',
Expand Down Expand Up @@ -1878,7 +1866,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},


{
permission: Permission.CanCreateStatusPageOwnerUser,
title: 'Can Create Status Page User Owner',
Expand Down Expand Up @@ -1912,10 +1899,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},





{
permission: Permission.CanCreateMonitorOwnerTeam,
title: 'Can Create Monitor Team Owner',
Expand Down Expand Up @@ -1949,7 +1932,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},


{
permission: Permission.CanCreateMonitorOwnerUser,
title: 'Can Create Monitor User Owner',
Expand Down Expand Up @@ -1983,8 +1965,6 @@ export class PermissionHelper {
isAccessControlPermission: false,
},



{
permission: Permission.CanCreateProjectIncident,
title: 'Can Create Incident',
Expand Down
6 changes: 1 addition & 5 deletions Model/Models/IncidentOwnerTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ import Team from './Team';
singularName: 'Incident Team Owner',
pluralName: 'Incident Team Owners',
icon: IconProp.Signal,
tableDescription:
'Add teams as owners to your incidents.',
tableDescription: 'Add teams as owners to your incidents.',
})
@Entity({
name: 'IncidentOwnerTeam',
Expand Down Expand Up @@ -259,8 +258,6 @@ export default class IncidentOwnerTeam extends AccessControlModel {
})
public incidentId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +375,4 @@ export default class IncidentOwnerTeam extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}
7 changes: 1 addition & 6 deletions Model/Models/IncidentOwnerUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import IconProp from 'Common/Types/Icon/IconProp';
import EnableDocumentation from 'Common/Types/Model/EnableDocumentation';
import Incident from './Incident';


@EnableDocumentation()
@TenantColumn('projectId')
@TableAccessControl({
Expand Down Expand Up @@ -56,8 +55,7 @@ import Incident from './Incident';
singularName: 'Incident User Owner',
pluralName: 'Incident User Owners',
icon: IconProp.Signal,
tableDescription:
'Add users as owners to your incidents.',
tableDescription: 'Add users as owners to your incidents.',
})
@Entity({
name: 'IncidentOwnerUser',
Expand Down Expand Up @@ -259,8 +257,6 @@ export default class IncidentOwnerUser extends AccessControlModel {
})
public incidentId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +374,4 @@ export default class IncidentOwnerUser extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}
6 changes: 1 addition & 5 deletions Model/Models/MonitorOwnerTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ import Team from './Team';
singularName: 'Monitor Team Owner',
pluralName: 'Monitor Team Owners',
icon: IconProp.Signal,
tableDescription:
'Add teams as owners to your monitors.',
tableDescription: 'Add teams as owners to your monitors.',
})
@Entity({
name: 'MonitorOwnerTeam',
Expand Down Expand Up @@ -259,8 +258,6 @@ export default class MonitorOwnerTeam extends AccessControlModel {
})
public monitorId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +375,4 @@ export default class MonitorOwnerTeam extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}
7 changes: 1 addition & 6 deletions Model/Models/MonitorOwnerUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import IconProp from 'Common/Types/Icon/IconProp';
import EnableDocumentation from 'Common/Types/Model/EnableDocumentation';
import Monitor from './Monitor';


@EnableDocumentation()
@TenantColumn('projectId')
@TableAccessControl({
Expand Down Expand Up @@ -56,8 +55,7 @@ import Monitor from './Monitor';
singularName: 'Monitor User Owner',
pluralName: 'Monitor User Owners',
icon: IconProp.Signal,
tableDescription:
'Add users as owners to your monitors.',
tableDescription: 'Add users as owners to your monitors.',
})
@Entity({
name: 'MonitorOwnerUser',
Expand Down Expand Up @@ -259,8 +257,6 @@ export default class MonitorOwnerUser extends AccessControlModel {
})
public monitorId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +374,4 @@ export default class MonitorOwnerUser extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}
3 changes: 0 additions & 3 deletions Model/Models/ScheduledMaintenanceOwnerTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,6 @@ export default class ScheduledMaintenanceOwnerTeam extends AccessControlModel {
})
public scheduledMaintenanceId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +376,4 @@ export default class ScheduledMaintenanceOwnerTeam extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}
4 changes: 0 additions & 4 deletions Model/Models/ScheduledMaintenanceOwnerUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import IconProp from 'Common/Types/Icon/IconProp';
import EnableDocumentation from 'Common/Types/Model/EnableDocumentation';
import ScheduledMaintenance from './ScheduledMaintenance';


@EnableDocumentation()
@TenantColumn('projectId')
@TableAccessControl({
Expand Down Expand Up @@ -259,8 +258,6 @@ export default class ScheduledMaintenanceOwnerUser extends AccessControlModel {
})
public scheduledMaintenanceId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +375,4 @@ export default class ScheduledMaintenanceOwnerUser extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}
6 changes: 1 addition & 5 deletions Model/Models/StatusPageOwnerTeam.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ import Team from './Team';
singularName: 'Status Page Team Owner',
pluralName: 'Status Page Team Owners',
icon: IconProp.Signal,
tableDescription:
'Add teams as owners to your Status Page.',
tableDescription: 'Add teams as owners to your Status Page.',
})
@Entity({
name: 'StatusPageOwnerTeam',
Expand Down Expand Up @@ -259,8 +258,6 @@ export default class StatusPageOwnerTeam extends AccessControlModel {
})
public statusPageId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +375,4 @@ export default class StatusPageOwnerTeam extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}
7 changes: 1 addition & 6 deletions Model/Models/StatusPageOwnerUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import IconProp from 'Common/Types/Icon/IconProp';
import EnableDocumentation from 'Common/Types/Model/EnableDocumentation';
import StatusPage from './StatusPage';


@EnableDocumentation()
@TenantColumn('projectId')
@TableAccessControl({
Expand Down Expand Up @@ -56,8 +55,7 @@ import StatusPage from './StatusPage';
singularName: 'Status Page User Owner',
pluralName: 'Status Page User Owners',
icon: IconProp.Signal,
tableDescription:
'Add users as owners to your Status Page.',
tableDescription: 'Add users as owners to your Status Page.',
})
@Entity({
name: 'StatusPageOwnerUser',
Expand Down Expand Up @@ -259,8 +257,6 @@ export default class StatusPageOwnerUser extends AccessControlModel {
})
public statusPageId?: ObjectID = undefined;



@ColumnAccessControl({
create: [
Permission.ProjectOwner,
Expand Down Expand Up @@ -378,5 +374,4 @@ export default class StatusPageOwnerUser extends AccessControlModel {
transformer: ObjectID.getDatabaseTransformer(),
})
public deletedByUserId?: ObjectID = undefined;

}

0 comments on commit 05540db

Please sign in to comment.