@mbc-cqrs-serverless/survey-template 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/dto/index.d.ts +3 -0
  2. package/dist/dto/index.js +3 -0
  3. package/dist/dto/index.js.map +1 -1
  4. package/dist/dto/survey-answer-attributes.dto.d.ts +5 -0
  5. package/dist/dto/survey-answer-attributes.dto.js +30 -0
  6. package/dist/dto/survey-answer-attributes.dto.js.map +1 -0
  7. package/dist/dto/survey-answer-command.dto.d.ts +6 -0
  8. package/dist/dto/survey-answer-command.dto.js +29 -0
  9. package/dist/dto/survey-answer-command.dto.js.map +1 -0
  10. package/dist/dto/survey-answer-create.dto.d.ts +5 -0
  11. package/dist/dto/survey-answer-create.dto.js +27 -0
  12. package/dist/dto/survey-answer-create.dto.js.map +1 -0
  13. package/dist/dto/survey-template-attributes.dto.d.ts +1 -0
  14. package/dist/dto/survey-template-attributes.dto.js +14 -0
  15. package/dist/dto/survey-template-attributes.dto.js.map +1 -1
  16. package/dist/dto/survey-template-create.dto.d.ts +5 -1
  17. package/dist/dto/survey-template-create.dto.js +6 -3
  18. package/dist/dto/survey-template-create.dto.js.map +1 -1
  19. package/dist/dto/survey-template-update.dto.d.ts +5 -1
  20. package/dist/dto/survey-template-update.dto.js +6 -3
  21. package/dist/dto/survey-template-update.dto.js.map +1 -1
  22. package/dist/entity/index.d.ts +3 -0
  23. package/dist/entity/index.js +3 -0
  24. package/dist/entity/index.js.map +1 -1
  25. package/dist/entity/survey-answer-command.entity.d.ts +6 -0
  26. package/dist/entity/survey-answer-command.entity.js +12 -0
  27. package/dist/entity/survey-answer-command.entity.js.map +1 -0
  28. package/dist/entity/survey-answer-data-list.entity.d.ts +6 -0
  29. package/dist/entity/survey-answer-data-list.entity.js +12 -0
  30. package/dist/entity/survey-answer-data-list.entity.js.map +1 -0
  31. package/dist/entity/survey-answer-data.entity.d.ts +6 -0
  32. package/dist/entity/survey-answer-data.entity.js +12 -0
  33. package/dist/entity/survey-answer-data.entity.js.map +1 -0
  34. package/dist/handler/index.d.ts +1 -0
  35. package/dist/handler/index.js +1 -0
  36. package/dist/handler/index.js.map +1 -1
  37. package/dist/handler/survey-answer-rds.handler.d.ts +8 -0
  38. package/dist/handler/survey-answer-rds.handler.js +81 -0
  39. package/dist/handler/survey-answer-rds.handler.js.map +1 -0
  40. package/dist/handler/survey-template-rds.handler.js +2 -0
  41. package/dist/handler/survey-template-rds.handler.js.map +1 -1
  42. package/dist/index.d.ts +2 -0
  43. package/dist/index.js +2 -0
  44. package/dist/index.js.map +1 -1
  45. package/dist/keys/index.d.ts +1 -0
  46. package/dist/keys/index.js +2 -1
  47. package/dist/keys/index.js.map +1 -1
  48. package/dist/survey-answer.controller.d.ts +10 -0
  49. package/dist/survey-answer.controller.js +47 -0
  50. package/dist/survey-answer.controller.js.map +1 -0
  51. package/dist/survey-answer.service.d.ts +12 -0
  52. package/dist/survey-answer.service.js +50 -0
  53. package/dist/survey-answer.service.js.map +1 -0
  54. package/dist/survey-template.module.js +7 -20
  55. package/dist/survey-template.module.js.map +1 -1
  56. package/dist/survey-template.service.js +5 -1
  57. package/dist/survey-template.service.js.map +1 -1
  58. package/package.json +4 -4
@@ -1,3 +1,6 @@
1
+ export * from './survey-answer-attributes.dto';
2
+ export * from './survey-answer-command.dto';
3
+ export * from './survey-answer-create.dto';
1
4
  export * from './survey-template-attributes.dto';
2
5
  export * from './survey-template-command.dto';
3
6
  export * from './survey-template-create.dto';
package/dist/dto/index.js CHANGED
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./survey-answer-attributes.dto"), exports);
18
+ __exportStar(require("./survey-answer-command.dto"), exports);
19
+ __exportStar(require("./survey-answer-create.dto"), exports);
17
20
  __exportStar(require("./survey-template-attributes.dto"), exports);
18
21
  __exportStar(require("./survey-template-command.dto"), exports);
19
22
  __exportStar(require("./survey-template-create.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAgD;AAChD,gEAA6C;AAC7C,+DAA4C;AAC5C,+DAA4C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA8C;AAC9C,8DAA2C;AAC3C,6DAA0C;AAC1C,mEAAgD;AAChD,gEAA6C;AAC7C,+DAA4C;AAC5C,+DAA4C"}
@@ -0,0 +1,5 @@
1
+ export declare class SurveyAnswerAttributes {
2
+ surveyId: string;
3
+ email?: string;
4
+ answer: object;
5
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SurveyAnswerAttributes = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SurveyAnswerAttributes {
15
+ }
16
+ exports.SurveyAnswerAttributes = SurveyAnswerAttributes;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], SurveyAnswerAttributes.prototype, "surveyId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsOptional)(),
23
+ (0, class_validator_1.IsEmail)(),
24
+ __metadata("design:type", String)
25
+ ], SurveyAnswerAttributes.prototype, "email", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsObject)(),
28
+ __metadata("design:type", Object)
29
+ ], SurveyAnswerAttributes.prototype, "answer", void 0);
30
+ //# sourceMappingURL=survey-answer-attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-attributes.dto.js","sourceRoot":"","sources":["../../src/dto/survey-answer-attributes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyE;AAEzE,MAAa,sBAAsB;CAUlC;AAVD,wDAUC;AARC;IADC,IAAA,0BAAQ,GAAE;;wDACK;AAIhB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;qDACI;AAGd;IADC,IAAA,0BAAQ,GAAE;;sDACG"}
@@ -0,0 +1,6 @@
1
+ import { CommandDto } from '@mbc-cqrs-serverless/core';
2
+ import { SurveyAnswerAttributes } from './survey-answer-attributes.dto';
3
+ export declare class SurveyAnswerCommandDto extends CommandDto {
4
+ attributes: SurveyAnswerAttributes;
5
+ constructor(partial: Partial<SurveyAnswerCommandDto>);
6
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SurveyAnswerCommandDto = void 0;
13
+ const core_1 = require("@mbc-cqrs-serverless/core");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ const survey_answer_attributes_dto_1 = require("./survey-answer-attributes.dto");
17
+ class SurveyAnswerCommandDto extends core_1.CommandDto {
18
+ constructor(partial) {
19
+ super();
20
+ Object.assign(this, partial);
21
+ }
22
+ }
23
+ exports.SurveyAnswerCommandDto = SurveyAnswerCommandDto;
24
+ __decorate([
25
+ (0, class_transformer_1.Type)(() => survey_answer_attributes_dto_1.SurveyAnswerAttributes),
26
+ (0, class_validator_1.ValidateNested)(),
27
+ __metadata("design:type", survey_answer_attributes_dto_1.SurveyAnswerAttributes)
28
+ ], SurveyAnswerCommandDto.prototype, "attributes", void 0);
29
+ //# sourceMappingURL=survey-answer-command.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-command.dto.js","sourceRoot":"","sources":["../../src/dto/survey-answer-command.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAsD;AACtD,yDAAwC;AACxC,qDAAgD;AAEhD,iFAAuE;AAEvE,MAAa,sBAAuB,SAAQ,iBAAU;IAKpD,YAAY,OAAwC;QAClD,KAAK,EAAE,CAAA;QACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AATD,wDASC;AANC;IAFC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qDAAsB,CAAC;IAClC,IAAA,gCAAc,GAAE;8BACL,qDAAsB;0DAAA"}
@@ -0,0 +1,5 @@
1
+ import { SurveyAnswerAttributes } from './survey-answer-attributes.dto';
2
+ export declare class SurveyAnswerCreateDto {
3
+ attributes: SurveyAnswerAttributes;
4
+ constructor(partial: Partial<SurveyAnswerCreateDto>);
5
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SurveyAnswerCreateDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const survey_answer_attributes_dto_1 = require("./survey-answer-attributes.dto");
16
+ class SurveyAnswerCreateDto {
17
+ constructor(partial) {
18
+ Object.assign(this, partial);
19
+ }
20
+ }
21
+ exports.SurveyAnswerCreateDto = SurveyAnswerCreateDto;
22
+ __decorate([
23
+ (0, class_transformer_1.Type)(() => survey_answer_attributes_dto_1.SurveyAnswerAttributes),
24
+ (0, class_validator_1.ValidateNested)(),
25
+ __metadata("design:type", survey_answer_attributes_dto_1.SurveyAnswerAttributes)
26
+ ], SurveyAnswerCreateDto.prototype, "attributes", void 0);
27
+ //# sourceMappingURL=survey-answer-create.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-create.dto.js","sourceRoot":"","sources":["../../src/dto/survey-answer-create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAAwC;AACxC,qDAAgD;AAEhD,iFAAuE;AAEvE,MAAa,qBAAqB;IAKhC,YAAY,OAAuC;QACjD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AARD,sDAQC;AALC;IAFC,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qDAAsB,CAAC;IAClC,IAAA,gCAAc,GAAE;8BACL,qDAAsB;yDAAA"}
@@ -1,4 +1,5 @@
1
1
  export declare class SurveyTemplateAttributes {
2
2
  description?: string;
3
3
  surveyTemplate: object;
4
+ additionalProperties: object;
4
5
  }
@@ -54,4 +54,18 @@ __decorate([
54
54
  (0, class_validator_1.IsObject)(),
55
55
  __metadata("design:type", Object)
56
56
  ], SurveyTemplateAttributes.prototype, "surveyTemplate", void 0);
57
+ __decorate([
58
+ (0, swagger_1.ApiProperty)({
59
+ description: 'Additional properties',
60
+ example: {
61
+ metabaseQuestion: {
62
+ questionId: '123',
63
+ questionName: 'Question Name',
64
+ questionSlug: 'text_question',
65
+ },
66
+ },
67
+ }),
68
+ (0, class_validator_1.IsObject)(),
69
+ __metadata("design:type", Object)
70
+ ], SurveyTemplateAttributes.prototype, "additionalProperties", void 0);
57
71
  //# sourceMappingURL=survey-template-attributes.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey-template-attributes.dto.js","sourceRoot":"","sources":["../../src/dto/survey-template-attributes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6C;AAC7C,qDAAgE;AAEhE,MAAa,wBAAwB;CAqCpC;AArCD,4DAqCC;AA7BC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,yDAAyD;QAClE,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACO;AA4BpB;IA1BC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE;YACP,EAAE,EAAE,mBAAmB;YACvB,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL;oBACE,EAAE,EAAE,mBAAmB;oBACvB,IAAI,EAAE,gBAAgB;oBACtB,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,EAAE;iBAChB;gBACD;oBACE,EAAE,EAAE,iBAAiB;oBACrB,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE;oBACT,UAAU,EAAE;wBACV,QAAQ,EAAE,KAAK;qBAChB;iBACF;aACF;SACF;QACD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;;gEACW"}
1
+ {"version":3,"file":"survey-template-attributes.dto.js","sourceRoot":"","sources":["../../src/dto/survey-template-attributes.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6C;AAC7C,qDAAgE;AAEhE,MAAa,wBAAwB;CAmDpC;AAnDD,4DAmDC;AA3CC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,yDAAyD;QAClE,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;6DACO;AA4BpB;IA1BC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,gDAAgD;QAC7D,OAAO,EAAE;YACP,EAAE,EAAE,mBAAmB;YACvB,KAAK,EAAE,iBAAiB;YACxB,WAAW,EAAE,EAAE;YACf,KAAK,EAAE;gBACL;oBACE,EAAE,EAAE,mBAAmB;oBACvB,IAAI,EAAE,gBAAgB;oBACtB,KAAK,EAAE,eAAe;oBACtB,WAAW,EAAE,EAAE;iBAChB;gBACD;oBACE,EAAE,EAAE,iBAAiB;oBACrB,IAAI,EAAE,YAAY;oBAClB,KAAK,EAAE,EAAE;oBACT,UAAU,EAAE;wBACV,QAAQ,EAAE,KAAK;qBAChB;iBACF;aACF;SACF;QACD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;;gEACW;AActB;IAXC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE;YACP,gBAAgB,EAAE;gBAChB,UAAU,EAAE,KAAK;gBACjB,YAAY,EAAE,eAAe;gBAC7B,YAAY,EAAE,eAAe;aAC9B;SACF;KACF,CAAC;IACD,IAAA,0BAAQ,GAAE;;sEACiB"}
@@ -1,6 +1,10 @@
1
1
  import { SurveyTemplateAttributes } from './survey-template-attributes.dto';
2
+ declare const CreateSurveyTemplateAttributes_base: import("@nestjs/common").Type<Pick<SurveyTemplateAttributes, "description" | "surveyTemplate">>;
3
+ export declare class CreateSurveyTemplateAttributes extends CreateSurveyTemplateAttributes_base {
4
+ }
2
5
  export declare class SurveyTemplateCreateDto {
3
6
  name: string;
4
- attributes: SurveyTemplateAttributes;
7
+ attributes: CreateSurveyTemplateAttributes;
5
8
  constructor(partial: Partial<SurveyTemplateCreateDto>);
6
9
  }
10
+ export {};
@@ -9,11 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SurveyTemplateCreateDto = void 0;
12
+ exports.SurveyTemplateCreateDto = exports.CreateSurveyTemplateAttributes = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
16
16
  const survey_template_attributes_dto_1 = require("./survey-template-attributes.dto");
17
+ class CreateSurveyTemplateAttributes extends (0, swagger_1.PickType)(survey_template_attributes_dto_1.SurveyTemplateAttributes, ['surveyTemplate', 'description']) {
18
+ }
19
+ exports.CreateSurveyTemplateAttributes = CreateSurveyTemplateAttributes;
17
20
  class SurveyTemplateCreateDto {
18
21
  constructor(partial) {
19
22
  Object.assign(this, partial);
@@ -35,9 +38,9 @@ __decorate([
35
38
  description: 'Survey template attributes including description and survey template structure',
36
39
  required: true,
37
40
  }),
38
- (0, class_transformer_1.Type)(() => survey_template_attributes_dto_1.SurveyTemplateAttributes),
41
+ (0, class_transformer_1.Type)(() => CreateSurveyTemplateAttributes),
39
42
  (0, class_validator_1.ValidateNested)(),
40
43
  (0, class_validator_1.IsNotEmpty)(),
41
- __metadata("design:type", survey_template_attributes_dto_1.SurveyTemplateAttributes)
44
+ __metadata("design:type", CreateSurveyTemplateAttributes)
42
45
  ], SurveyTemplateCreateDto.prototype, "attributes", void 0);
43
46
  //# sourceMappingURL=survey-template-create.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey-template-create.dto.js","sourceRoot":"","sources":["../../src/dto/survey-template-create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6C;AAC7C,yDAAwC;AACxC,qDAAsE;AAEtE,qFAA2E;AAE3E,MAAa,uBAAuB;IAoBlC,YAAY,OAAyC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AAvBD,0DAuBC;AAfC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,8BAA8B;QACvC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACD;AAUZ;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,gFAAgF;QAClF,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yDAAwB,CAAC;IACpC,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACD,yDAAwB;2DAAA"}
1
+ {"version":3,"file":"survey-template-create.dto.js","sourceRoot":"","sources":["../../src/dto/survey-template-create.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAuD;AACvD,yDAAwC;AACxC,qDAAsE;AAEtE,qFAA2E;AAE3E,MAAa,8BAA+B,SAAQ,IAAA,kBAAQ,EAC1D,yDAAwB,EACxB,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAClC;CAAG;AAHJ,wEAGI;AAEJ,MAAa,uBAAuB;IAoBlC,YAAY,OAAyC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AAvBD,0DAuBC;AAfC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,8BAA8B;QACvC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACD;AAUZ;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,gFAAgF;QAClF,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;IAC1C,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACD,8BAA8B;2DAAA"}
@@ -1,7 +1,11 @@
1
1
  import { SurveyTemplateAttributes } from './survey-template-attributes.dto';
2
+ declare const UpdateSurveyTemplateAttributes_base: import("@nestjs/common").Type<Partial<SurveyTemplateAttributes>>;
3
+ export declare class UpdateSurveyTemplateAttributes extends UpdateSurveyTemplateAttributes_base {
4
+ }
2
5
  export declare class SurveyTemplateUpdateDto {
3
6
  name?: string;
4
7
  isDeleted?: boolean;
5
- attributes?: SurveyTemplateAttributes;
8
+ attributes?: UpdateSurveyTemplateAttributes;
6
9
  constructor(partial: Partial<SurveyTemplateUpdateDto>);
7
10
  }
11
+ export {};
@@ -9,11 +9,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.SurveyTemplateUpdateDto = void 0;
12
+ exports.SurveyTemplateUpdateDto = exports.UpdateSurveyTemplateAttributes = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const class_validator_1 = require("class-validator");
16
16
  const survey_template_attributes_dto_1 = require("./survey-template-attributes.dto");
17
+ class UpdateSurveyTemplateAttributes extends (0, swagger_1.PartialType)(survey_template_attributes_dto_1.SurveyTemplateAttributes) {
18
+ }
19
+ exports.UpdateSurveyTemplateAttributes = UpdateSurveyTemplateAttributes;
17
20
  class SurveyTemplateUpdateDto {
18
21
  constructor(partial) {
19
22
  Object.assign(this, partial);
@@ -45,9 +48,9 @@ __decorate([
45
48
  description: 'Survey template attributes including description and survey template structure',
46
49
  required: true,
47
50
  }),
48
- (0, class_transformer_1.Type)(() => survey_template_attributes_dto_1.SurveyTemplateAttributes),
51
+ (0, class_transformer_1.Type)(() => UpdateSurveyTemplateAttributes),
49
52
  (0, class_validator_1.ValidateNested)(),
50
53
  (0, class_validator_1.IsOptional)(),
51
- __metadata("design:type", survey_template_attributes_dto_1.SurveyTemplateAttributes)
54
+ __metadata("design:type", UpdateSurveyTemplateAttributes)
52
55
  ], SurveyTemplateUpdateDto.prototype, "attributes", void 0);
53
56
  //# sourceMappingURL=survey-template-update.dto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey-template-update.dto.js","sourceRoot":"","sources":["../../src/dto/survey-template-update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6C;AAC7C,yDAAwC;AACxC,qDAKwB;AAExB,qFAA2E;AAE3E,MAAa,uBAAuB;IA6BlC,YAAY,OAAyC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AAhCD,0DAgCC;AAxBC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,8BAA8B;QACvC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACA;AASb;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACM;AAUnB;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,gFAAgF;QAClF,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yDAAwB,CAAC;IACpC,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACA,yDAAwB;2DAAA"}
1
+ {"version":3,"file":"survey-template-update.dto.js","sourceRoot":"","sources":["../../src/dto/survey-template-update.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA0D;AAC1D,yDAAwC;AACxC,qDAKwB;AAExB,qFAA2E;AAE3E,MAAa,8BAA+B,SAAQ,IAAA,qBAAW,EAC7D,yDAAwB,CACzB;CAAG;AAFJ,wEAEI;AAEJ,MAAa,uBAAuB;IA6BlC,YAAY,OAAyC;QACnD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AAhCD,0DAgCC;AAxBC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,8BAA8B;QACvC,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;qDACA;AASb;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACM;AAUnB;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EACT,gFAAgF;QAClF,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,8BAA8B,CAAC;IAC1C,IAAA,gCAAc,GAAE;IAChB,IAAA,4BAAU,GAAE;8BACA,8BAA8B;2DAAA"}
@@ -1,3 +1,6 @@
1
+ export * from './survey-answer-command.entity';
2
+ export * from './survey-answer-data.entity';
3
+ export * from './survey-answer-data-list.entity';
1
4
  export * from './survey-template-command.entity';
2
5
  export * from './survey-template-data.entity';
3
6
  export * from './survey-template-data-list.entity';
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./survey-answer-command.entity"), exports);
18
+ __exportStar(require("./survey-answer-data.entity"), exports);
19
+ __exportStar(require("./survey-answer-data-list.entity"), exports);
17
20
  __exportStar(require("./survey-template-command.entity"), exports);
18
21
  __exportStar(require("./survey-template-data.entity"), exports);
19
22
  __exportStar(require("./survey-template-data-list.entity"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mEAAgD;AAChD,gEAA6C;AAC7C,qEAAkD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entity/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA8C;AAC9C,8DAA2C;AAC3C,mEAAgD;AAChD,mEAAgD;AAChD,gEAA6C;AAC7C,qEAAkD"}
@@ -0,0 +1,6 @@
1
+ import { CommandEntity } from '@mbc-cqrs-serverless/core';
2
+ import { SurveyAnswerAttributes } from '../dto/survey-answer-attributes.dto';
3
+ export declare class SurveyAnswerCommandEntity extends CommandEntity {
4
+ attributes: SurveyAnswerAttributes;
5
+ constructor(partial: Partial<SurveyAnswerCommandEntity>);
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SurveyAnswerCommandEntity = void 0;
4
+ const core_1 = require("@mbc-cqrs-serverless/core");
5
+ class SurveyAnswerCommandEntity extends core_1.CommandEntity {
6
+ constructor(partial) {
7
+ super();
8
+ Object.assign(this, partial);
9
+ }
10
+ }
11
+ exports.SurveyAnswerCommandEntity = SurveyAnswerCommandEntity;
12
+ //# sourceMappingURL=survey-answer-command.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-command.entity.js","sourceRoot":"","sources":["../../src/entity/survey-answer-command.entity.ts"],"names":[],"mappings":";;;AAAA,oDAAyD;AAIzD,MAAa,yBAA0B,SAAQ,oBAAa;IAG1D,YAAY,OAA2C;QACrD,KAAK,EAAE,CAAA;QACP,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AAPD,8DAOC"}
@@ -0,0 +1,6 @@
1
+ import { DataListEntity } from '@mbc-cqrs-serverless/core';
2
+ import { SurveyAnswerDataEntity } from './survey-answer-data.entity';
3
+ export declare class SurveyAnswerDataListEntity extends DataListEntity {
4
+ items: SurveyAnswerDataEntity[];
5
+ constructor(partial: Partial<SurveyAnswerDataListEntity>);
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SurveyAnswerDataListEntity = void 0;
4
+ const core_1 = require("@mbc-cqrs-serverless/core");
5
+ class SurveyAnswerDataListEntity extends core_1.DataListEntity {
6
+ constructor(partial) {
7
+ super(partial);
8
+ Object.assign(this, partial);
9
+ }
10
+ }
11
+ exports.SurveyAnswerDataListEntity = SurveyAnswerDataListEntity;
12
+ //# sourceMappingURL=survey-answer-data-list.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-data-list.entity.js","sourceRoot":"","sources":["../../src/entity/survey-answer-data-list.entity.ts"],"names":[],"mappings":";;;AAAA,oDAA0D;AAI1D,MAAa,0BAA2B,SAAQ,qBAAc;IAG5D,YAAY,OAA4C;QACtD,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AAPD,gEAOC"}
@@ -0,0 +1,6 @@
1
+ import { DataEntity } from '@mbc-cqrs-serverless/core';
2
+ import { SurveyAnswerAttributes } from '../dto/survey-answer-attributes.dto';
3
+ export declare class SurveyAnswerDataEntity extends DataEntity {
4
+ attributes: SurveyAnswerAttributes;
5
+ constructor(partial: Partial<SurveyAnswerDataEntity>);
6
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SurveyAnswerDataEntity = void 0;
4
+ const core_1 = require("@mbc-cqrs-serverless/core");
5
+ class SurveyAnswerDataEntity extends core_1.DataEntity {
6
+ constructor(partial) {
7
+ super(partial);
8
+ Object.assign(this, partial);
9
+ }
10
+ }
11
+ exports.SurveyAnswerDataEntity = SurveyAnswerDataEntity;
12
+ //# sourceMappingURL=survey-answer-data.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-data.entity.js","sourceRoot":"","sources":["../../src/entity/survey-answer-data.entity.ts"],"names":[],"mappings":";;;AAAA,oDAAsD;AAItD,MAAa,sBAAuB,SAAQ,iBAAU;IAGpD,YAAY,OAAwC;QAClD,KAAK,CAAC,OAAO,CAAC,CAAA;QACd,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;IAC9B,CAAC;CACF;AAPD,wDAOC"}
@@ -1 +1,2 @@
1
+ export * from './survey-answer-rds.handler';
1
2
  export * from './survey-template-rds.handler';
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./survey-answer-rds.handler"), exports);
17
18
  __exportStar(require("./survey-template-rds.handler"), exports);
18
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA6C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handler/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA2C;AAC3C,gEAA6C"}
@@ -0,0 +1,8 @@
1
+ import { CommandModel, IDataSyncHandler } from '@mbc-cqrs-serverless/core';
2
+ export declare class SurveyAnswerDataSyncRdsHandler implements IDataSyncHandler {
3
+ private readonly prismaService;
4
+ private readonly logger;
5
+ constructor(prismaService: any);
6
+ up(cmd: CommandModel): Promise<any>;
7
+ down(cmd: CommandModel): Promise<any>;
8
+ }
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var SurveyAnswerDataSyncRdsHandler_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SurveyAnswerDataSyncRdsHandler = void 0;
17
+ const core_1 = require("@mbc-cqrs-serverless/core");
18
+ const common_1 = require("@nestjs/common");
19
+ const keys_1 = require("../keys");
20
+ const survey_template_module_definition_1 = require("../survey-template.module-definition");
21
+ let SurveyAnswerDataSyncRdsHandler = SurveyAnswerDataSyncRdsHandler_1 = class SurveyAnswerDataSyncRdsHandler {
22
+ constructor(prismaService) {
23
+ this.prismaService = prismaService;
24
+ this.logger = new common_1.Logger(SurveyAnswerDataSyncRdsHandler_1.name);
25
+ }
26
+ async up(cmd) {
27
+ this.logger.debug(cmd);
28
+ if (!cmd.sk.startsWith(`${keys_1.SURVEY_ANSWER_SK_PREFIX}${core_1.KEY_SEPARATOR}`))
29
+ return;
30
+ const sk = (0, core_1.removeSortKeyVersion)(cmd.sk);
31
+ const attrs = cmd.attributes;
32
+ await this.prismaService.surveyAnswer.upsert({
33
+ where: {
34
+ id: cmd.id,
35
+ },
36
+ update: {
37
+ csk: cmd.sk,
38
+ name: cmd.name,
39
+ version: cmd.version,
40
+ seq: cmd.seq,
41
+ isDeleted: cmd.isDeleted || false,
42
+ updatedAt: cmd.updatedAt,
43
+ updatedBy: cmd.updatedBy,
44
+ updatedIp: cmd.updatedIp,
45
+ attributes: attrs.answer,
46
+ surveyId: attrs.surveyId,
47
+ },
48
+ create: {
49
+ id: cmd.id,
50
+ cpk: cmd.pk,
51
+ csk: cmd.sk,
52
+ pk: cmd.pk,
53
+ sk,
54
+ code: sk,
55
+ name: cmd.name,
56
+ version: cmd.version,
57
+ tenantCode: cmd.tenantCode,
58
+ seq: cmd.seq,
59
+ createdAt: cmd.createdAt,
60
+ createdBy: cmd.createdBy,
61
+ createdIp: cmd.createdIp,
62
+ updatedAt: cmd.updatedAt,
63
+ updatedBy: cmd.updatedBy,
64
+ updatedIp: cmd.updatedIp,
65
+ attributes: attrs.answer,
66
+ surveyId: attrs.surveyId,
67
+ email: attrs.email,
68
+ },
69
+ });
70
+ }
71
+ async down(cmd) {
72
+ this.logger.debug(cmd);
73
+ }
74
+ };
75
+ exports.SurveyAnswerDataSyncRdsHandler = SurveyAnswerDataSyncRdsHandler;
76
+ exports.SurveyAnswerDataSyncRdsHandler = SurveyAnswerDataSyncRdsHandler = SurveyAnswerDataSyncRdsHandler_1 = __decorate([
77
+ (0, common_1.Injectable)(),
78
+ __param(0, (0, common_1.Inject)(survey_template_module_definition_1.PRISMA_SERVICE)),
79
+ __metadata("design:paramtypes", [Object])
80
+ ], SurveyAnswerDataSyncRdsHandler);
81
+ //# sourceMappingURL=survey-answer-rds.handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer-rds.handler.js","sourceRoot":"","sources":["../../src/handler/survey-answer-rds.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAKkC;AAClC,2CAA2D;AAG3D,kCAAiD;AACjD,4FAAqE;AAG9D,IAAM,8BAA8B,sCAApC,MAAM,8BAA8B;IAGzC,YAEE,aAAmC;QAAlB,kBAAa,GAAb,aAAa,CAAK;QAJpB,WAAM,GAAG,IAAI,eAAM,CAAC,gCAA8B,CAAC,IAAI,CAAC,CAAA;IAKtE,CAAC;IAEJ,KAAK,CAAC,EAAE,CAAC,GAAiB;QACxB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACtB,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,8BAAuB,GAAG,oBAAa,EAAE,CAAC;YAAE,OAAM;QAC5E,MAAM,EAAE,GAAG,IAAA,2BAAoB,EAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACvC,MAAM,KAAK,GAAG,GAAG,CAAC,UAAoC,CAAA;QACtD,MAAM,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,MAAM,CAAC;YAC3C,KAAK,EAAE;gBACL,EAAE,EAAE,GAAG,CAAC,EAAE;aACX;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,GAAG,CAAC,EAAE;gBACX,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,OAAO,EAAE,GAAG,CAAC,OAAO;gBACpB,GAAG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CAwD1C"}
@@ -39,6 +39,7 @@ let SurveyTemplateDataSyncRdsHandler = SurveyTemplateDataSyncRdsHandler_1 = clas
39
39
  seq: cmd.seq,
40
40
  description: cmd.attributes?.description,
41
41
  surveyTemplate: cmd.attributes?.surveyTemplate,
42
+ additionalProperties: cmd.attributes?.additionalProperties || {},
42
43
  isDeleted: cmd.isDeleted || false,
43
44
  updatedAt: cmd.updatedAt,
44
45
  updatedBy: cmd.updatedBy,
@@ -57,6 +58,7 @@ let SurveyTemplateDataSyncRdsHandler = SurveyTemplateDataSyncRdsHandler_1 = clas
57
58
  seq: cmd.seq,
58
59
  description: cmd.attributes?.description,
59
60
  surveyTemplate: cmd.attributes?.surveyTemplate,
61
+ additionalProperties: cmd.attributes?.additionalProperties || {},
60
62
  createdAt: cmd.createdAt,
61
63
  createdBy: cmd.createdBy,
62
64
  createdIp: cmd.createdIp,
@@ -1 +1 @@
1
- {"version":3,"file":"survey-template-rds.handler.js","sourceRoot":"","sources":["../../src/handler/survey-template-rds.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAIkC;AAClC,2CAA2D;AAE3D,kCAAmD;AACnD,4FAAqE;AAG9D,IAAM,gCAAgC,wCAAtC,MAAM,gCAAgC;IAG3C,YAEE,aAAmC;QAAlB,kBAAa,GAAb,aAAa,CAAK;QAJpB,WAAM,GAAG,IAAI,eAAM,CAAC,kCAAgC,CAAC,IAAI,CAAC,CAAA;IAKxE,CAAC;IAEJ,KAAK,CAAC,EAAE,CAAC,GAAiB;QACxB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACtB,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,gCAAyB,CAAC;YAAE,OAAM;QACzD,MAAM,EAAE,GAAG,IAAA,2BAAoB,EAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACvC,MAAM,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,MAAM,CAAC;YAC7C,KAAK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AAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACxB,CAAC;CACF,CAAA;AArDY,4EAAgC;2CAAhC,gCAAgC;IAD5C,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,kDAAc,CAAC,CAAA;;GAJd,gCAAgC,CAqD5C"}
1
+ {"version":3,"file":"survey-template-rds.handler.js","sourceRoot":"","sources":["../../src/handler/survey-template-rds.handler.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAIkC;AAClC,2CAA2D;AAE3D,kCAAmD;AACnD,4FAAqE;AAG9D,IAAM,gCAAgC,wCAAtC,MAAM,gCAAgC;IAG3C,YAEE,aAAmC;QAAlB,kBAAa,GAAb,aAAa,CAAK;QAJpB,WAAM,GAAG,IAAI,eAAM,CAAC,kCAAgC,CAAC,IAAI,CAAC,CAAA;IAKxE,CAAC;IAEJ,KAAK,CAAC,EAAE,CAAC,GAAiB;QACxB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;QACtB,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,UAAU,CAAC,gCAAyB,CAAC;YAAE,OAAM;QACzD,MAAM,EAAE,GAAG,IAAA,2BAAoB,EAAC,GAAG,CAAC,EAAE,CAAC,CAAA;QACvC,MAAM,IAAI,CAAC,aAAa,CAAC,cAAc,CAAC,MAAM,CAAC;YAC7C,KAAK,EAAE;gBACL,EAAE,EAAE,GAAG,CAAC,EAAE;aACX;YACD,MAAM,EAAE;gBACN,GAAG,EAAE,GAAG,CAAC,EAAE;gBACX,IAAI,EAAE,GAAG,CAAC,IAAI;gBACd,OAAO,EAAE,GAAG,CAAC,OAAO;gBACpB,GAAG,EAAE,GAAG,CAAC,GAAG;gBACZ,WAAW,EAAE,GAAG,CAAC,UAAU,EAAE,WAAW;gBACxC,cAAc,EAAE,GAAG,CAAC,UAAU,EAAE,cAAc;gBAC9C,oBAAoB,EAAE,GAAG,CAAC,UAAU,EAAE,o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@@ -2,6 +2,8 @@ export * from './dto';
2
2
  export * from './entity';
3
3
  export * from './handler';
4
4
  export * from './keys';
5
+ export * from './survey-answer.controller';
6
+ export * from './survey-answer.service';
5
7
  export * from './survey-template.controller';
6
8
  export * from './survey-template.module';
7
9
  export * from './survey-template.module-definition';
package/dist/index.js CHANGED
@@ -18,6 +18,8 @@ __exportStar(require("./dto"), exports);
18
18
  __exportStar(require("./entity"), exports);
19
19
  __exportStar(require("./handler"), exports);
20
20
  __exportStar(require("./keys"), exports);
21
+ __exportStar(require("./survey-answer.controller"), exports);
22
+ __exportStar(require("./survey-answer.service"), exports);
21
23
  __exportStar(require("./survey-template.controller"), exports);
22
24
  __exportStar(require("./survey-template.module"), exports);
23
25
  __exportStar(require("./survey-template.module-definition"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,2CAAwB;AACxB,4CAAyB;AACzB,yCAAsB;AACtB,+DAA4C;AAC5C,2DAAwC;AACxC,sEAAmD;AACnD,4DAAyC;AACzC,0CAAuB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,2CAAwB;AACxB,4CAAyB;AACzB,yCAAsB;AACtB,6DAA0C;AAC1C,0DAAuC;AACvC,+DAA4C;AAC5C,2DAAwC;AACxC,sEAAmD;AACnD,4DAAyC;AACzC,0CAAuB"}
@@ -1 +1,2 @@
1
1
  export declare const SURVEY_TEMPLATE_SK_PREFIX = "TEMPLATE";
2
+ export declare const SURVEY_ANSWER_SK_PREFIX = "SURVEY_ANSWER";
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SURVEY_TEMPLATE_SK_PREFIX = void 0;
3
+ exports.SURVEY_ANSWER_SK_PREFIX = exports.SURVEY_TEMPLATE_SK_PREFIX = void 0;
4
4
  exports.SURVEY_TEMPLATE_SK_PREFIX = 'TEMPLATE';
5
+ exports.SURVEY_ANSWER_SK_PREFIX = 'SURVEY_ANSWER';
5
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keys/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,UAAU,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/keys/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,yBAAyB,GAAG,UAAU,CAAA;AACtC,QAAA,uBAAuB,GAAG,eAAe,CAAA"}
@@ -0,0 +1,10 @@
1
+ import { IInvoke } from '@mbc-cqrs-serverless/core';
2
+ import { SurveyAnswerCreateDto } from './dto/survey-answer-create.dto';
3
+ import { SurveyAnswerDataEntity } from './entity/survey-answer-data.entity';
4
+ import { SurveyAnswerService } from './survey-answer.service';
5
+ export declare class SurveyAnswerController {
6
+ private readonly surveyAnswerService;
7
+ private readonly logger;
8
+ constructor(surveyAnswerService: SurveyAnswerService);
9
+ create(invokeContext: IInvoke, createDto: SurveyAnswerCreateDto): Promise<SurveyAnswerDataEntity>;
10
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var SurveyAnswerController_1;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SurveyAnswerController = void 0;
17
+ const core_1 = require("@mbc-cqrs-serverless/core");
18
+ const common_1 = require("@nestjs/common");
19
+ const common_2 = require("@nestjs/common");
20
+ const swagger_1 = require("@nestjs/swagger");
21
+ const survey_answer_create_dto_1 = require("./dto/survey-answer-create.dto");
22
+ const survey_answer_service_1 = require("./survey-answer.service");
23
+ let SurveyAnswerController = SurveyAnswerController_1 = class SurveyAnswerController {
24
+ constructor(surveyAnswerService) {
25
+ this.surveyAnswerService = surveyAnswerService;
26
+ this.logger = new common_1.Logger(SurveyAnswerController_1.name);
27
+ }
28
+ async create(invokeContext, createDto) {
29
+ this.logger.debug('createDto:', createDto);
30
+ return await this.surveyAnswerService.create(createDto, { invokeContext });
31
+ }
32
+ };
33
+ exports.SurveyAnswerController = SurveyAnswerController;
34
+ __decorate([
35
+ (0, common_1.Post)('/'),
36
+ __param(0, (0, core_1.INVOKE_CONTEXT)()),
37
+ __param(1, (0, common_2.Body)()),
38
+ __metadata("design:type", Function),
39
+ __metadata("design:paramtypes", [Object, survey_answer_create_dto_1.SurveyAnswerCreateDto]),
40
+ __metadata("design:returntype", Promise)
41
+ ], SurveyAnswerController.prototype, "create", null);
42
+ exports.SurveyAnswerController = SurveyAnswerController = SurveyAnswerController_1 = __decorate([
43
+ (0, swagger_1.ApiTags)('survey-answer'),
44
+ (0, common_1.Controller)('api/survey-answer'),
45
+ __metadata("design:paramtypes", [survey_answer_service_1.SurveyAnswerService])
46
+ ], SurveyAnswerController);
47
+ //# sourceMappingURL=survey-answer.controller.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer.controller.js","sourceRoot":"","sources":["../src/survey-answer.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAA0D;AAE1D,2CAAyD;AACzD,2CAAqC;AACrC,6CAAyC;AAEzC,6EAAsE;AAEtE,mEAA6D;AAItD,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IAGjC,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;QAFpD,WAAM,GAAG,IAAI,eAAM,CAAC,wBAAsB,CAAC,IAAI,CAAC,CAAA;IAEO,CAAC;IAGnE,AAAN,KAAK,CAAC,MAAM,CACQ,aAAsB,EAChC,SAAgC;QAExC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC,CAAA;QAC1C,OAAO,MAAM,IAAI,CAAC,mBAAmB,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;IAC5E,CAAC;CACF,CAAA;AAbY,wDAAsB;AAM3B;IADL,IAAA,aAAI,EAAC,GAAG,CAAC;IAEP,WAAA,IAAA,qBAAc,GAAE,CAAA;IAChB,WAAA,IAAA,aAAI,GAAE,CAAA;;6CAAY,gDAAqB;;oDAIzC;iCAZU,sBAAsB;IAFlC,IAAA,iBAAO,EAAC,eAAe,CAAC;IACxB,IAAA,mBAAU,EAAC,mBAAmB,CAAC;qCAIoB,2CAAmB;GAH1D,sBAAsB,CAalC"}
@@ -0,0 +1,12 @@
1
+ import { CommandService, DataService, IInvoke } from '@mbc-cqrs-serverless/core';
2
+ import { SurveyAnswerCreateDto } from './dto/survey-answer-create.dto';
3
+ import { SurveyAnswerDataEntity } from './entity/survey-answer-data.entity';
4
+ export declare class SurveyAnswerService {
5
+ private readonly commandService;
6
+ private readonly dataService;
7
+ private readonly logger;
8
+ constructor(commandService: CommandService, dataService: DataService);
9
+ create(createDto: SurveyAnswerCreateDto, opts: {
10
+ invokeContext: IInvoke;
11
+ }): Promise<SurveyAnswerDataEntity>;
12
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ 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;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var SurveyAnswerService_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.SurveyAnswerService = void 0;
14
+ const core_1 = require("@mbc-cqrs-serverless/core");
15
+ const common_1 = require("@nestjs/common");
16
+ const ulid_1 = require("ulid");
17
+ const survey_answer_command_dto_1 = require("./dto/survey-answer-command.dto");
18
+ const survey_answer_data_entity_1 = require("./entity/survey-answer-data.entity");
19
+ const keys_1 = require("./keys");
20
+ let SurveyAnswerService = SurveyAnswerService_1 = class SurveyAnswerService {
21
+ constructor(commandService, dataService) {
22
+ this.commandService = commandService;
23
+ this.dataService = dataService;
24
+ this.logger = new common_1.Logger(SurveyAnswerService_1.name);
25
+ }
26
+ async create(createDto, opts) {
27
+ this.logger.debug('createDto:', createDto);
28
+ const { tenantCode } = (0, core_1.getUserContext)(opts.invokeContext);
29
+ const pk = `SURVEY${core_1.KEY_SEPARATOR}${tenantCode}`;
30
+ const sk = `${keys_1.SURVEY_ANSWER_SK_PREFIX}${core_1.KEY_SEPARATOR}${createDto.attributes.surveyId}${core_1.KEY_SEPARATOR}${(0, ulid_1.ulid)()}`;
31
+ const surveyAnswer = new survey_answer_command_dto_1.SurveyAnswerCommandDto({
32
+ pk,
33
+ sk,
34
+ id: (0, core_1.generateId)(pk, sk),
35
+ tenantCode,
36
+ name: '',
37
+ code: sk,
38
+ attributes: createDto.attributes,
39
+ });
40
+ const item = await this.commandService.publishAsync(surveyAnswer, opts);
41
+ return new survey_answer_data_entity_1.SurveyAnswerDataEntity(item);
42
+ }
43
+ };
44
+ exports.SurveyAnswerService = SurveyAnswerService;
45
+ exports.SurveyAnswerService = SurveyAnswerService = SurveyAnswerService_1 = __decorate([
46
+ (0, common_1.Injectable)(),
47
+ __metadata("design:paramtypes", [core_1.CommandService,
48
+ core_1.DataService])
49
+ ], SurveyAnswerService);
50
+ //# sourceMappingURL=survey-answer.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"survey-answer.service.js","sourceRoot":"","sources":["../src/survey-answer.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,oDAOkC;AAClC,2CAAmD;AACnD,+BAA2B;AAE3B,+EAAwE;AAExE,kFAA2E;AAC3E,iCAAgD;AAGzC,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB;IAG9B,YACmB,cAA8B,EAC9B,WAAwB;QADxB,mBAAc,GAAd,cAAc,CAAgB;QAC9B,gBAAW,GAAX,WAAW,CAAa;QAJ1B,WAAM,GAAG,IAAI,eAAM,CAAC,qBAAmB,CAAC,IAAI,CAAC,CAAA;IAK3D,CAAC;IAEJ,KAAK,CAAC,MAAM,CACV,SAAgC,EAChC,IAAgC;QAEhC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,YAAY,EAAE,SAAS,CAAC,CAAA;QAC1C,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,qBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAA;QACzD,MAAM,EAAE,GAAG,SAAS,oBAAa,GAAG,UAAU,EAAE,CAAA;QAChD,MAAM,EAAE,GAAG,GAAG,8BAAuB,GAAG,oBAAa,GAAG,SAAS,CAAC,UAAU,CAAC,QAAQ,GAAG,oBAAa,GAAG,IAAA,WAAI,GAAE,EAAE,CAAA;QAChH,MAAM,YAAY,GAAG,IAAI,kDAAsB,CAAC;YAC9C,EAAE;YACF,EAAE;YACF,EAAE,EAAE,IAAA,iBAAU,EAAC,EAAE,EAAE,EAAE,CAAC;YACtB,UAAU;YACV,IAAI,EAAE,EAAE;YACR,IAAI,EAAE,EAAE;YACR,UAAU,EAAE,SAAS,CAAC,UAAU;SACjC,CAAC,CAAA;QACF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,CAAC,CAAA;QACvE,OAAO,IAAI,kDAAsB,CAAC,IAA8B,CAAC,CAAA;IACnE,CAAC;CACF,CAAA;AA5BY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAKwB,qBAAc;QACjB,kBAAW;GALhC,mBAAmB,CA4B/B"}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
- // import { CommandModule } from '@mbc-cqrs-serverless/core'
3
- // import { Module } from '@nestjs/common'
4
2
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
5
3
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
6
4
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -9,24 +7,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
9
7
  };
10
8
  Object.defineProperty(exports, "__esModule", { value: true });
11
9
  exports.SurveyTemplateModule = void 0;
12
- // import { SurveyTemplateDataSyncRdsHandler } from './handler/survey-template-rds.handler'
13
- // import { SurveyTemplateController } from './survey-template.controller'
14
- // import { SurveyTemplateService } from './survey-template.service'
15
- // @Module({
16
- // imports: [
17
- // CommandModule.register({
18
- // tableName: 'survey',
19
- // dataSyncHandlers: [SurveyTemplateDataSyncRdsHandler],
20
- // }),
21
- // ],
22
- // controllers: [SurveyTemplateController],
23
- // providers: [SurveyTemplateService],
24
- // exports: [SurveyTemplateService],
25
- // })
26
- // export class SurveyTemplateModule {}
27
10
  const core_1 = require("@mbc-cqrs-serverless/core");
28
11
  const common_1 = require("@nestjs/common");
12
+ const survey_answer_rds_handler_1 = require("./handler/survey-answer-rds.handler");
29
13
  const survey_template_rds_handler_1 = require("./handler/survey-template-rds.handler");
14
+ const survey_answer_controller_1 = require("./survey-answer.controller");
15
+ const survey_answer_service_1 = require("./survey-answer.service");
30
16
  const survey_template_controller_1 = require("./survey-template.controller");
31
17
  const survey_template_module_definition_1 = require("./survey-template.module-definition");
32
18
  const survey_template_service_1 = require("./survey-template.service");
@@ -40,7 +26,7 @@ let SurveyTemplateModule = class SurveyTemplateModule extends survey_template_mo
40
26
  if (!module.controllers) {
41
27
  module.controllers = [];
42
28
  }
43
- module.controllers.push(survey_template_controller_1.SurveyTemplateController);
29
+ module.controllers.push(survey_template_controller_1.SurveyTemplateController, survey_answer_controller_1.SurveyAnswerController);
44
30
  if (!module.providers) {
45
31
  module.providers = [];
46
32
  }
@@ -56,6 +42,7 @@ let SurveyTemplateModule = class SurveyTemplateModule extends survey_template_mo
56
42
  tableName: 'survey',
57
43
  dataSyncHandlers: options?.dataSyncHandlers ?? [
58
44
  survey_template_rds_handler_1.SurveyTemplateDataSyncRdsHandler,
45
+ survey_answer_rds_handler_1.SurveyAnswerDataSyncRdsHandler,
59
46
  ],
60
47
  }));
61
48
  return {
@@ -69,8 +56,8 @@ exports.SurveyTemplateModule = SurveyTemplateModule;
69
56
  exports.SurveyTemplateModule = SurveyTemplateModule = __decorate([
70
57
  (0, common_1.Module)({
71
58
  imports: [core_1.DataStoreModule, core_1.QueueModule],
72
- providers: [survey_template_service_1.SurveyTemplateService],
73
- exports: [survey_template_service_1.SurveyTemplateService],
59
+ providers: [survey_template_service_1.SurveyTemplateService, survey_answer_service_1.SurveyAnswerService],
60
+ exports: [survey_template_service_1.SurveyTemplateService, survey_answer_service_1.SurveyAnswerService],
74
61
  })
75
62
  ], SurveyTemplateModule);
76
63
  //# sourceMappingURL=survey-template.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"survey-template.module.js","sourceRoot":"","sources":["../src/survey-template.module.ts"],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AI,EAAE,CAAC,CAAC,CAAA;YAC3C,OAAO,CAAC,IAAI,CACV,oBAAa,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,QAAQ;gBACnB,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,IAAI;oBAC7C,8DAAgC;iBACjC;aACF,CAAC,CACH,CAAA;YACD,OAAO;gBACL,GAAG,MAAM;gBACT,OAAO;aACR,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AAzCY,oDAAoB;+BAApB,oBAAoB;IALhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,sBAAe,EAAE,kBAAW,CAAC;QACvC,SAAS,EAAE,CAAC,+CAAqB,CAAC;QAClC,OAAO,EAAE,CAAC,+CAAqB,CAAC;KACjC,CAAC;GACW,oBAAoB,CAyChC"}
1
+ {"version":3,"file":"survey-template.module.js","sourceRoot":"","sources":["../src/survey-template.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,oDAIkC;AAClC,2CAAsD;AAEtD,mFAAoF;AACpF,uFAAwF;AACxF,yEAAmE;AACnE,mEAA6D;AAC7D,6EAAuE;AACvE,2FAI4C;AAC5C,uEAAiE;AAO1D,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,2DAAuB;IAC/D,MAAM,CAAC,QAAQ,CAAC,OAA4B;QAC1C,MAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;QAEtC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;YAC7B,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;gBAC3B,MAAM,IAAI,KAAK,CACb,+DAA+D,CAChE,CAAA;YACH,CAAC;YACD,IAAI,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC;gBACxB,MAAM,CAAC,WAAW,GAAG,EAAE,CAAA;YACzB,CAAC;YACD,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,qDAAwB,EAAE,iDAAsB,CAAC,CAAA;YAEzE,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;gBACtB,MAAM,CAAC,SAAS,GAAG,EAAE,CAAA;YACvB,CAAC;YACD,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC;gBACpB,OAAO,EAAE,kDAAc;gBACvB,WAAW,EAAE,OAAO,CAAC,aAAa;aACnC,CAAC,CAAA;YACF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;gBACpB,MAAM,CAAC,OAAO,GAAG,EAAE,CAAA;YACrB,CAAC;YAED,MAAM,OAAO,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,CAAA;YAC3C,OAAO,CAAC,IAAI,CACV,oBAAa,CAAC,QAAQ,CAAC;gBACrB,SAAS,EAAE,QAAQ;gBACnB,gBAAgB,EAAE,OAAO,EAAE,gBAAgB,IAAI;oBAC7C,8DAAgC;oBAChC,0DAA8B;iBAC/B;aACF,CAAC,CACH,CAAA;YACD,OAAO;gBACL,GAAG,MAAM;gBACT,OAAO;aACR,CAAA;QACH,CAAC;IACH,CAAC;CACF,CAAA;AA1CY,oDAAoB;+BAApB,oBAAoB;IALhC,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,sBAAe,EAAE,kBAAW,CAAC;QACvC,SAAS,EAAE,CAAC,+CAAqB,EAAE,2CAAmB,CAAC;QACvD,OAAO,EAAE,CAAC,+CAAqB,EAAE,2CAAmB,CAAC;KACtD,CAAC;GACW,oBAAoB,CA0ChC"}
@@ -90,7 +90,11 @@ let SurveyTemplateService = SurveyTemplateService_1 = class SurveyTemplateServic
90
90
  type: keys_1.SURVEY_TEMPLATE_SK_PREFIX,
91
91
  version: core_1.VERSION_FIRST,
92
92
  name: createDto.name,
93
- attributes: createDto.attributes,
93
+ attributes: {
94
+ ...createDto.attributes,
95
+ description: '',
96
+ additionalProperties: undefined,
97
+ },
94
98
  };
95
99
  this.logger.debug('commandService:' + this.commandService.tableName);
96
100
  const item = await this.commandService.publishAsync(commandDto, {
@@ -1 +1 @@
1
- {"version":3,"file":"survey-template.service.js","sourceRoot":"","sources":["../src/survey-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAWkC;AAClC,2CAMuB;AACvB,+BAA+B;AAC/B,+BAA2B;AAE3B,mFAA4E;AAG5E,sFAA+E;AAC/E,gGAAwF;AACxF,iCAAkD;AAClD,2FAAoE;AACpE,mCAA8C;AAGvC,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAGhC,YAEE,aAAmC,EAClB,cAA8B,EAC9B,WAAwB;QAFxB,kBAAa,GAAb,aAAa,CAAK;QAClB,mBAAc,GAAd,cAAc,CAAgB;QAC9B,gBAAW,GAAX,WAAW,CAAa;QAN1B,WAAM,GAAG,IAAI,eAAM,CAAC,uBAAqB,CAAC,IAAI,CAAC,CAAA;IAO7D,CAAC;IAEJ,KAAK,CAAC,UAAU,CACd,UAAkB,EAClB,SAAoB;QAEpB,MAAM,KAAK,GAAQ;YACjB,SAAS,EAAE,KAAK;YAChB,UAAU;SACX,CAAA;QACD,IAAI,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC;YAC9B,KAAK,CAAC,EAAE,GAAG;gBACT,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,EAAE;gBACrE;oBACE,WAAW,EAAE;wBACX,QAAQ,EAAE,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE;wBAClC,IAAI,EAAE,aAAa;qBACpB;iBACF;aACF,CAAA;QACH,CAAC;QACD,IAAI,SAAS,CAAC,EAAE,EAAE,CAAC;YACjB,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAAA;QACzB,CAAC;QACD,IAAI,SAAS,CAAC,EAAE,EAAE,CAAC;YACjB,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAAA;QACzB,CAAC;QAC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I,4BAAmB,CAAC,qBAAqB,CAAC,CAAA;QACtD,CAAC;QACD,MAAM,IAAI,GAAG,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAC1C,SAAS,CACV,CAA6B,CAAA;QAC9B,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,0BAAiB,CAAC,4BAA4B,CAAC,CAAA;QAC3D,CAAC;QACD,MAAM,UAAU,GAAG,IAAI,sDAAwB,CAAC;YAC9C,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI;SAChB,CAAC,CAAA;QAEF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,yBAAyB,CAC9D,UAAU,EACV;YACE,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,MAAM,EAAE,IAAA,uBAAgB,EACtB,IAAA,eAAQ,EAAC,SAAS,CAAC,EACnB,IAAI,CAAC,WAAW,CAAC,IAAI,EACrB,QAAQ,CACT;SACF,CACF,CAAA;QACD,OAAO,IAAI,sDAAwB,CAAC,IAAgC,CAAC,CAAA;IACvE,CAAC;CACF,CAAA;AAnLY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,kDAAc,CAAC,CAAA;6CAEU,qBAAc;QACjB,kBAAW;GAPhC,qBAAqB,CAmLjC"}
1
+ {"version":3,"file":"survey-template.service.js","sourceRoot":"","sources":["../src/survey-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAWkC;AAClC,2CAMuB;AACvB,+BAA+B;AAC/B,+BAA2B;AAE3B,mFAA4E;AAG5E,sFAA+E;AAC/E,gGAAwF;AACxF,iCAAkD;AAClD,2FAAoE;AACpE,mCAA8C;AAGvC,IAAM,qBAAqB,6BAA3B,MAAM,qBAAqB;IAGhC,YAEE,aAAm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AAG,IAAI,sDAAwB,CAAC;YAC9C,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI;SAChB,CAAC,CAAA;QAEF,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,yBAAyB,CAC9D,UAAU,EACV;YACE,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,MAAM,EAAE,IAAA,uBAAgB,EACtB,IAAA,eAAQ,EAAC,SAAS,CAAC,EACnB,IAAI,CAAC,WAAW,CAAC,IAAI,EACrB,QAAQ,CACT;SACF,CACF,CAAA;QACD,OAAO,IAAI,sDAAwB,CAAC,IAAgC,CAAC,CAAA;IACvE,CAAC;CACF,CAAA;AAvLY,sDAAqB;gCAArB,qBAAqB;IADjC,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,kDAAc,CAAC,CAAA;6CAEU,qBAAc;QACjB,kBAAW;GAPhC,qBAAqB,CAuLjC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mbc-cqrs-serverless/survey-template",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "Survey module",
5
5
  "keywords": [
6
6
  "mbc",
@@ -41,8 +41,8 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@mbc-cqrs-serverless/core": "1.0.7",
45
- "@mbc-cqrs-serverless/master": "1.0.7"
44
+ "@mbc-cqrs-serverless/core": "1.0.8",
45
+ "@mbc-cqrs-serverless/master": "1.0.8"
46
46
  },
47
- "gitHead": "de32af045f99009105cf0df9d59dd8daeaca1232"
47
+ "gitHead": "b98016f528a1df98ff6a1936ee351ec56a9764eb"
48
48
  }