@mbc-cqrs-serverless/master 0.1.68-beta.0 → 0.1.69-beta.0

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 (82) hide show
  1. package/dist/constants/index.d.ts +1 -0
  2. package/dist/constants/index.js +2 -1
  3. package/dist/constants/index.js.map +1 -1
  4. package/dist/controllers/master-data.controller.d.ts +6 -0
  5. package/dist/controllers/master-data.controller.js +74 -0
  6. package/dist/controllers/master-data.controller.js.map +1 -1
  7. package/dist/controllers/master-setting.controller.d.ts +7 -0
  8. package/dist/controllers/master-setting.controller.js +86 -0
  9. package/dist/controllers/master-setting.controller.js.map +1 -1
  10. package/dist/decorators/index.d.ts +1 -0
  11. package/dist/decorators/index.js +18 -0
  12. package/dist/decorators/index.js.map +1 -0
  13. package/dist/decorators/key.d.ts +1 -0
  14. package/dist/decorators/key.js +34 -0
  15. package/dist/decorators/key.js.map +1 -0
  16. package/dist/dto/index.d.ts +1 -0
  17. package/dist/dto/index.js +1 -0
  18. package/dist/dto/index.js.map +1 -1
  19. package/dist/dto/master-copy/index.d.ts +8 -0
  20. package/dist/dto/master-copy/index.js +25 -0
  21. package/dist/dto/master-copy/index.js.map +1 -0
  22. package/dist/dto/master-copy/master-copy.dto.d.ts +19 -0
  23. package/dist/dto/master-copy/master-copy.dto.js +92 -0
  24. package/dist/dto/master-copy/master-copy.dto.js.map +1 -0
  25. package/dist/dto/master-copy/master-data-create.dto.d.ts +7 -0
  26. package/dist/dto/master-copy/master-data-create.dto.js +43 -0
  27. package/dist/dto/master-copy/master-data-create.dto.js.map +1 -0
  28. package/dist/dto/master-copy/master-data-search.dto.d.ts +6 -0
  29. package/dist/dto/master-copy/master-data-search.dto.js +39 -0
  30. package/dist/dto/master-copy/master-data-search.dto.js.map +1 -0
  31. package/dist/dto/master-copy/master-data-update.dto.d.ts +6 -0
  32. package/dist/dto/master-copy/master-data-update.dto.js +41 -0
  33. package/dist/dto/master-copy/master-data-update.dto.js.map +1 -0
  34. package/dist/dto/master-copy/master-rds-list.entity.d.ts +6 -0
  35. package/dist/dto/master-copy/master-rds-list.entity.js +33 -0
  36. package/dist/dto/master-copy/master-rds-list.entity.js.map +1 -0
  37. package/dist/dto/master-copy/master-rds.entity.d.ts +26 -0
  38. package/dist/dto/master-copy/master-rds.entity.js +116 -0
  39. package/dist/dto/master-copy/master-rds.entity.js.map +1 -0
  40. package/dist/dto/master-copy/master-setting-search.dto.d.ts +6 -0
  41. package/dist/dto/master-copy/master-setting-search.dto.js +39 -0
  42. package/dist/dto/master-copy/master-setting-search.dto.js.map +1 -0
  43. package/dist/dto/master-copy/master-setting-update.dto.d.ts +4 -0
  44. package/dist/dto/master-copy/master-setting-update.dto.js +31 -0
  45. package/dist/dto/master-copy/master-setting-update.dto.js.map +1 -0
  46. package/dist/helpers/rds.d.ts +4 -0
  47. package/dist/helpers/rds.js +19 -0
  48. package/dist/helpers/rds.js.map +1 -0
  49. package/dist/index.d.ts +2 -0
  50. package/dist/index.js +2 -0
  51. package/dist/index.js.map +1 -1
  52. package/dist/interfaces/master-data.interface.d.ts +2 -2
  53. package/dist/master.module-definition.d.ts +2 -0
  54. package/dist/master.module-definition.js +2 -1
  55. package/dist/master.module-definition.js.map +1 -1
  56. package/dist/master.module.js +10 -0
  57. package/dist/master.module.js.map +1 -1
  58. package/dist/services/master-data.service.d.ts +10 -9
  59. package/dist/services/master-data.service.js +112 -4
  60. package/dist/services/master-data.service.js.map +1 -1
  61. package/dist/services/master-setting.service.d.ts +11 -3
  62. package/dist/services/master-setting.service.js +98 -2
  63. package/dist/services/master-setting.service.js.map +1 -1
  64. package/dist/services/master-setting.service.spec.js +11 -0
  65. package/dist/services/master-setting.service.spec.js.map +1 -1
  66. package/dist/update-scheme.js +1 -0
  67. package/dist/update-scheme.js.map +1 -1
  68. package/package.json +5 -4
  69. package/src/templates/master/handler/master-sfn-task.handler.ts +4 -6
  70. package/src/templates/master/master-setting.controller.ts +4 -84
  71. package/src/templates/master/master-setting.service.ts +4 -150
  72. package/src/templates/master/master.module.ts +7 -12
  73. package/src/templates/master/dto/master-copy.dto.ts +0 -73
  74. package/src/templates/master/dto/master-data-create.dto.ts +0 -20
  75. package/src/templates/master/dto/master-data-search.dto.ts +0 -20
  76. package/src/templates/master/dto/master-data-update.dto.ts +0 -25
  77. package/src/templates/master/dto/master-rds-list.entity.ts +0 -15
  78. package/src/templates/master/dto/master-rds.entity.ts +0 -77
  79. package/src/templates/master/dto/master-setting-search.dto.ts +0 -20
  80. package/src/templates/master/dto/master-setting-update.dto.ts +0 -11
  81. package/src/templates/master/master-data.controller.ts +0 -98
  82. package/src/templates/master/master-data.service.ts +0 -181
@@ -4,3 +4,4 @@ export declare const SETTING_TENANT_PREFIX = "MASTER";
4
4
  export declare const MASTER_PK_PREFIX = "MASTER";
5
5
  export declare const SETTING_SK_PREFIX = "MASTER_SETTING";
6
6
  export declare const MASTER_COPY_SK_PREFIX = "MASTER_COPY";
7
+ export declare const DATA_SK_PREFIX = "MASTER_DATA";
@@ -1,10 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MASTER_COPY_SK_PREFIX = exports.SETTING_SK_PREFIX = exports.MASTER_PK_PREFIX = exports.SETTING_TENANT_PREFIX = exports.TABLE_NAME = exports.TENANT_SYSTEM_PREFIX = void 0;
3
+ exports.DATA_SK_PREFIX = exports.MASTER_COPY_SK_PREFIX = exports.SETTING_SK_PREFIX = exports.MASTER_PK_PREFIX = exports.SETTING_TENANT_PREFIX = exports.TABLE_NAME = exports.TENANT_SYSTEM_PREFIX = void 0;
4
4
  exports.TENANT_SYSTEM_PREFIX = 'TENANT';
5
5
  exports.TABLE_NAME = 'master';
6
6
  exports.SETTING_TENANT_PREFIX = 'MASTER';
7
7
  exports.MASTER_PK_PREFIX = 'MASTER';
8
8
  exports.SETTING_SK_PREFIX = 'MASTER_SETTING';
9
9
  exports.MASTER_COPY_SK_PREFIX = 'MASTER_COPY';
10
+ exports.DATA_SK_PREFIX = 'MASTER_DATA';
10
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,QAAQ,CAAA;AAC/B,QAAA,UAAU,GAAG,QAAQ,CAAA;AACrB,QAAA,qBAAqB,GAAG,QAAQ,CAAA;AAChC,QAAA,gBAAgB,GAAG,QAAQ,CAAA;AAC3B,QAAA,iBAAiB,GAAG,gBAAgB,CAAA;AACpC,QAAA,qBAAqB,GAAG,aAAa,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":";;;AAAa,QAAA,oBAAoB,GAAG,QAAQ,CAAA;AAC/B,QAAA,UAAU,GAAG,QAAQ,CAAA;AACrB,QAAA,qBAAqB,GAAG,QAAQ,CAAA;AAChC,QAAA,gBAAgB,GAAG,QAAQ,CAAA;AAC3B,QAAA,iBAAiB,GAAG,gBAAgB,CAAA;AACpC,QAAA,qBAAqB,GAAG,aAAa,CAAA;AACrC,QAAA,cAAc,GAAG,aAAa,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { DetailDto, IInvoke } from '@mbc-cqrs-serverless/core';
2
+ import { CustomMasterDataSearchDto, MasterDataCreateDto, MasterDataUpdateDto } from '../dto';
2
3
  import { CreateMasterDataDto } from '../dto/master-data/data-create.dto';
3
4
  import { MasterDataSearchDto } from '../dto/master-data/data-search.dto';
4
5
  import { UpdateDataSettingDto } from '../dto/master-data/data-update.dto';
@@ -8,9 +9,14 @@ export declare class MasterDataController {
8
9
  private readonly logger;
9
10
  constructor(masterDataService: MasterDataService);
10
11
  listData(ctx: IInvoke, searchDto: MasterDataSearchDto): Promise<import("../entities").MasterDataListEntity>;
12
+ getDetailById(key: DetailDto): Promise<import("../dto").MasterRdsEntity>;
11
13
  getDetail(ctx: IInvoke, key: DetailDto): Promise<import("../entities").MasterDataEntity>;
12
14
  createDataSetting(invokeContext: IInvoke, createDto: CreateMasterDataDto): Promise<import("../entities").MasterDataEntity>;
13
15
  updateDataSetting(invokeContext: IInvoke, key: DetailDto, updateDto: UpdateDataSettingDto): Promise<import("../entities").MasterDataEntity>;
14
16
  deleteDataSetting(invokeContext: IInvoke, key: DetailDto): Promise<import("../entities").MasterDataEntity>;
15
17
  checkExistCode(ctx: IInvoke, settingCode: string, code: string): Promise<boolean>;
18
+ list(searchDto: CustomMasterDataSearchDto, invokeContext: IInvoke): Promise<import("../dto").MasterRdsListEntity>;
19
+ create(createDto: MasterDataCreateDto, invokeContext: IInvoke): Promise<import("../entities").MasterDataEntity>;
20
+ update(key: DetailDto, updateDto: MasterDataUpdateDto, invokeContext: IInvoke): Promise<import("../entities").MasterDataEntity>;
21
+ delete(key: DetailDto, invokeContext: IInvoke): Promise<import("../entities").MasterDataEntity>;
16
22
  }
@@ -18,9 +18,12 @@ const openapi = require("@nestjs/swagger");
18
18
  const core_1 = require("@mbc-cqrs-serverless/core");
19
19
  const common_1 = require("@nestjs/common");
20
20
  const swagger_1 = require("@nestjs/swagger");
21
+ const decorators_1 = require("../decorators");
22
+ const dto_1 = require("../dto");
21
23
  const data_create_dto_1 = require("../dto/master-data/data-create.dto");
22
24
  const data_search_dto_1 = require("../dto/master-data/data-search.dto");
23
25
  const data_update_dto_1 = require("../dto/master-data/data-update.dto");
26
+ const helpers_1 = require("../helpers");
24
27
  const master_data_service_1 = require("../services/master-data.service");
25
28
  let MasterDataController = MasterDataController_1 = class MasterDataController {
26
29
  constructor(masterDataService) {
@@ -30,6 +33,9 @@ let MasterDataController = MasterDataController_1 = class MasterDataController {
30
33
  async listData(ctx, searchDto) {
31
34
  return await this.masterDataService.list(searchDto);
32
35
  }
36
+ async getDetailById(key) {
37
+ return this.masterDataService.getDetail(key);
38
+ }
33
39
  async getDetail(ctx, key) {
34
40
  return await this.masterDataService.get(key);
35
41
  }
@@ -48,6 +54,28 @@ let MasterDataController = MasterDataController_1 = class MasterDataController {
48
54
  const userContext = (0, core_1.getUserContext)(ctx);
49
55
  return this.masterDataService.checkExistCode(userContext.tenantCode, settingCode, code);
50
56
  }
57
+ async list(searchDto, invokeContext) {
58
+ return this.masterDataService.listByRds(searchDto, { invokeContext });
59
+ }
60
+ async create(createDto, invokeContext) {
61
+ return this.masterDataService.createSetting(createDto, invokeContext);
62
+ }
63
+ async update(key, updateDto, invokeContext) {
64
+ const userContext = (0, core_1.getUserContext)(invokeContext);
65
+ const { tenantCode } = (0, helpers_1.parsePk)(key.pk);
66
+ if (userContext.tenantCode !== tenantCode) {
67
+ throw new common_1.BadRequestException('Invalid tenant code');
68
+ }
69
+ return this.masterDataService.updateSetting(key, updateDto, invokeContext);
70
+ }
71
+ async delete(key, invokeContext) {
72
+ const userContext = (0, core_1.getUserContext)(invokeContext);
73
+ const { tenantCode } = (0, helpers_1.parsePk)(key.pk);
74
+ if (userContext.tenantCode !== tenantCode) {
75
+ throw new common_1.BadRequestException('Invalid tenant code');
76
+ }
77
+ return this.masterDataService.deleteSetting(key, invokeContext);
78
+ }
51
79
  };
52
80
  exports.MasterDataController = MasterDataController;
53
81
  __decorate([
@@ -59,6 +87,14 @@ __decorate([
59
87
  __metadata("design:paramtypes", [Object, data_search_dto_1.MasterDataSearchDto]),
60
88
  __metadata("design:returntype", Promise)
61
89
  ], MasterDataController.prototype, "listData", null);
90
+ __decorate([
91
+ (0, common_1.Get)('/detail/:id'),
92
+ openapi.ApiResponse({ status: 200, type: require("../dto/master-copy/master-rds.entity").MasterRdsEntity }),
93
+ __param(0, (0, decorators_1.DetailKeys)()),
94
+ __metadata("design:type", Function),
95
+ __metadata("design:paramtypes", [core_1.DetailDto]),
96
+ __metadata("design:returntype", Promise)
97
+ ], MasterDataController.prototype, "getDetailById", null);
62
98
  __decorate([
63
99
  (0, common_1.Get)('/:pk/:sk'),
64
100
  openapi.ApiResponse({ status: 200, type: require("../entities/master-data/master-data.entity").MasterDataEntity }),
@@ -107,6 +143,44 @@ __decorate([
107
143
  __metadata("design:paramtypes", [Object, String, String]),
108
144
  __metadata("design:returntype", Promise)
109
145
  ], MasterDataController.prototype, "checkExistCode", null);
146
+ __decorate([
147
+ (0, common_1.Get)('/list'),
148
+ openapi.ApiResponse({ status: 200, type: require("../dto/master-copy/master-rds-list.entity").MasterRdsListEntity }),
149
+ __param(0, (0, common_1.Query)()),
150
+ __param(1, (0, core_1.INVOKE_CONTEXT)()),
151
+ __metadata("design:type", Function),
152
+ __metadata("design:paramtypes", [dto_1.CustomMasterDataSearchDto, Object]),
153
+ __metadata("design:returntype", Promise)
154
+ ], MasterDataController.prototype, "list", null);
155
+ __decorate([
156
+ (0, common_1.Post)('/create'),
157
+ openapi.ApiResponse({ status: 201, type: require("../entities/master-data/master-data.entity").MasterDataEntity }),
158
+ __param(0, (0, common_1.Body)()),
159
+ __param(1, (0, core_1.INVOKE_CONTEXT)()),
160
+ __metadata("design:type", Function),
161
+ __metadata("design:paramtypes", [dto_1.MasterDataCreateDto, Object]),
162
+ __metadata("design:returntype", Promise)
163
+ ], MasterDataController.prototype, "create", null);
164
+ __decorate([
165
+ (0, common_1.Put)('/:id'),
166
+ openapi.ApiResponse({ status: 200, type: require("../entities/master-data/master-data.entity").MasterDataEntity }),
167
+ __param(0, (0, decorators_1.DetailKeys)()),
168
+ __param(1, (0, common_1.Body)()),
169
+ __param(2, (0, core_1.INVOKE_CONTEXT)()),
170
+ __metadata("design:type", Function),
171
+ __metadata("design:paramtypes", [core_1.DetailDto,
172
+ dto_1.MasterDataUpdateDto, Object]),
173
+ __metadata("design:returntype", Promise)
174
+ ], MasterDataController.prototype, "update", null);
175
+ __decorate([
176
+ (0, common_1.Delete)('/:id'),
177
+ openapi.ApiResponse({ status: 200, type: require("../entities/master-data/master-data.entity").MasterDataEntity }),
178
+ __param(0, (0, decorators_1.DetailKeys)()),
179
+ __param(1, (0, core_1.INVOKE_CONTEXT)()),
180
+ __metadata("design:type", Function),
181
+ __metadata("design:paramtypes", [core_1.DetailDto, Object]),
182
+ __metadata("design:returntype", Promise)
183
+ ], MasterDataController.prototype, "delete", null);
110
184
  exports.MasterDataController = MasterDataController = MasterDataController_1 = __decorate([
111
185
  (0, common_1.Controller)('api/master-data'),
112
186
  (0, swagger_1.ApiTags)('master-data'),
@@ -1 +1 @@
1
- {"version":3,"file":"master-data.controller.js","sourceRoot":"","sources":["../../src/controllers/master-data.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAKkC;AAClC,2CAWuB;AACvB,6CAAyC;AAEzC,wEAAwE;AACxE,wEAAwE;AACxE,wEAAyE;AACzE,yEAAmE;AAI5D,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAG/B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAFhD,WAAM,GAAG,IAAI,eAAM,CAAC,sBAAoB,CAAC,IAAI,CAAC,CAAA;IAEK,CAAC;IAG/D,AAAN,KAAK,CAAC,QAAQ,CACM,GAAY,EACrB,SAA8B;QAEvC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrD,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAmB,GAAY,EAAW,GAAc;QACrE,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC9C,CAAC;IAGK,AAAN,KAAK,CAAC,iBAAiB,CACH,aAAsB,EAChC,SAA8B;QAEtC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;IAC1E,CAAC;IAGK,AAAN,KAAK,CAAC,iBAAiB,CACH,aAAsB,EAC/B,GAAc,EACf,SAA+B;QAEvC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE;YACzD,aAAa;SACd,CAAC,CAAA;IACJ,CA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CAAC;;IAErC,WAAA,IAAA,qBAAc,GAAE,CAAA;IAChB,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;;;;0DAQf;+BAzDU,oBAAoB;IAFhC,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,iBAAO,EAAC,aAAa,CAAC;qCAI2B,uCAAiB;GAHtD,oBAAoB,CA0DhC"}
1
+ {"version":3,"file":"master-data.controller.js","sourceRoot":"","sources":["../../src/controllers/master-data.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oDAKkC;AAClC,2CAYuB;AACvB,6CAAyC;AAEzC,8CAA0C;AAC1C,gCAIe;AACf,wEAAwE;AACxE,wEAAwE;AACxE,wEAAyE;AACzE,wCAAoC;AACpC,yEAAmE;AAI5D,IAAM,oBAAoB,4BAA1B,MAAM,oBAAoB;IAG/B,YAA6B,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;QAFhD,WAAM,GAAG,IAAI,eAAM,CAAC,sBAAoB,CAAC,IAAI,CAAC,CAAA;IAEK,CAAC;IAG/D,AAAN,KAAK,CAAC,QAAQ,CACM,GAAY,EACrB,SAA8B;QAEvC,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACrD,CAAC;IAGK,AAAN,KAAK,CAAC,aAAa,CAAe,GAAc;QAC9C,OAAO,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;IAC9C,CAAC;IAGK,AAAN,KAAK,CAAC,SAAS,CAAmB,GAAY,EAAW,GAAc;QACrE,OAAO,MAAM,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAC9C,CAAC;IAGK,AAAN,KAAK,CAAC,iBAAiB,CACH,aAAsB,EAChC,SAA8B;QAEtC,OAAO,MAAM,IAAI,CAAC,iBAAiB,C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, IInvoke } from '@mbc-cqrs-serverless/core';
2
+ import { MasterSettingSearchDto, MasterSettingUpdateDto } from '../dto';
2
3
  import { CommonSettingDto } from '../dto/master-setting/common-setting-create.dto';
3
4
  import { GroupSettingDto } from '../dto/master-setting/group-setting-create.dto';
4
5
  import { GetSettingDto } from '../dto/master-setting/setting-get.dto';
@@ -9,6 +10,7 @@ import { MasterSettingService } from '../services/master-setting.service';
9
10
  export declare class MasterSettingController {
10
11
  private readonly masterSettingService;
11
12
  constructor(masterSettingService: MasterSettingService);
13
+ list(searchDto: MasterSettingSearchDto, invokeContext: IInvoke): Promise<import("../dto").MasterRdsListEntity>;
12
14
  getSettingDetail(dto: GetSettingDto, invokeContext: IInvoke): Promise<import("../entities").MasterSettingEntity>;
13
15
  createCommonTenantSetting(invokeContext: IInvoke, dto: CommonSettingDto): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
14
16
  createSettingTenant(invokeContext: IInvoke, dto: TenantSettingDto): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
@@ -16,4 +18,9 @@ export declare class MasterSettingController {
16
18
  createUserSetting(invokeContext: IInvoke, dto: UserSettingDto): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
17
19
  updateTenant(key: DetailDto, dto: UpdateSettingDto, invokeContext: IInvoke): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
18
20
  deleteTenant(dto: DetailDto, invokeContext: IInvoke): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
21
+ getDetailById(key: DetailDto): Promise<import("../dto").MasterRdsEntity>;
22
+ create(createDto: CommonSettingDto, invokeContext: IInvoke): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
23
+ update(key: DetailDto, updateDto: MasterSettingUpdateDto, invokeContext: IInvoke): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
24
+ delete(key: DetailDto, invokeContext: IInvoke): Promise<import("@mbc-cqrs-serverless/core").CommandModel>;
25
+ checkExistCode(code: string, invokeContext: IInvoke): Promise<boolean>;
19
26
  }
@@ -17,17 +17,23 @@ const openapi = require("@nestjs/swagger");
17
17
  const core_1 = require("@mbc-cqrs-serverless/core");
18
18
  const common_1 = require("@nestjs/common");
19
19
  const swagger_1 = require("@nestjs/swagger");
20
+ const decorators_1 = require("../decorators");
21
+ const dto_1 = require("../dto");
20
22
  const common_setting_create_dto_1 = require("../dto/master-setting/common-setting-create.dto");
21
23
  const group_setting_create_dto_1 = require("../dto/master-setting/group-setting-create.dto");
22
24
  const setting_get_dto_1 = require("../dto/master-setting/setting-get.dto");
23
25
  const tenant_setting_create_dto_1 = require("../dto/master-setting/tenant-setting-create.dto");
24
26
  const update_setting_dto_1 = require("../dto/master-setting/update.setting.dto");
25
27
  const user_setting_create_dto_1 = require("../dto/master-setting/user-setting-create.dto");
28
+ const helpers_1 = require("../helpers");
26
29
  const master_setting_service_1 = require("../services/master-setting.service");
27
30
  let MasterSettingController = class MasterSettingController {
28
31
  constructor(masterSettingService) {
29
32
  this.masterSettingService = masterSettingService;
30
33
  }
34
+ async list(searchDto, invokeContext) {
35
+ return this.masterSettingService.list(searchDto, invokeContext);
36
+ }
31
37
  async getSettingDetail(dto, invokeContext) {
32
38
  return await this.masterSettingService.getSetting(dto, { invokeContext });
33
39
  }
@@ -59,8 +65,42 @@ let MasterSettingController = class MasterSettingController {
59
65
  async deleteTenant(dto, invokeContext) {
60
66
  return await this.masterSettingService.deleteSetting(dto, { invokeContext });
61
67
  }
68
+ async getDetailById(key) {
69
+ return this.masterSettingService.getDetail(key);
70
+ }
71
+ async create(createDto, invokeContext) {
72
+ return this.masterSettingService.create(createDto, invokeContext);
73
+ }
74
+ async update(key, updateDto, invokeContext) {
75
+ const userContext = (0, core_1.getUserContext)(invokeContext);
76
+ const { tenantCode } = (0, helpers_1.parsePk)(key.pk);
77
+ if (userContext.tenantCode !== tenantCode) {
78
+ throw new common_1.BadRequestException('Invalid tenant code');
79
+ }
80
+ return this.masterSettingService.update(key, updateDto, invokeContext);
81
+ }
82
+ async delete(key, invokeContext) {
83
+ const userContext = (0, core_1.getUserContext)(invokeContext);
84
+ const { tenantCode } = (0, helpers_1.parsePk)(key.pk);
85
+ if (userContext.tenantCode !== tenantCode) {
86
+ throw new common_1.BadRequestException('Invalid tenant code');
87
+ }
88
+ return this.masterSettingService.delete(key, invokeContext);
89
+ }
90
+ async checkExistCode(code, invokeContext) {
91
+ return this.masterSettingService.checkExistCode(code, invokeContext);
92
+ }
62
93
  };
63
94
  exports.MasterSettingController = MasterSettingController;
95
+ __decorate([
96
+ (0, common_1.Get)('/list'),
97
+ openapi.ApiResponse({ status: 200, type: require("../dto/master-copy/master-rds-list.entity").MasterRdsListEntity }),
98
+ __param(0, (0, common_1.Query)()),
99
+ __param(1, (0, core_1.INVOKE_CONTEXT)()),
100
+ __metadata("design:type", Function),
101
+ __metadata("design:paramtypes", [dto_1.MasterSettingSearchDto, Object]),
102
+ __metadata("design:returntype", Promise)
103
+ ], MasterSettingController.prototype, "list", null);
64
104
  __decorate([
65
105
  (0, common_1.Get)('/:code'),
66
106
  openapi.ApiResponse({ status: 200, type: require("../entities/master-setting/master-setting.entity").MasterSettingEntity }),
@@ -126,6 +166,52 @@ __decorate([
126
166
  __metadata("design:paramtypes", [core_1.DetailDto, Object]),
127
167
  __metadata("design:returntype", Promise)
128
168
  ], MasterSettingController.prototype, "deleteTenant", null);
169
+ __decorate([
170
+ (0, common_1.Get)('/detail/:id'),
171
+ openapi.ApiResponse({ status: 200, type: require("../dto/master-copy/master-rds.entity").MasterRdsEntity }),
172
+ __param(0, (0, decorators_1.DetailKeys)()),
173
+ __metadata("design:type", Function),
174
+ __metadata("design:paramtypes", [core_1.DetailDto]),
175
+ __metadata("design:returntype", Promise)
176
+ ], MasterSettingController.prototype, "getDetailById", null);
177
+ __decorate([
178
+ (0, common_1.Post)('/'),
179
+ openapi.ApiResponse({ status: 201, type: Object }),
180
+ __param(0, (0, common_1.Body)()),
181
+ __param(1, (0, core_1.INVOKE_CONTEXT)()),
182
+ __metadata("design:type", Function),
183
+ __metadata("design:paramtypes", [common_setting_create_dto_1.CommonSettingDto, Object]),
184
+ __metadata("design:returntype", Promise)
185
+ ], MasterSettingController.prototype, "create", null);
186
+ __decorate([
187
+ (0, common_1.Put)('/:id'),
188
+ openapi.ApiResponse({ status: 200, type: Object }),
189
+ __param(0, (0, decorators_1.DetailKeys)()),
190
+ __param(1, (0, common_1.Body)()),
191
+ __param(2, (0, core_1.INVOKE_CONTEXT)()),
192
+ __metadata("design:type", Function),
193
+ __metadata("design:paramtypes", [core_1.DetailDto,
194
+ dto_1.MasterSettingUpdateDto, Object]),
195
+ __metadata("design:returntype", Promise)
196
+ ], MasterSettingController.prototype, "update", null);
197
+ __decorate([
198
+ (0, common_1.Delete)('/:id'),
199
+ openapi.ApiResponse({ status: 200, type: Object }),
200
+ __param(0, (0, decorators_1.DetailKeys)()),
201
+ __param(1, (0, core_1.INVOKE_CONTEXT)()),
202
+ __metadata("design:type", Function),
203
+ __metadata("design:paramtypes", [core_1.DetailDto, Object]),
204
+ __metadata("design:returntype", Promise)
205
+ ], MasterSettingController.prototype, "delete", null);
206
+ __decorate([
207
+ (0, common_1.Post)('/check-exist/:code'),
208
+ openapi.ApiResponse({ status: 201, type: Boolean }),
209
+ __param(0, (0, common_1.Param)('code')),
210
+ __param(1, (0, core_1.INVOKE_CONTEXT)()),
211
+ __metadata("design:type", Function),
212
+ __metadata("design:paramtypes", [String, Object]),
213
+ __metadata("design:returntype", Promise)
214
+ ], MasterSettingController.prototype, "checkExistCode", null);
129
215
  exports.MasterSettingController = MasterSettingController = __decorate([
130
216
  (0, common_1.Controller)('api/master-setting'),
131
217
  (0, swagger_1.ApiTags)('master-settings'),
@@ -1 +1 @@
1
- {"version":3,"file":"master-setting.controller.js","sourceRoot":"","sources":["../../src/controllers/master-setting.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAA8E;AAC9E,2CAQuB;AACvB,6CAAyC;AAEzC,+FAAkF;AAClF,6FAAgF;AACh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lEU,uBAAuB;IAFnC,IAAA,mBAAU,EAAC,oBAAoB,CAAC;IAChC,IAAA,iBAAO,EAAC,iBAAiB,CAAC;qCAE0B,6CAAoB;GAD5D,uBAAuB,CAmEnC"}
1
+ {"version":3,"file":"master-setting.controller.js","sourceRoot":"","sources":["../../src/controllers/master-setting.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAKkC;AAClC,2CAWuB;AACvB,6CAAyC;AAEzC,8CAA0C;AAC1C,gCAAuE;AACvE,+FAAkF;AAClF,6FAAgF;AAChF,2EAAqE;AACrE,+FAAkF;AAClF,iFAA2E;AAC3E,2FAA8E;AAC9E,wCAAoC;AACpC,+EAAyE;AAIlE,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAClC,YAA6B,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAGrE,AAAN,KAAK,CAAC,IAAI,CACC,SAAiC,EACxB,aAAsB;QAExC,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,CAAC,CAAA;IACjE,CAAC;IAGK,AAAN,KAAK,CAAC,gBAAgB,CACX,GAAkB,EACT,aAAsB;QAExC,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,CAAC,CAAA;IAC3E,CAAC;IAGK,AAAN,KAAK,CAAC,yBAAyB,CACX,aAAsB,EAChC,GAAqB;QAE7B,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,yBAAyB,CAAC,GAAG,EAAE;YACpE,aAAa;SACd,CAAC,CAAA;IACJ,CAAC;IAGK,AAAN,KAAK,CAAC,mBAAmB,CACL,aAAsB,EAChC,GAAqB;QAE7B,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,mBAAmB,CAAC,GAAG,EAAE;YAC9D,aAAa;SACd,CAAC,CAAA;IACJ,CAAC;IAEK,AAAN,KAAK,CAAC,kBA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;;qCADE,gBAAS;;qDAW7B;AAGK;IADL,IAAA,aAAI,EAAC,oBAAoB,CAAC;;IAExB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,qBAAc,GAAE,CAAA;;;;6DAGlB;kCA9HU,uBAAuB;IAFnC,IAAA,mBAAU,EAAC,oBAAoB,CAAC;IAChC,IAAA,iBAAO,EAAC,iBAAiB,CAAC;qCAE0B,6CAAoB;GAD5D,uBAAuB,CA+HnC"}
@@ -0,0 +1 @@
1
+ export * from './key';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./key"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/decorators/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB"}
@@ -0,0 +1 @@
1
+ export declare const DetailKeys: (...dataOrPipes: unknown[]) => ParameterDecorator;
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DetailKeys = void 0;
4
+ const core_1 = require("@mbc-cqrs-serverless/core");
5
+ const common_1 = require("@nestjs/common");
6
+ const class_transformer_1 = require("class-transformer");
7
+ const class_validator_1 = require("class-validator");
8
+ exports.DetailKeys = (0, common_1.createParamDecorator)(async (data, ctx) => {
9
+ const request = ctx.switchToHttp().getRequest();
10
+ const id = request.params.id;
11
+ if (typeof id !== 'string' || id.trim() === '') {
12
+ throw new common_1.BadRequestException('ID must be a non-empty string.');
13
+ }
14
+ const { pk, sk } = getDetailKeyFromId(id);
15
+ if (!pk || !sk) {
16
+ throw new common_1.BadRequestException('Invalid ID format. Expected ID to contain valid PK and SK components separated by "#".');
17
+ }
18
+ const detailDto = (0, class_transformer_1.plainToInstance)(core_1.DetailDto, { pk, sk });
19
+ const errors = await (0, class_validator_1.validate)(detailDto);
20
+ if (errors.length > 0) {
21
+ throw new common_1.BadRequestException(errors.map((err) => Object.values(err.constraints)).flat());
22
+ }
23
+ return detailDto;
24
+ });
25
+ function getDetailKeyFromId(id) {
26
+ const parts = id.split('#');
27
+ const pk = parts.slice(0, 2).join('#');
28
+ const sk = parts.slice(2).join('#');
29
+ return {
30
+ pk: pk,
31
+ sk: sk,
32
+ };
33
+ }
34
+ //# sourceMappingURL=key.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"key.js","sourceRoot":"","sources":["../../src/decorators/key.ts"],"names":[],"mappings":";;;AAAA,oDAAqD;AACrD,2CAIuB;AACvB,yDAAmD;AACnD,qDAA0C;AAE7B,QAAA,UAAU,GAAG,IAAA,6BAAoB,EAC5C,KAAK,EAAE,IAAa,EAAE,GAAqB,EAAE,EAAE;IAC7C,MAAM,OAAO,GAAG,GAAG,CAAC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAA;IAC/C,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAA;IAE5B,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC/C,MAAM,IAAI,4BAAmB,CAAC,gCAAgC,CAAC,CAAA;IACjE,CAAC;IAED,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,kBAAkB,CAAC,EAAE,CAAC,CAAA;IAEzC,IAAI,CAAC,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;QACf,MAAM,IAAI,4BAAmB,CAC3B,wFAAwF,CACzF,CAAA;IACH,CAAC;IAED,MAAM,SAAS,GAAG,IAAA,mCAAe,EAAC,gBAAS,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAA;IACxD,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAQ,EAAC,SAAS,CAAC,CAAA;IAExC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtB,MAAM,IAAI,4BAAmB,CAC3B,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,EAAE,CAC3D,CAAA;IACH,CAAC;IAED,OAAO,SAAS,CAAA;AAClB,CAAC,CACF,CAAA;AAED,SAAS,kBAAkB,CAAC,EAAU;IACpC,MAAM,KAAK,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC3B,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACtC,MAAM,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IAEnC,OAAO;QACL,EAAE,EAAE,EAAE;QACN,EAAE,EAAE,EAAE;KACP,CAAA;AACH,CAAC"}
@@ -1,2 +1,3 @@
1
+ export * from './master-copy';
1
2
  export * from './master-data';
2
3
  export * from './master-setting';
package/dist/dto/index.js CHANGED
@@ -14,6 +14,7 @@ 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("./master-copy"), exports);
17
18
  __exportStar(require("./master-data"), exports);
18
19
  __exportStar(require("./master-setting"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,mDAAgC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,gDAA6B;AAC7B,mDAAgC"}
@@ -0,0 +1,8 @@
1
+ export * from './master-copy.dto';
2
+ export * from './master-data-create.dto';
3
+ export * from './master-data-search.dto';
4
+ export * from './master-data-update.dto';
5
+ export * from './master-rds.entity';
6
+ export * from './master-rds-list.entity';
7
+ export * from './master-setting-search.dto';
8
+ export * from './master-setting-update.dto';
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./master-copy.dto"), exports);
18
+ __exportStar(require("./master-data-create.dto"), exports);
19
+ __exportStar(require("./master-data-search.dto"), exports);
20
+ __exportStar(require("./master-data-update.dto"), exports);
21
+ __exportStar(require("./master-rds.entity"), exports);
22
+ __exportStar(require("./master-rds-list.entity"), exports);
23
+ __exportStar(require("./master-setting-search.dto"), exports);
24
+ __exportStar(require("./master-setting-update.dto"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/master-copy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAiC;AACjC,2DAAwC;AACxC,2DAAwC;AACxC,2DAAwC;AACxC,sDAAmC;AACnC,2DAAwC;AACxC,8DAA2C;AAC3C,8DAA2C"}
@@ -0,0 +1,19 @@
1
+ export declare enum CopyType {
2
+ SETTING_ONLY = "SETTING_ONLY",
3
+ DATA_ONLY = "DATA_ONLY",
4
+ BOTH = "BOTH"
5
+ }
6
+ export declare enum DataCopyMode {
7
+ ALL = "ALL",
8
+ PARTIAL = "PARTIAL"
9
+ }
10
+ export declare class DataCopyOptionDto {
11
+ mode: DataCopyMode;
12
+ id?: string[];
13
+ }
14
+ export declare class MasterCopyDto {
15
+ masterSettingId: string;
16
+ targetTenants: string[];
17
+ copyType: CopyType;
18
+ dataCopyOption?: DataCopyOptionDto;
19
+ }
@@ -0,0 +1,92 @@
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.MasterCopyDto = exports.DataCopyOptionDto = exports.DataCopyMode = exports.CopyType = void 0;
13
+ const openapi = require("@nestjs/swagger");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const class_transformer_1 = require("class-transformer");
16
+ const class_validator_1 = require("class-validator");
17
+ var CopyType;
18
+ (function (CopyType) {
19
+ CopyType["SETTING_ONLY"] = "SETTING_ONLY";
20
+ CopyType["DATA_ONLY"] = "DATA_ONLY";
21
+ CopyType["BOTH"] = "BOTH";
22
+ })(CopyType || (exports.CopyType = CopyType = {}));
23
+ var DataCopyMode;
24
+ (function (DataCopyMode) {
25
+ DataCopyMode["ALL"] = "ALL";
26
+ DataCopyMode["PARTIAL"] = "PARTIAL";
27
+ })(DataCopyMode || (exports.DataCopyMode = DataCopyMode = {}));
28
+ class DataCopyOptionDto {
29
+ static _OPENAPI_METADATA_FACTORY() {
30
+ return { mode: { required: true, enum: require("./master-copy.dto").DataCopyMode }, id: { required: false, type: () => [String] } };
31
+ }
32
+ }
33
+ exports.DataCopyOptionDto = DataCopyOptionDto;
34
+ __decorate([
35
+ (0, swagger_1.ApiProperty)({
36
+ enum: DataCopyMode,
37
+ description: 'Whether to copy all master_data or only specific ones',
38
+ }),
39
+ (0, class_validator_1.IsEnum)(DataCopyMode),
40
+ __metadata("design:type", String)
41
+ ], DataCopyOptionDto.prototype, "mode", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiPropertyOptional)({
44
+ description: 'Required only if mode is PARTIAL. List of master_data IDs to copy.',
45
+ type: [String],
46
+ }),
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsArray)(),
49
+ (0, class_validator_1.IsString)({ each: true }),
50
+ __metadata("design:type", Array)
51
+ ], DataCopyOptionDto.prototype, "id", void 0);
52
+ class MasterCopyDto {
53
+ static _OPENAPI_METADATA_FACTORY() {
54
+ return { masterSettingId: { required: true, type: () => String }, targetTenants: { required: true, type: () => [String] }, copyType: { required: true, enum: require("./master-copy.dto").CopyType }, dataCopyOption: { required: false, type: () => require("./master-copy.dto").DataCopyOptionDto } };
55
+ }
56
+ }
57
+ exports.MasterCopyDto = MasterCopyDto;
58
+ __decorate([
59
+ (0, swagger_1.ApiProperty)({
60
+ description: 'The ID of the master_setting to copy from',
61
+ }),
62
+ (0, class_validator_1.IsString)(),
63
+ (0, class_validator_1.IsNotEmpty)(),
64
+ __metadata("design:type", String)
65
+ ], MasterCopyDto.prototype, "masterSettingId", void 0);
66
+ __decorate([
67
+ (0, swagger_1.ApiProperty)({
68
+ description: 'Target tenants as an array of tenant codes',
69
+ example: ['tenant_b', 'tenant_c'],
70
+ }),
71
+ (0, class_validator_1.IsNotEmpty)(),
72
+ __metadata("design:type", Array)
73
+ ], MasterCopyDto.prototype, "targetTenants", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiProperty)({
76
+ enum: CopyType,
77
+ description: 'What to copy: only setting, only data, or both',
78
+ }),
79
+ (0, class_validator_1.IsEnum)(CopyType),
80
+ __metadata("design:type", String)
81
+ ], MasterCopyDto.prototype, "copyType", void 0);
82
+ __decorate([
83
+ (0, swagger_1.ApiPropertyOptional)({
84
+ type: DataCopyOptionDto,
85
+ description: 'Options for data copy (required when copyType is DATA_ONLY or BOTH)',
86
+ }),
87
+ (0, class_validator_1.IsOptional)(),
88
+ (0, class_validator_1.ValidateNested)(),
89
+ (0, class_transformer_1.Type)(() => DataCopyOptionDto),
90
+ __metadata("design:type", DataCopyOptionDto)
91
+ ], MasterCopyDto.prototype, "dataCopyOption", void 0);
92
+ //# sourceMappingURL=master-copy.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"master-copy.dto.js","sourceRoot":"","sources":["../../../src/dto/master-copy/master-copy.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yDAAwC;AACxC,qDAOwB;AAExB,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,yCAA6B,CAAA;IAC7B,mCAAuB,CAAA;IACv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BAAiB,CAAC;8BACb,iBAAiB;qDAAA"}
@@ -0,0 +1,7 @@
1
+ export declare class MasterDataCreateDto {
2
+ settingCode: string;
3
+ name: string;
4
+ code?: string;
5
+ seq?: number;
6
+ attributes: object;
7
+ }