@@ -25,6 +25,7 @@ export class BaseRecreationAssetDto {
2525 @ApiPropertyOptional ( {
2626 description : 'ID of the parent container asset' ,
2727 example : 100 ,
28+ type : Number ,
2829 nullable : true ,
2930 } )
3031 @IsInt ( )
@@ -35,6 +36,7 @@ export class BaseRecreationAssetDto {
3536 @ApiPropertyOptional ( {
3637 description : 'Physical barcode or field tag' ,
3738 example : 'CS-012' ,
39+ type : String ,
3840 nullable : true ,
3941 } )
4042 @IsString ( )
@@ -63,6 +65,7 @@ export class BaseRecreationAssetDto {
6365 @ApiPropertyOptional ( {
6466 description : 'Optional display name' ,
6567 example : 'Campsite #12 Table' ,
68+ type : String ,
6669 nullable : true ,
6770 } )
6871 @IsString ( )
@@ -73,6 +76,7 @@ export class BaseRecreationAssetDto {
7376 @ApiPropertyOptional ( {
7477 description : 'Free-text note' ,
7578 example : 'Located near river' ,
79+ type : String ,
7680 nullable : true ,
7781 } )
7882 @IsString ( )
@@ -82,6 +86,7 @@ export class BaseRecreationAssetDto {
8286 @ApiPropertyOptional ( {
8387 description : 'Legacy aggregate structure reference ID' ,
8488 example : 'LEG-884' ,
89+ type : String ,
8590 nullable : true ,
8691 } )
8792 @IsString ( )
@@ -92,6 +97,7 @@ export class BaseRecreationAssetDto {
9297 @ApiPropertyOptional ( {
9398 description : 'Total length in metres' ,
9499 example : 12.5 ,
100+ type : Number ,
95101 nullable : true ,
96102 } )
97103 @IsNumber ( )
@@ -102,6 +108,7 @@ export class BaseRecreationAssetDto {
102108 @ApiPropertyOptional ( {
103109 description : 'Total width in metres' ,
104110 example : 3.0 ,
111+ type : Number ,
105112 nullable : true ,
106113 } )
107114 @IsNumber ( )
@@ -112,6 +119,7 @@ export class BaseRecreationAssetDto {
112119 @ApiPropertyOptional ( {
113120 description : 'Total area in square metres' ,
114121 example : 37.5 ,
122+ type : Number ,
115123 nullable : true ,
116124 } )
117125 @IsNumber ( )
@@ -122,6 +130,7 @@ export class BaseRecreationAssetDto {
122130 @ApiPropertyOptional ( {
123131 description : 'Default monetary value' ,
124132 example : 1500.0 ,
133+ type : Number ,
125134 nullable : true ,
126135 } )
127136 @IsNumber ( )
@@ -132,6 +141,7 @@ export class BaseRecreationAssetDto {
132141 @ApiPropertyOptional ( {
133142 description : 'Actual monetary value' ,
134143 example : 1800.5 ,
144+ type : Number ,
135145 nullable : true ,
136146 } )
137147 @IsNumber ( )
@@ -142,6 +152,7 @@ export class BaseRecreationAssetDto {
142152 @ApiPropertyOptional ( {
143153 description : 'Date the asset was installed (YYYY-MM-DD)' ,
144154 example : '2023-05-15' ,
155+ type : String ,
145156 nullable : true ,
146157 } )
147158 @IsDateString ( )
@@ -174,13 +185,15 @@ export class RecreationAssetDto extends BaseRecreationAssetDto {
174185
175186 @ApiPropertyOptional ( {
176187 description : 'User identifier who last updated the record' ,
188+ type : String ,
177189 nullable : true ,
178190 } )
179191 @IsOptional ( )
180192 updated_by ?: string | null ;
181193
182194 @ApiPropertyOptional ( {
183195 description : 'Timestamp when record was last updated' ,
196+ type : String ,
184197 nullable : true ,
185198 } )
186199 @IsOptional ( )
@@ -189,6 +202,7 @@ export class RecreationAssetDto extends BaseRecreationAssetDto {
189202 @ApiPropertyOptional ( {
190203 description : 'Point geometry type code, if this asset has a location' ,
191204 example : 'PT' ,
205+ type : String ,
192206 nullable : true ,
193207 } )
194208 @IsOptional ( )
@@ -197,6 +211,7 @@ export class RecreationAssetDto extends BaseRecreationAssetDto {
197211 @ApiPropertyOptional ( {
198212 description : 'Latitude in WGS84 (derived from recreation_asset_geom)' ,
199213 example : 49.94212 ,
214+ type : Number ,
200215 nullable : true ,
201216 } )
202217 @IsOptional ( )
@@ -205,6 +220,7 @@ export class RecreationAssetDto extends BaseRecreationAssetDto {
205220 @ApiPropertyOptional ( {
206221 description : 'Longitude in WGS84 (derived from recreation_asset_geom)' ,
207222 example : - 123.03604 ,
223+ type : Number ,
208224 nullable : true ,
209225 } )
210226 @IsOptional ( )
@@ -258,7 +274,7 @@ export class FindAllAssetsQueryDto {
258274 @ApiPropertyOptional ( { description : 'Number of items per page' , default : 10 } )
259275 @IsInt ( )
260276 @Min ( 1 )
261- @Max ( 100 )
277+ @Max ( 500 )
262278 @Type ( ( ) => Number )
263279 @IsOptional ( )
264280 limit ?: number = 10 ;
0 commit comments