mirror of
https://github.com/immich-app/immich.git
synced 2025-12-26 01:11:47 +03:00
* feat: user license endpoints * feat: server license endpoints * chore: pr feedback * chore: add more test cases * chore: add prod license public keys * chore: open-api generation
17 lines
331 B
TypeScript
17 lines
331 B
TypeScript
import { IsNotEmpty, IsString, Matches } from 'class-validator';
|
|
|
|
export class LicenseKeyDto {
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
@Matches(/IM(SV|CL)(-[\dA-Za-z]{4}){8}/)
|
|
licenseKey!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
activationKey!: string;
|
|
}
|
|
|
|
export class LicenseResponseDto extends LicenseKeyDto {
|
|
activatedAt!: Date;
|
|
}
|