"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.NodeSizeOptionDto = exports.NodeSizeLocationDto = exports.DeprecationInfoDto = exports.NodeSizePriceDto = exports.PriceDetailDto = void 0;
const swagger_1 = require("@nestjs/swagger");
// Re-export with Swagger decorators for API documentation
class PriceDetailDto {
}
exports.PriceDetailDto = PriceDetailDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Price without VAT', example: '5.00' }),
    __metadata("design:type", String)
], PriceDetailDto.prototype, "net", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Price with VAT', example: '5.95' }),
    __metadata("design:type", String)
], PriceDetailDto.prototype, "gross", void 0);
class NodeSizePriceDto {
}
exports.NodeSizePriceDto = NodeSizePriceDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Location identifier', example: 'nbg1' }),
    __metadata("design:type", String)
], NodeSizePriceDto.prototype, "location", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: PriceDetailDto }),
    __metadata("design:type", PriceDetailDto)
], NodeSizePriceDto.prototype, "priceHourly", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: PriceDetailDto }),
    __metadata("design:type", PriceDetailDto)
], NodeSizePriceDto.prototype, "priceMonthly", void 0);
class DeprecationInfoDto {
}
exports.DeprecationInfoDto = DeprecationInfoDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Date when the server type becomes unavailable in this location',
        example: '2023-09-01T00:00:00Z',
    }),
    __metadata("design:type", String)
], DeprecationInfoDto.prototype, "unavailable_after", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Date when deprecation was announced',
        example: '2023-06-01T00:00:00Z',
    }),
    __metadata("design:type", String)
], DeprecationInfoDto.prototype, "announced", void 0);
class NodeSizeLocationDto {
}
exports.NodeSizeLocationDto = NodeSizeLocationDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Location ID', example: 1 }),
    __metadata("design:type", Number)
], NodeSizeLocationDto.prototype, "id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Location name', example: 'fsn1' }),
    __metadata("design:type", String)
], NodeSizeLocationDto.prototype, "name", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Deprecation information for this location (null if not deprecated)',
        type: DeprecationInfoDto,
        nullable: true,
    }),
    __metadata("design:type", DeprecationInfoDto)
], NodeSizeLocationDto.prototype, "deprecation", void 0);
class NodeSizeOptionDto {
}
exports.NodeSizeOptionDto = NodeSizeOptionDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server type ID', example: '1' }),
    __metadata("design:type", String)
], NodeSizeOptionDto.prototype, "id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server type name', example: 'cx11' }),
    __metadata("design:type", String)
], NodeSizeOptionDto.prototype, "name", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server type description', example: 'CX11' }),
    __metadata("design:type", String)
], NodeSizeOptionDto.prototype, "description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Number of CPU cores', example: 1 }),
    __metadata("design:type", Number)
], NodeSizeOptionDto.prototype, "cores", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Memory in GB', example: 2 }),
    __metadata("design:type", Number)
], NodeSizeOptionDto.prototype, "memory", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Disk size in GB', example: 20 }),
    __metadata("design:type", Number)
], NodeSizeOptionDto.prototype, "disk", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Storage type',
        enum: ['local', 'network'],
        example: 'local',
    }),
    __metadata("design:type", String)
], NodeSizeOptionDto.prototype, "storageType", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'CPU type',
        enum: ['shared', 'dedicated'],
        example: 'shared',
    }),
    __metadata("design:type", String)
], NodeSizeOptionDto.prototype, "cpuType", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'CPU architecture',
        enum: ['x86', 'arm'],
        example: 'x86',
    }),
    __metadata("design:type", String)
], NodeSizeOptionDto.prototype, "architecture", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Whether the server type is deprecated',
        example: false,
    }),
    __metadata("design:type", Boolean)
], NodeSizeOptionDto.prototype, "deprecated", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Physical dedicated server (e.g. Scaleway Elastic Metal). Distinct from cpuType=dedicated which is a dedicated vCPU on a shared host.',
        example: false,
    }),
    __metadata("design:type", Boolean)
], NodeSizeOptionDto.prototype, "bareMetal", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Provider supports server-level firewall (Security Groups) for this type. False for bare metal on most providers.',
        example: true,
    }),
    __metadata("design:type", Boolean)
], NodeSizeOptionDto.prototype, "managedFirewall", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Pay-as-you-go hourly billing available. False = monthly commitment only, not suitable for autoscale.',
        example: true,
    }),
    __metadata("design:type", Boolean)
], NodeSizeOptionDto.prototype, "supportsHourlyBilling", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Monthly price per GB for block/network storage. Only present for storageType=network types (e.g. Scaleway PRO2, ENT1). Absent for local SSD types.',
        example: '0.0993',
        required: false,
        nullable: true,
    }),
    __metadata("design:type", String)
], NodeSizeOptionDto.prototype, "blockStoragePricePerGbMonthly", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Prices per location',
        type: [NodeSizePriceDto],
    }),
    __metadata("design:type", Array)
], NodeSizeOptionDto.prototype, "prices", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Supported locations for this server type',
        type: [NodeSizeLocationDto],
    }),
    __metadata("design:type", Array)
], NodeSizeOptionDto.prototype, "locations", void 0);
