Spaces:
Sleeping
Sleeping
| import { IsString, IsOptional, IsEnum, IsNumber, IsBoolean } from 'class-validator'; | |
| import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger'; | |
| import { IntegrationType } from '../entities/api-integration.entity'; | |
| import { PartialType } from '@nestjs/swagger'; | |
| export class CreateIntegrationDto { | |
| ({ description: 'Integration name' }) | |
| () | |
| integrationName: string; | |
| ({ description: 'Integration type', enum: IntegrationType }) | |
| (IntegrationType) | |
| integrationType: IntegrationType; | |
| ({ description: 'Campus ID' }) | |
| () | |
| campusId: number; | |
| ({ description: 'API endpoint URL' }) | |
| () | |
| () | |
| apiEndpoint?: string; | |
| ({ description: 'API key (will be encrypted)' }) | |
| () | |
| () | |
| apiKey?: string; | |
| ({ description: 'API secret (will be encrypted)' }) | |
| () | |
| () | |
| apiSecret?: string; | |
| ({ description: 'Configuration JSON' }) | |
| () | |
| () | |
| configuration?: string; | |
| } | |
| export class UpdateIntegrationDto extends PartialType(CreateIntegrationDto) { | |
| ({ description: 'Active status' }) | |
| () | |
| () | |
| isActive?: boolean; | |
| } | |