@mbc-cqrs-serverless/survey-template
Version:
71 lines • 2.89 kB
JavaScript
;
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.SurveyTemplateAttributes = void 0;
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
class SurveyTemplateAttributes {
}
exports.SurveyTemplateAttributes = SurveyTemplateAttributes;
__decorate([
(0, swagger_1.ApiProperty)({
description: 'Description of the survey template',
example: 'A comprehensive survey to measure customer satisfaction',
required: false,
}),
(0, class_validator_1.IsString)(),
(0, class_validator_1.IsOptional)(),
__metadata("design:type", String)
], SurveyTemplateAttributes.prototype, "description", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: 'The survey template structure as a JSON object',
example: {
id: 'svy_1759992461424',
title: 'Untitled Survey',
description: '',
items: [
{
id: 'sec_1759992461424',
type: 'section-header',
title: 'First Section',
description: '',
},
{
id: 'q_1759992464085',
type: 'short-text',
label: '',
validation: {
required: false,
},
},
],
},
required: true,
}),
(0, class_validator_1.IsObject)(),
__metadata("design:type", Object)
], SurveyTemplateAttributes.prototype, "surveyTemplate", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: 'Additional properties',
example: {
metabaseQuestion: {
questionId: '123',
questionName: 'Question Name',
questionSlug: 'text_question',
},
},
}),
(0, class_validator_1.IsObject)(),
__metadata("design:type", Object)
], SurveyTemplateAttributes.prototype, "additionalProperties", void 0);
//# sourceMappingURL=survey-template-attributes.dto.js.map