"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.UpdateStatusDto = exports.UpdatePlanDto = exports.CreatePlanDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
const status_enum_1 = require("../../common/columntype/status.enum");
class CreatePlanDto {
}
exports.CreatePlanDto = CreatePlanDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Title of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "title", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Title of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "title_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Title of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "title_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Sub Title of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "subtitle", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Sub Title of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "subtitle_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Sub Title of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "subtitle_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "1",
        description: "Type of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "plan_type", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "INR",
        description: "Currency of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "currency", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "100",
        description: "Price of plan",
    }),
    __metadata("design:type", Number)
], CreatePlanDto.prototype, "price", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "200",
        description: "Mrp of  plan",
    }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Number)
], CreatePlanDto.prototype, "mrp_price", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "50",
        description: "Post limit of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Number)
], CreatePlanDto.prototype, "post_limit", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "10",
        description: "duration of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", Number)
], CreatePlanDto.prototype, "plan_duration", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Short Description of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "short_description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Short Description of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "short_description_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Short Description of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "short_description_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Description of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Description of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "description_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Description of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "description_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "/uploads/1736441717156-19968207.png",
        description: "Image of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "image", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: status_enum_1.Status, example: status_enum_1.Status.ACTIVE }),
    (0, class_validator_1.IsEnum)(status_enum_1.Status, { message: "Status must be one of: active, inactive" }),
    __metadata("design:type", String)
], CreatePlanDto.prototype, "status", void 0);
class UpdatePlanDto {
}
exports.UpdatePlanDto = UpdatePlanDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Title of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "title", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Title of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "title_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Title of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "title_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Sub Title of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "subtitle", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Sub Title of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "subtitle_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Sub Title of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "subtitle_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "1",
        description: "Type of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "plan_type", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "INR",
        description: "Currency of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "currency", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "100",
        description: "Price of plan",
    }),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", Number)
], UpdatePlanDto.prototype, "price", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "200",
        description: "Mrp of  plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", Number)
], UpdatePlanDto.prototype, "mrp_price", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "50",
        description: "Post limit of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", Number)
], UpdatePlanDto.prototype, "post_limit", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "10",
        description: "duration of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", Number)
], UpdatePlanDto.prototype, "plan_duration", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Short Description of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "short_description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Short Description of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "short_description_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Short Description of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "short_description_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "Test Plan",
        description: "Description of Plan in English",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "description", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "ٹیسٹ کیٹیگری",
        description: "Description of Plan  in Urdu",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "description_urd", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "فئة الاختبار",
        description: "Description of Plan in Arbic",
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsOptional)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "description_ar", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        example: "/uploads/1736441717156-19968207.png",
        description: "Image of plan",
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsString)(),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "image", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: status_enum_1.Status, example: status_enum_1.Status.ACTIVE }),
    (0, class_validator_1.IsEnum)(status_enum_1.Status, { message: "Status must be one of: active, inactive" }),
    __metadata("design:type", String)
], UpdatePlanDto.prototype, "status", void 0);
class UpdateStatusDto {
}
exports.UpdateStatusDto = UpdateStatusDto;
__decorate([
    (0, swagger_1.ApiProperty)({ enum: status_enum_1.Status, example: status_enum_1.Status.ACTIVE }),
    (0, class_validator_1.IsEnum)(status_enum_1.Status, { message: "Status must be either active or inactive" }),
    __metadata("design:type", String)
], UpdateStatusDto.prototype, "status", void 0);
//# sourceMappingURL=plan.dto.js.map