fix(lint): clean up type definitions and missing imports
Deploy Canina / deploy (push) Failing after 30m46s
Deploy Canina / deploy (push) Failing after 30m46s
This commit is contained in:
1 parent
9c8286c63f
commit
2de442dbae
9 files changed
+147
-62
No files matched your search
@@ -4,12 +4,18 @@ export class ErrorDetailField {
|
||||
@ApiProperty({ description: 'نام فیلد دارای خطا', example: 'phone' })
|
||||
field: string;
|
||||
|
||||
@ApiProperty({ description: 'توضیح توصیفی خطا به فارسی', example: 'شماره تلفن همراه وارد شده نامعتبر است.' })
|
||||
@ApiProperty({
|
||||
description: 'توضیح توصیفی خطا به فارسی',
|
||||
example: 'شماره تلفن همراه وارد شده نامعتبر است.',
|
||||
})
|
||||
message: string;
|
||||
}
|
||||
|
||||
export class ApiErrorResponse {
|
||||
@ApiProperty({ description: 'وضعیت موفقیت درخواست (همیشه false در زمان خطا)', example: false })
|
||||
@ApiProperty({
|
||||
description: 'وضعیت موفقیت درخواست (همیشه false در زمان خطا)',
|
||||
example: false,
|
||||
})
|
||||
success: boolean;
|
||||
|
||||
@ApiProperty({ description: 'کد وضعیت HTTP درخواست', example: 400 })
|
||||
@@ -17,11 +23,15 @@ export class ApiErrorResponse {
|
||||
|
||||
@ApiProperty({
|
||||
description: 'پیام جامع و توصیفی خطا به زبان فارسی',
|
||||
example: 'اطلاعات وارد شده نامعتبر است. لطفاً موارد مشخص شده را بررسی نمایید.',
|
||||
example:
|
||||
'اطلاعات وارد شده نامعتبر است. لطفاً موارد مشخص شده را بررسی نمایید.',
|
||||
})
|
||||
message: string;
|
||||
|
||||
@ApiProperty({ description: 'کد سیستمیک و ثابت خطا جهت پردازش فرانتاند', example: 'INVALID_INPUT_DATA' })
|
||||
@ApiProperty({
|
||||
description: 'کد سیستمیک و ثابت خطا جهت پردازش فرانتاند',
|
||||
example: 'INVALID_INPUT_DATA',
|
||||
})
|
||||
code: string;
|
||||
|
||||
@ApiProperty({
|
||||
@@ -31,9 +41,15 @@ export class ApiErrorResponse {
|
||||
})
|
||||
details?: ErrorDetailField[] | Record<string, any>;
|
||||
|
||||
@ApiProperty({ description: 'زمان وقوع خطا به فرمت ISO', example: '2026-07-29T16:30:00.000Z' })
|
||||
@ApiProperty({
|
||||
description: 'زمان وقوع خطا به فرمت ISO',
|
||||
example: '2026-07-29T16:30:00.000Z',
|
||||
})
|
||||
timestamp: string;
|
||||
|
||||
@ApiProperty({ description: 'مسیر و انکوینتی که خطا در آن رخ داده است', example: '/api/auth/register' })
|
||||
@ApiProperty({
|
||||
description: 'مسیر و انکوینتی که خطا در آن رخ داده است',
|
||||
example: '/api/auth/register',
|
||||
})
|
||||
path: string;
|
||||
}
|
||||
Reference in new issue
Block a user