From 9eb2762f4afda557c0531ac17ffb070bc0470404 Mon Sep 17 00:00:00 2001 From: Matt Cavanagh Date: Mon, 31 Jul 2023 14:28:43 +0100 Subject: [PATCH] Hide all mongo _ids from the API --- .../aggregate/global/global.character.aggregate.entity.ts | 3 ++- .../global/global.facility.control.aggregate.entity.ts | 3 ++- .../aggregate/global/global.faction.combat.aggregate.entity.ts | 3 ++- .../aggregate/global/global.loadout.aggregate.entity.ts | 3 ++- .../aggregate/global/global.outfit.aggregate.entity.ts | 3 ++- .../aggregate/global/global.vehicle.aggregate.entity.ts | 3 ++- .../global/global.vehicle.character.aggregate.entity.ts | 3 ++- .../aggregate/global/global.victory.aggregate.entity.ts | 3 ++- .../aggregate/global/global.weapon.aggregate.entity.ts | 3 ++- .../aggregate/instance/instance.character.aggregate.entity.ts | 3 ++- .../instance/instance.combat.history.aggregate.entity.ts | 3 ++- .../instance/instance.facility.control.aggregate.entity.ts | 3 ++- .../instance/instance.faction.combat.aggregate.entity.ts | 3 ++- .../aggregate/instance/instance.loadout.aggregate.entity.ts | 3 ++- .../aggregate/instance/instance.outfit.aggregate.entity.ts | 3 ++- .../aggregate/instance/instance.population.aggregate.entity.ts | 3 ++- .../instance/instance.population.averages.aggregate.entity.ts | 3 ++- .../aggregate/instance/instance.vehicle.aggregate.entity.ts | 3 ++- .../instance/instance.vehicle.character.aggregate.entity.ts | 3 ++- .../aggregate/instance/instance.weapon.aggregate.entity.ts | 3 ++- 20 files changed, 40 insertions(+), 20 deletions(-) diff --git a/src/modules/data/entities/aggregate/global/global.character.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.character.aggregate.entity.ts index 764a414b..e1845432 100644 --- a/src/modules/data/entities/aggregate/global/global.character.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.character.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import {World, worldArray} from '../../../ps2alerts-constants/world'; @@ -25,6 +25,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalCharacterAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({enum: worldArray, example: 10, description: 'Server / World ID'}) diff --git a/src/modules/data/entities/aggregate/global/global.facility.control.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.facility.control.aggregate.entity.ts index a14c6d91..664c14ee 100644 --- a/src/modules/data/entities/aggregate/global/global.facility.control.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.facility.control.aggregate.entity.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {World, worldArray} from '../../../ps2alerts-constants/world'; import FacilityFactionControl from '../common/facility.faction.control.embed'; @@ -18,6 +18,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalFacilityControlAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({enum: worldArray, example: 10, description: 'Server / World ID'}) diff --git a/src/modules/data/entities/aggregate/global/global.faction.combat.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.faction.combat.aggregate.entity.ts index 9e949bcc..6bdd33fc 100644 --- a/src/modules/data/entities/aggregate/global/global.faction.combat.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.faction.combat.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, ObjectID, Index} from 'typeorm'; import {World, worldArray} from '../../../ps2alerts-constants/world'; @@ -18,6 +18,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalFactionCombatAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({enum: worldArray, example: 10, description: 'Server / World ID'}) diff --git a/src/modules/data/entities/aggregate/global/global.loadout.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.loadout.aggregate.entity.ts index fb6b6310..f135d799 100644 --- a/src/modules/data/entities/aggregate/global/global.loadout.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.loadout.aggregate.entity.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Loadout, loadoutArray} from '../../../ps2alerts-constants/loadout'; import {World, worldArray} from '../../../ps2alerts-constants/world'; @@ -18,6 +18,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalLoadoutAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({enum: worldArray, example: 10, description: 'Server / World ID'}) diff --git a/src/modules/data/entities/aggregate/global/global.outfit.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.outfit.aggregate.entity.ts index a0d0699b..86e9d599 100644 --- a/src/modules/data/entities/aggregate/global/global.outfit.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.outfit.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import {World, worldArray} from '../../../ps2alerts-constants/world'; @@ -25,6 +25,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalOutfitAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({type: OutfitEmbed, description: 'Outfit details'}) diff --git a/src/modules/data/entities/aggregate/global/global.vehicle.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.vehicle.aggregate.entity.ts index fffa7c4f..8da3f606 100644 --- a/src/modules/data/entities/aggregate/global/global.vehicle.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.vehicle.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import VehicleStatsEmbed from '../common/vehicle.vs.vehicle.embed'; @@ -17,6 +17,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalVehicleAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: Vehicle.FLASH, enum: vehicleArray, description: 'Vehicle ID'}) diff --git a/src/modules/data/entities/aggregate/global/global.vehicle.character.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.vehicle.character.aggregate.entity.ts index 9f4c3635..9929c13f 100644 --- a/src/modules/data/entities/aggregate/global/global.vehicle.character.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.vehicle.character.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import VehicleStatsEmbed from '../common/vehicle.vs.vehicle.embed'; @@ -18,6 +18,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalVehicleCharacterAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: World.MILLER, enum: worldArray, description: 'World ID'}) diff --git a/src/modules/data/entities/aggregate/global/global.victory.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.victory.aggregate.entity.ts index 54eece68..b27da644 100644 --- a/src/modules/data/entities/aggregate/global/global.victory.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.victory.aggregate.entity.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {World, worldArray} from '../../../ps2alerts-constants/world'; import {Zone, zoneArray} from '../../../ps2alerts-constants/zone'; @@ -17,6 +17,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalVictoryAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({enum: worldArray, example: 10, description: 'Server / World ID'}) diff --git a/src/modules/data/entities/aggregate/global/global.weapon.aggregate.entity.ts b/src/modules/data/entities/aggregate/global/global.weapon.aggregate.entity.ts index 8eeebeed..6ae5f4f2 100644 --- a/src/modules/data/entities/aggregate/global/global.weapon.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/global/global.weapon.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import {World, worldArray} from '../../../ps2alerts-constants/world'; @@ -22,6 +22,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class GlobalWeaponAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({enum: worldArray, example: 10, description: 'Server / World ID'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.character.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.character.aggregate.entity.ts index a24ef71f..967d89c8 100644 --- a/src/modules/data/entities/aggregate/instance/instance.character.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.character.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import CharacterEmbed from '../common/character.embed'; @@ -16,6 +16,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceCharacterAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.combat.history.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.combat.history.aggregate.entity.ts index f6c4048b..90dd6b7e 100644 --- a/src/modules/data/entities/aggregate/instance/instance.combat.history.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.combat.history.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import CombatStats from '../common/combat.stats.embed'; @@ -12,6 +12,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceCombatHistoryAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.facility.control.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.facility.control.aggregate.entity.ts index 59677d08..3ac9cfa9 100644 --- a/src/modules/data/entities/aggregate/instance/instance.facility.control.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.facility.control.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import FacilityFactionControl from '../common/facility.faction.control.embed'; @@ -15,6 +15,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceFacilityControlAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.faction.combat.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.faction.combat.aggregate.entity.ts index 1b05307c..c92afc7f 100644 --- a/src/modules/data/entities/aggregate/instance/instance.faction.combat.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.faction.combat.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, ObjectID, Index} from 'typeorm'; import CombatStats from '../common/combat.stats.embed'; @@ -14,6 +14,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceFactionCombatAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id?: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.loadout.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.loadout.aggregate.entity.ts index 0af6c8b7..e979a653 100644 --- a/src/modules/data/entities/aggregate/instance/instance.loadout.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.loadout.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import {Loadout, loadoutArray} from '../../../ps2alerts-constants/loadout'; @@ -15,6 +15,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceLoadoutAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.outfit.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.outfit.aggregate.entity.ts index 06273218..e1c05c0e 100644 --- a/src/modules/data/entities/aggregate/instance/instance.outfit.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.outfit.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import OutfitEmbed from '../common/outfit.embed'; @@ -16,6 +16,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceOutfitAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.population.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.population.aggregate.entity.ts index ca9f4744..1bc9c221 100644 --- a/src/modules/data/entities/aggregate/instance/instance.population.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.population.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; @@ -10,6 +10,7 @@ import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; export default class InstancePopulationAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.population.averages.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.population.averages.aggregate.entity.ts index 7cc7332b..9500e48f 100644 --- a/src/modules/data/entities/aggregate/instance/instance.population.averages.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.population.averages.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; @@ -10,6 +10,7 @@ import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; export default class InstancePopulationAveragesAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.vehicle.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.vehicle.aggregate.entity.ts index a59a653e..330c51af 100644 --- a/src/modules/data/entities/aggregate/instance/instance.vehicle.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.vehicle.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import VehicleStatsEmbed from '../common/vehicle.vs.vehicle.embed'; @@ -15,6 +15,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceVehicleAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.vehicle.character.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.vehicle.character.aggregate.entity.ts index cdcda641..5b67e7a6 100644 --- a/src/modules/data/entities/aggregate/instance/instance.vehicle.character.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.vehicle.character.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import VehicleStatsEmbed from '../common/vehicle.vs.vehicle.embed'; @@ -15,6 +15,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceVehicleCharacterAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'}) diff --git a/src/modules/data/entities/aggregate/instance/instance.weapon.aggregate.entity.ts b/src/modules/data/entities/aggregate/instance/instance.weapon.aggregate.entity.ts index 3a90a1d1..2ed285ad 100644 --- a/src/modules/data/entities/aggregate/instance/instance.weapon.aggregate.entity.ts +++ b/src/modules/data/entities/aggregate/instance/instance.weapon.aggregate.entity.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/explicit-member-accessibility,@typescript-eslint/naming-convention */ -import {ApiProperty} from '@nestjs/swagger'; +import {ApiHideProperty, ApiProperty} from '@nestjs/swagger'; import {Exclude} from 'class-transformer'; import {Column, ObjectIdColumn, Entity, Index, ObjectID} from 'typeorm'; import ItemEmbed from '../common/item.embed'; @@ -15,6 +15,7 @@ import {Ps2AlertsEventType} from '../../../ps2alerts-constants/ps2AlertsEventTyp export default class InstanceWeaponAggregateEntity { @ObjectIdColumn() @Exclude() + @ApiHideProperty() _id: ObjectID; @ApiProperty({example: '10-12345', description: 'The Server-CensusInstanceId combination'})