@servicelabsco/slabs-access-manager 0.1.57 → 0.1.58

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 (142) hide show
  1. package/dist/access/controllers/choice.list.controller.d.ts +22 -0
  2. package/dist/access/controllers/choice.list.controller.js +149 -0
  3. package/dist/access/controllers/choice.list.controller.js.map +1 -0
  4. package/dist/access/controllers/choice.type.controller.d.ts +27 -0
  5. package/dist/access/controllers/choice.type.controller.js +174 -0
  6. package/dist/access/controllers/choice.type.controller.js.map +1 -0
  7. package/dist/access/controllers/custom.field.controller.d.ts +18 -0
  8. package/dist/access/controllers/custom.field.controller.js +115 -0
  9. package/dist/access/controllers/custom.field.controller.js.map +1 -0
  10. package/dist/access/controllers/index.d.ts +3 -0
  11. package/dist/access/controllers/index.js +3 -0
  12. package/dist/access/controllers/index.js.map +1 -1
  13. package/dist/access/dtos/add.choice.list.dto.d.ts +4 -0
  14. package/dist/access/dtos/add.choice.list.dto.js +29 -0
  15. package/dist/access/dtos/add.choice.list.dto.js.map +1 -0
  16. package/dist/access/dtos/add.choice.type.dto.d.ts +5 -0
  17. package/dist/access/dtos/add.choice.type.dto.js +34 -0
  18. package/dist/access/dtos/add.choice.type.dto.js.map +1 -0
  19. package/dist/access/dtos/add.custom.field.dto.d.ts +9 -0
  20. package/dist/access/dtos/add.custom.field.dto.js +60 -0
  21. package/dist/access/dtos/add.custom.field.dto.js.map +1 -0
  22. package/dist/access/dtos/choice.list.attributes.dto.d.ts +3 -0
  23. package/dist/access/dtos/choice.list.attributes.dto.js +8 -0
  24. package/dist/access/dtos/choice.list.attributes.dto.js.map +1 -0
  25. package/dist/access/dtos/choice.type.attributes.dto.d.ts +3 -0
  26. package/dist/access/dtos/choice.type.attributes.dto.js +8 -0
  27. package/dist/access/dtos/choice.type.attributes.dto.js.map +1 -0
  28. package/dist/access/dtos/choice.type.list.filter.dto.d.ts +4 -0
  29. package/dist/access/dtos/choice.type.list.filter.dto.js +25 -0
  30. package/dist/access/dtos/choice.type.list.filter.dto.js.map +1 -0
  31. package/dist/access/dtos/custom.field.attributes.dto.d.ts +3 -0
  32. package/dist/access/dtos/custom.field.attributes.dto.js +8 -0
  33. package/dist/access/dtos/custom.field.attributes.dto.js.map +1 -0
  34. package/dist/access/dtos/custom.field.list.filter.dto.d.ts +5 -0
  35. package/dist/access/dtos/custom.field.list.filter.dto.js +31 -0
  36. package/dist/access/dtos/custom.field.list.filter.dto.js.map +1 -0
  37. package/dist/access/dtos/index.d.ts +9 -0
  38. package/dist/access/dtos/index.js +9 -0
  39. package/dist/access/dtos/index.js.map +1 -1
  40. package/dist/access/dtos/modify.custom.field.status.dto.d.ts +4 -0
  41. package/dist/access/dtos/modify.custom.field.status.dto.js +30 -0
  42. package/dist/access/dtos/modify.custom.field.status.dto.js.map +1 -0
  43. package/dist/access/entities/choice.list.entity.d.ts +10 -0
  44. package/dist/access/entities/choice.list.entity.js +44 -0
  45. package/dist/access/entities/choice.list.entity.js.map +1 -0
  46. package/dist/access/entities/choice.type.entity.d.ts +13 -0
  47. package/dist/access/entities/choice.type.entity.js +53 -0
  48. package/dist/access/entities/choice.type.entity.js.map +1 -0
  49. package/dist/access/entities/custom.field.entity.d.ts +19 -0
  50. package/dist/access/entities/custom.field.entity.js +82 -0
  51. package/dist/access/entities/custom.field.entity.js.map +1 -0
  52. package/dist/access/entities/index.d.ts +3 -0
  53. package/dist/access/entities/index.js +3 -0
  54. package/dist/access/entities/index.js.map +1 -1
  55. package/dist/access/enums/custom.column.type.enum.d.ts +9 -0
  56. package/dist/access/enums/custom.column.type.enum.js +14 -0
  57. package/dist/access/enums/custom.column.type.enum.js.map +1 -0
  58. package/dist/access/enums/index.d.ts +1 -0
  59. package/dist/access/enums/index.js +18 -0
  60. package/dist/access/enums/index.js.map +1 -0
  61. package/dist/access/es6.classes.d.ts +26 -7
  62. package/dist/access/es6.classes.js +58 -0
  63. package/dist/access/es6.classes.js.map +1 -1
  64. package/dist/access/index.d.ts +1 -0
  65. package/dist/access/index.js +1 -0
  66. package/dist/access/index.js.map +1 -1
  67. package/dist/access/jobs/choice.list.job.d.ts +7 -0
  68. package/dist/access/jobs/choice.list.job.js +29 -0
  69. package/dist/access/jobs/choice.list.job.js.map +1 -0
  70. package/dist/access/jobs/choice.type.job.d.ts +7 -0
  71. package/dist/access/jobs/choice.type.job.js +29 -0
  72. package/dist/access/jobs/choice.type.job.js.map +1 -0
  73. package/dist/access/jobs/custom.field.job.d.ts +7 -0
  74. package/dist/access/jobs/custom.field.job.js +29 -0
  75. package/dist/access/jobs/custom.field.job.js.map +1 -0
  76. package/dist/access/jobs/index.d.ts +3 -0
  77. package/dist/access/jobs/index.js +3 -0
  78. package/dist/access/jobs/index.js.map +1 -1
  79. package/dist/access/libraries/index.d.ts +5 -0
  80. package/dist/access/libraries/index.js +5 -0
  81. package/dist/access/libraries/index.js.map +1 -1
  82. package/dist/access/libraries/process.choice.type.list.d.ts +20 -0
  83. package/dist/access/libraries/process.choice.type.list.js +35 -0
  84. package/dist/access/libraries/process.choice.type.list.js.map +1 -0
  85. package/dist/access/libraries/process.common.custom.field.d.ts +9 -0
  86. package/dist/access/libraries/process.common.custom.field.js +15 -0
  87. package/dist/access/libraries/process.common.custom.field.js.map +1 -0
  88. package/dist/access/libraries/process.custom.field.creation.d.ts +14 -0
  89. package/dist/access/libraries/process.custom.field.creation.js +72 -0
  90. package/dist/access/libraries/process.custom.field.creation.js.map +1 -0
  91. package/dist/access/libraries/process.custom.field.list.d.ts +21 -0
  92. package/dist/access/libraries/process.custom.field.list.js +41 -0
  93. package/dist/access/libraries/process.custom.field.list.js.map +1 -0
  94. package/dist/access/libraries/validate.custom.field.data.d.ts +15 -0
  95. package/dist/access/libraries/validate.custom.field.data.js +73 -0
  96. package/dist/access/libraries/validate.custom.field.data.js.map +1 -0
  97. package/dist/access/services/access.business.service.d.ts +5 -0
  98. package/dist/access/services/access.business.service.js +20 -1
  99. package/dist/access/services/access.business.service.js.map +1 -1
  100. package/dist/access/services/audit.log.service.d.ts +6 -0
  101. package/dist/access/services/audit.log.service.js +28 -0
  102. package/dist/access/services/audit.log.service.js.map +1 -0
  103. package/dist/access/services/custom.field.service.d.ts +12 -0
  104. package/dist/access/services/custom.field.service.js +78 -0
  105. package/dist/access/services/custom.field.service.js.map +1 -0
  106. package/dist/access/services/es6.jobs.service.d.ts +7 -1
  107. package/dist/access/services/es6.jobs.service.js +13 -1
  108. package/dist/access/services/es6.jobs.service.js.map +1 -1
  109. package/dist/access/services/index.d.ts +2 -0
  110. package/dist/access/services/index.js +2 -0
  111. package/dist/access/services/index.js.map +1 -1
  112. package/dist/access/subscribers/choice.list.subscriber.d.ts +12 -0
  113. package/dist/access/subscribers/choice.list.subscriber.js +40 -0
  114. package/dist/access/subscribers/choice.list.subscriber.js.map +1 -0
  115. package/dist/access/subscribers/choice.type.subscriber.d.ts +12 -0
  116. package/dist/access/subscribers/choice.type.subscriber.js +40 -0
  117. package/dist/access/subscribers/choice.type.subscriber.js.map +1 -0
  118. package/dist/access/subscribers/custom.field.subscriber.d.ts +12 -0
  119. package/dist/access/subscribers/custom.field.subscriber.js +40 -0
  120. package/dist/access/subscribers/custom.field.subscriber.js.map +1 -0
  121. package/dist/access/subscribers/index.d.ts +3 -0
  122. package/dist/access/subscribers/index.js +3 -0
  123. package/dist/access/subscribers/index.js.map +1 -1
  124. package/dist/config/entity.constants.d.ts +6 -0
  125. package/dist/config/entity.constants.js +6 -0
  126. package/dist/config/entity.constants.js.map +1 -1
  127. package/dist/config/source.hash.d.ts +2 -0
  128. package/dist/config/source.hash.js +2 -0
  129. package/dist/config/source.hash.js.map +1 -1
  130. package/dist/migrations/1681370521886-CreateChoiceTypeTable.d.ts +5 -0
  131. package/dist/migrations/1681370521886-CreateChoiceTypeTable.js +21 -0
  132. package/dist/migrations/1681370521886-CreateChoiceTypeTable.js.map +1 -0
  133. package/dist/migrations/1681370822214-CreateChoiceListTable.d.ts +5 -0
  134. package/dist/migrations/1681370822214-CreateChoiceListTable.js +20 -0
  135. package/dist/migrations/1681370822214-CreateChoiceListTable.js.map +1 -0
  136. package/dist/migrations/1681373004868-AddCustomFieldTypesDataSeederTable.d.ts +7 -0
  137. package/dist/migrations/1681373004868-AddCustomFieldTypesDataSeederTable.js +107 -0
  138. package/dist/migrations/1681373004868-AddCustomFieldTypesDataSeederTable.js.map +1 -0
  139. package/dist/migrations/1681452401683-CreateCustomFieldTable.d.ts +5 -0
  140. package/dist/migrations/1681452401683-CreateCustomFieldTable.js +27 -0
  141. package/dist/migrations/1681452401683-CreateCustomFieldTable.js.map +1 -0
  142. package/package.json +1 -1
@@ -0,0 +1,34 @@
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.AddChoiceTypeDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class AddChoiceTypeDto {
16
+ }
17
+ exports.AddChoiceTypeDto = AddChoiceTypeDto;
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.IsNumber)(),
22
+ __metadata("design:type", Number)
23
+ ], AddChoiceTypeDto.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ __metadata("design:type", String)
28
+ ], AddChoiceTypeDto.prototype, "name", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ __metadata("design:type", String)
33
+ ], AddChoiceTypeDto.prototype, "description", void 0);
34
+ //# sourceMappingURL=add.choice.type.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.choice.type.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.choice.type.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAmE;AAEnE,MAAa,gBAAgB;CAa5B;AAbD,4CAaC;AATG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;4CACC;AAIZ;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;8CACA;AAIb;IAFC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;qDACO"}
@@ -0,0 +1,9 @@
1
+ export declare class AddCustomFieldDto {
2
+ id?: number;
3
+ type_id: number;
4
+ column_type_id: number;
5
+ choice_type_id?: number;
6
+ name: string;
7
+ priority: number;
8
+ default_value: string;
9
+ }
@@ -0,0 +1,60 @@
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.AddCustomFieldDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const custom_column_type_enum_1 = require("../enums/custom.column.type.enum");
16
+ class AddCustomFieldDto {
17
+ }
18
+ exports.AddCustomFieldDto = AddCustomFieldDto;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.IsNumber)(),
23
+ __metadata("design:type", Number)
24
+ ], AddCustomFieldDto.prototype, "id", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsNumber)(),
27
+ (0, class_transformer_1.Expose)(),
28
+ (0, class_validator_1.IsNotEmpty)(),
29
+ __metadata("design:type", Number)
30
+ ], AddCustomFieldDto.prototype, "type_id", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsNotEmpty)(),
33
+ (0, class_validator_1.IsNumber)(),
34
+ (0, class_transformer_1.Expose)(),
35
+ (0, class_validator_1.IsEnum)(custom_column_type_enum_1.CustomColumnTypeEnum),
36
+ __metadata("design:type", Number)
37
+ ], AddCustomFieldDto.prototype, "column_type_id", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsOptional)(),
40
+ (0, class_validator_1.IsNumber)(),
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", Number)
43
+ ], AddCustomFieldDto.prototype, "choice_type_id", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsNotEmpty)(),
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", String)
48
+ ], AddCustomFieldDto.prototype, "name", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsNotEmpty)(),
51
+ (0, class_transformer_1.Expose)(),
52
+ (0, class_validator_1.IsNumber)(),
53
+ __metadata("design:type", Number)
54
+ ], AddCustomFieldDto.prototype, "priority", void 0);
55
+ __decorate([
56
+ (0, class_validator_1.IsOptional)(),
57
+ (0, class_transformer_1.Expose)(),
58
+ __metadata("design:type", String)
59
+ ], AddCustomFieldDto.prototype, "default_value", void 0);
60
+ //# sourceMappingURL=add.custom.field.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"add.custom.field.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/add.custom.field.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAA2E;AAC3E,8EAAwE;AAExE,MAAa,iBAAiB;CAkC7B;AAlCD,8CAkCC;AA9BG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;6CACC;AAKZ;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;;kDACG;AAMhB;IAJC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;IACR,IAAA,wBAAM,EAAC,8CAAoB,CAAC;;yDACN;AAKvB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;IACV,IAAA,0BAAM,GAAE;;yDACe;AAIxB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;+CACI;AAKb;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;mDACM;AAIjB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;;wDACa"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class ChoiceListAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChoiceListAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class ChoiceListAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.ChoiceListAttributesDto = ChoiceListAttributesDto;
8
+ //# sourceMappingURL=choice.list.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice.list.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/choice.list.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,uBAAwB,SAAQ,6CAAmB;CAAG;AAAnE,0DAAmE"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class ChoiceTypeAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ChoiceTypeAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class ChoiceTypeAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.ChoiceTypeAttributesDto = ChoiceTypeAttributesDto;
8
+ //# sourceMappingURL=choice.type.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice.type.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/choice.type.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,uBAAwB,SAAQ,6CAAmB;CAAG;AAAnE,0DAAmE"}
@@ -0,0 +1,4 @@
1
+ import { CommonListFilterDto } from './common.list.filter.dto';
2
+ export declare class ChoiceTypeListFilterDto extends CommonListFilterDto {
3
+ active?: boolean;
4
+ }
@@ -0,0 +1,25 @@
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.ChoiceTypeListFilterDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const common_list_filter_dto_1 = require("./common.list.filter.dto");
16
+ class ChoiceTypeListFilterDto extends common_list_filter_dto_1.CommonListFilterDto {
17
+ }
18
+ exports.ChoiceTypeListFilterDto = ChoiceTypeListFilterDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ (0, class_validator_1.IsBoolean)(),
23
+ __metadata("design:type", Boolean)
24
+ ], ChoiceTypeListFilterDto.prototype, "active", void 0);
25
+ //# sourceMappingURL=choice.type.list.filter.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice.type.list.filter.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/choice.type.list.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwD;AACxD,qEAA+D;AAE/D,MAAa,uBAAwB,SAAQ,4CAAmB;CAK/D;AALD,0DAKC;AADG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,2BAAS,GAAE;;uDACK"}
@@ -0,0 +1,3 @@
1
+ import { CommonAttributesDto } from '@servicelabsco/nestjs-utility-services';
2
+ export declare class CustomFieldAttributesDto extends CommonAttributesDto {
3
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CustomFieldAttributesDto = void 0;
4
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
5
+ class CustomFieldAttributesDto extends nestjs_utility_services_1.CommonAttributesDto {
6
+ }
7
+ exports.CustomFieldAttributesDto = CustomFieldAttributesDto;
8
+ //# sourceMappingURL=custom.field.attributes.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom.field.attributes.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/custom.field.attributes.dto.ts"],"names":[],"mappings":";;;AAAA,oFAA6E;AAC7E,MAAa,wBAAyB,SAAQ,6CAAmB;CAAG;AAApE,4DAAoE"}
@@ -0,0 +1,5 @@
1
+ import { CommonListFilterDto } from './common.list.filter.dto';
2
+ export declare class CustomFieldListFilterDto extends CommonListFilterDto {
3
+ type_id?: number;
4
+ active?: boolean;
5
+ }
@@ -0,0 +1,31 @@
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.CustomFieldListFilterDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const common_list_filter_dto_1 = require("./common.list.filter.dto");
16
+ class CustomFieldListFilterDto extends common_list_filter_dto_1.CommonListFilterDto {
17
+ }
18
+ exports.CustomFieldListFilterDto = CustomFieldListFilterDto;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_validator_1.IsOptional)(),
22
+ (0, class_validator_1.IsNumber)(),
23
+ __metadata("design:type", Number)
24
+ ], CustomFieldListFilterDto.prototype, "type_id", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsBoolean)(),
29
+ __metadata("design:type", Boolean)
30
+ ], CustomFieldListFilterDto.prototype, "active", void 0);
31
+ //# sourceMappingURL=custom.field.list.filter.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom.field.list.filter.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/custom.field.list.filter.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAkE;AAClE,qEAA+D;AAE/D,MAAa,wBAAyB,SAAQ,4CAAmB;CAUhE;AAVD,4DAUC;AANG;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACM;AAKjB;IAHC,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;wDACK"}
@@ -1,7 +1,10 @@
1
1
  export * from './access.business.param.dto';
2
2
  export * from './add.business.preference.dto';
3
3
  export * from './add.business.user.group.dto';
4
+ export * from './add.choice.list.dto';
5
+ export * from './add.choice.type.dto';
4
6
  export * from './add.conversation.dto';
7
+ export * from './add.custom.field.dto';
5
8
  export * from './add.group.member.dto';
6
9
  export * from './add.listing.preference.dto';
7
10
  export * from './add.role.dto';
@@ -15,8 +18,13 @@ export * from './business.user.group.attributes.dto';
15
18
  export * from './business.user.group.list.filter.dto';
16
19
  export * from './business.user.role.attributes.dto';
17
20
  export * from './child.menu.attributes.dto';
21
+ export * from './choice.list.attributes.dto';
22
+ export * from './choice.type.attributes.dto';
23
+ export * from './choice.type.list.filter.dto';
18
24
  export * from './common.list.filter.dto';
19
25
  export * from './conversation.attributes.dto';
26
+ export * from './custom.field.attributes.dto';
27
+ export * from './custom.field.list.filter.dto';
20
28
  export * from './custom.report.attributes.dto';
21
29
  export * from './dashboard.attributes.dto';
22
30
  export * from './dashboard.component.attributes.dto';
@@ -42,6 +50,7 @@ export * from './listing.preference.attributes.dto';
42
50
  export * from './menu.action.attributes.dto';
43
51
  export * from './menu.attributes.dto';
44
52
  export * from './menu.role.attributes.dto';
53
+ export * from './modify.custom.field.status.dto';
45
54
  export * from './module.attributes.dto';
46
55
  export * from './module.menu.attributes.dto';
47
56
  export * from './number.range.filter.dto';
@@ -17,7 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./access.business.param.dto"), exports);
18
18
  __exportStar(require("./add.business.preference.dto"), exports);
19
19
  __exportStar(require("./add.business.user.group.dto"), exports);
20
+ __exportStar(require("./add.choice.list.dto"), exports);
21
+ __exportStar(require("./add.choice.type.dto"), exports);
20
22
  __exportStar(require("./add.conversation.dto"), exports);
23
+ __exportStar(require("./add.custom.field.dto"), exports);
21
24
  __exportStar(require("./add.group.member.dto"), exports);
22
25
  __exportStar(require("./add.listing.preference.dto"), exports);
23
26
  __exportStar(require("./add.role.dto"), exports);
@@ -31,8 +34,13 @@ __exportStar(require("./business.user.group.attributes.dto"), exports);
31
34
  __exportStar(require("./business.user.group.list.filter.dto"), exports);
32
35
  __exportStar(require("./business.user.role.attributes.dto"), exports);
33
36
  __exportStar(require("./child.menu.attributes.dto"), exports);
37
+ __exportStar(require("./choice.list.attributes.dto"), exports);
38
+ __exportStar(require("./choice.type.attributes.dto"), exports);
39
+ __exportStar(require("./choice.type.list.filter.dto"), exports);
34
40
  __exportStar(require("./common.list.filter.dto"), exports);
35
41
  __exportStar(require("./conversation.attributes.dto"), exports);
42
+ __exportStar(require("./custom.field.attributes.dto"), exports);
43
+ __exportStar(require("./custom.field.list.filter.dto"), exports);
36
44
  __exportStar(require("./custom.report.attributes.dto"), exports);
37
45
  __exportStar(require("./dashboard.attributes.dto"), exports);
38
46
  __exportStar(require("./dashboard.component.attributes.dto"), exports);
@@ -58,6 +66,7 @@ __exportStar(require("./listing.preference.attributes.dto"), exports);
58
66
  __exportStar(require("./menu.action.attributes.dto"), exports);
59
67
  __exportStar(require("./menu.attributes.dto"), exports);
60
68
  __exportStar(require("./menu.role.attributes.dto"), exports);
69
+ __exportStar(require("./modify.custom.field.status.dto"), exports);
61
70
  __exportStar(require("./module.attributes.dto"), exports);
62
71
  __exportStar(require("./module.menu.attributes.dto"), exports);
63
72
  __exportStar(require("./number.range.filter.dto"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,gEAA8C;AAAA,gEAA8C;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,+DAA6C;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,uDAAqC;AAAA,uEAAqD;AAAA,iEAA+C;AAAA,uEAAqD;AAAA,wEAAsD;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,6DAA2C;AAAA,uEAAqD;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,gDAA8B;AAAA,wDAAsC;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,oEAAkD;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,mEAAiD;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,sEAAoD;AAAA,+DAA6C;AAAA,wDAAsC;AAAA,6DAA2C;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,yEAAuD;AAAA,oEAAkD;AAAA,mEAAiD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,oEAAkD;AAAA,qEAAmD;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,wEAAqD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/access/dtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8DAA4C;AAAA,gEAA8C;AAAA,gEAA8C;AAAA,wDAAsC;AAAA,wDAAsC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,yDAAuC;AAAA,+DAA6C;AAAA,iDAA+B;AAAA,6DAA2C;AAAA,4DAA0C;AAAA,kEAAgD;AAAA,uDAAqC;AAAA,uEAAqD;AAAA,iEAA+C;AAAA,uEAAqD;AAAA,wEAAsD;AAAA,sEAAoD;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,+DAA6C;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,gEAA8C;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,iEAA+C;AAAA,6DAA2C;AAAA,uEAAqD;AAAA,oDAAkC;AAAA,0DAAwC;AAAA,gDAA8B;AAAA,wDAAsC;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,oEAAkD;AAAA,iEAA+C;AAAA,mEAAiD;AAAA,gEAA8C;AAAA,iEAA+C;AAAA,8DAA4C;AAAA,+DAA6C;AAAA,mEAAiD;AAAA,sDAAoC;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,gEAA8C;AAAA,sEAAoD;AAAA,+DAA6C;AAAA,wDAAsC;AAAA,6DAA2C;AAAA,mEAAiD;AAAA,0DAAwC;AAAA,+DAA6C;AAAA,4DAA0C;AAAA,yEAAuD;AAAA,oEAAkD;AAAA,mEAAiD;AAAA,gEAA8C;AAAA,2DAAyC;AAAA,8DAA4C;AAAA,oEAAkD;AAAA,qEAAmD;AAAA,sDAAoC;AAAA,oDAAkC;AAAA,6DAA2C;AAAA,kEAAgD;AAAA,mEAAiD;AAAA,6DAA2C;AAAA,wEAAqD"}
@@ -0,0 +1,4 @@
1
+ export declare class ModifyCustomFieldStatusDto {
2
+ is_mandatory: boolean;
3
+ active: boolean;
4
+ }
@@ -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.ModifyCustomFieldStatusDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class ModifyCustomFieldStatusDto {
16
+ }
17
+ exports.ModifyCustomFieldStatusDto = ModifyCustomFieldStatusDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_validator_1.IsBoolean)(),
22
+ __metadata("design:type", Boolean)
23
+ ], ModifyCustomFieldStatusDto.prototype, "is_mandatory", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_transformer_1.Expose)(),
27
+ (0, class_validator_1.IsBoolean)(),
28
+ __metadata("design:type", Boolean)
29
+ ], ModifyCustomFieldStatusDto.prototype, "active", void 0);
30
+ //# sourceMappingURL=modify.custom.field.status.dto.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modify.custom.field.status.dto.js","sourceRoot":"","sources":["../../../src/access/dtos/modify.custom.field.status.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA2C;AAC3C,qDAAwD;AAExD,MAAa,0BAA0B;CAUtC;AAVD,gEAUC;AANG;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,2BAAS,GAAE;;gEACU;AAKtB;IAHC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAM,GAAE;IACR,IAAA,2BAAS,GAAE;;0DACI"}
@@ -0,0 +1,10 @@
1
+ import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { ChoiceListAttributesDto } from '../dtos/choice.list.attributes.dto';
3
+ import { ChoiceTypeEntity } from './choice.type.entity';
4
+ export declare class ChoiceListEntity extends CommonEntity {
5
+ type_id: number;
6
+ name: string;
7
+ active: boolean;
8
+ attributes: ChoiceListAttributesDto;
9
+ type: ChoiceTypeEntity;
10
+ }
@@ -0,0 +1,44 @@
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.ChoiceListEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ const choice_list_attributes_dto_1 = require("../dtos/choice.list.attributes.dto");
16
+ const choice_type_entity_1 = require("./choice.type.entity");
17
+ let ChoiceListEntity = class ChoiceListEntity extends nestjs_utility_services_1.CommonEntity {
18
+ };
19
+ exports.ChoiceListEntity = ChoiceListEntity;
20
+ __decorate([
21
+ (0, typeorm_1.Column)(),
22
+ __metadata("design:type", Number)
23
+ ], ChoiceListEntity.prototype, "type_id", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)(),
26
+ __metadata("design:type", String)
27
+ ], ChoiceListEntity.prototype, "name", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)(),
30
+ __metadata("design:type", Boolean)
31
+ ], ChoiceListEntity.prototype, "active", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)('json'),
34
+ __metadata("design:type", choice_list_attributes_dto_1.ChoiceListAttributesDto)
35
+ ], ChoiceListEntity.prototype, "attributes", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.ManyToOne)(() => ChoiceListEntity),
38
+ (0, typeorm_1.JoinColumn)({ name: 'type_id' }),
39
+ __metadata("design:type", choice_type_entity_1.ChoiceTypeEntity)
40
+ ], ChoiceListEntity.prototype, "type", void 0);
41
+ exports.ChoiceListEntity = ChoiceListEntity = __decorate([
42
+ (0, typeorm_1.Entity)('bz_choice_lists')
43
+ ], ChoiceListEntity);
44
+ //# sourceMappingURL=choice.list.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice.list.entity.js","sourceRoot":"","sources":["../../../src/access/entities/choice.list.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,oFAAsE;AACtE,mFAA6E;AAC7E,6DAAwD;AASjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,sCAAY;CAejD,CAAA;AAfY,4CAAgB;AAEzB;IADC,IAAA,gBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;8CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;gDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,oDAAuB;oDAAC;AAGgC;IAAnE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,gBAAgB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,qCAAgB;8CAAC;2BAdlF,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,gBAAgB,CAe5B"}
@@ -0,0 +1,13 @@
1
+ import { CommonEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { ChoiceTypeAttributesDto } from '../dtos/choice.type.attributes.dto';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
+ import { ChoiceListEntity } from './choice.list.entity';
5
+ export declare class ChoiceTypeEntity extends CommonEntity {
6
+ business_id: number;
7
+ name: string;
8
+ description: string;
9
+ active: boolean;
10
+ attributes: ChoiceTypeAttributesDto;
11
+ business: AccessBusinessEntity;
12
+ lists: ChoiceListEntity[];
13
+ }
@@ -0,0 +1,53 @@
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.ChoiceTypeEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ const choice_type_attributes_dto_1 = require("../dtos/choice.type.attributes.dto");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
+ const choice_list_entity_1 = require("./choice.list.entity");
18
+ let ChoiceTypeEntity = class ChoiceTypeEntity extends nestjs_utility_services_1.CommonEntity {
19
+ };
20
+ exports.ChoiceTypeEntity = ChoiceTypeEntity;
21
+ __decorate([
22
+ (0, typeorm_1.Column)(),
23
+ __metadata("design:type", Number)
24
+ ], ChoiceTypeEntity.prototype, "business_id", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)(),
27
+ __metadata("design:type", String)
28
+ ], ChoiceTypeEntity.prototype, "name", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", String)
32
+ ], ChoiceTypeEntity.prototype, "description", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Boolean)
36
+ ], ChoiceTypeEntity.prototype, "active", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)('json'),
39
+ __metadata("design:type", choice_type_attributes_dto_1.ChoiceTypeAttributesDto)
40
+ ], ChoiceTypeEntity.prototype, "attributes", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
43
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
44
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
45
+ ], ChoiceTypeEntity.prototype, "business", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.OneToMany)(() => choice_list_entity_1.ChoiceListEntity, (list) => list.type),
48
+ __metadata("design:type", Array)
49
+ ], ChoiceTypeEntity.prototype, "lists", void 0);
50
+ exports.ChoiceTypeEntity = ChoiceTypeEntity = __decorate([
51
+ (0, typeorm_1.Entity)('bz_choice_types')
52
+ ], ChoiceTypeEntity);
53
+ //# sourceMappingURL=choice.type.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"choice.type.entity.js","sourceRoot":"","sources":["../../../src/access/entities/choice.type.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA2E;AAC3E,oFAAsE;AACtE,mFAA6E;AAC7E,qEAAgE;AAChE,6DAAwD;AASjD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,sCAAY;CAmBjD,CAAA;AAnBY,4CAAgB;AAEzB;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;8CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;qDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;gDACO;AAGhB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,oDAAuB;oDAAC;AAGwC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;kDAAC;AACnD;IAAvD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qCAAgB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;;+CAA2B;2BAlBzE,gBAAgB;IAD5B,IAAA,gBAAM,EAAC,iBAAiB,CAAC;GACb,gBAAgB,CAmB5B"}
@@ -0,0 +1,19 @@
1
+ import { CommonEntity, LookupValueEntity } from '@servicelabsco/nestjs-utility-services';
2
+ import { CustomFieldAttributesDto } from '../dtos/custom.field.attributes.dto';
3
+ import { AccessBusinessEntity } from './access.business.entity';
4
+ export declare class CustomFieldEntity extends CommonEntity {
5
+ business_id: number;
6
+ type_id: number;
7
+ column_type_id: number;
8
+ choice_type_id: number;
9
+ identifier: string;
10
+ name: string;
11
+ priority: number;
12
+ default_value: string;
13
+ active: boolean;
14
+ is_mandatory: boolean;
15
+ attributes: CustomFieldAttributesDto;
16
+ business: AccessBusinessEntity;
17
+ type: LookupValueEntity;
18
+ column_type: LookupValueEntity;
19
+ }
@@ -0,0 +1,82 @@
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.CustomFieldEntity = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const nestjs_utility_services_1 = require("@servicelabsco/nestjs-utility-services");
15
+ const custom_field_attributes_dto_1 = require("../dtos/custom.field.attributes.dto");
16
+ const access_business_entity_1 = require("./access.business.entity");
17
+ let CustomFieldEntity = class CustomFieldEntity extends nestjs_utility_services_1.CommonEntity {
18
+ };
19
+ exports.CustomFieldEntity = CustomFieldEntity;
20
+ __decorate([
21
+ (0, typeorm_1.Column)(),
22
+ __metadata("design:type", Number)
23
+ ], CustomFieldEntity.prototype, "business_id", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)(),
26
+ __metadata("design:type", Number)
27
+ ], CustomFieldEntity.prototype, "type_id", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)(),
30
+ __metadata("design:type", Number)
31
+ ], CustomFieldEntity.prototype, "column_type_id", void 0);
32
+ __decorate([
33
+ (0, typeorm_1.Column)(),
34
+ __metadata("design:type", Number)
35
+ ], CustomFieldEntity.prototype, "choice_type_id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)(),
38
+ __metadata("design:type", String)
39
+ ], CustomFieldEntity.prototype, "identifier", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)(),
42
+ __metadata("design:type", String)
43
+ ], CustomFieldEntity.prototype, "name", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)(),
46
+ __metadata("design:type", Number)
47
+ ], CustomFieldEntity.prototype, "priority", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)(),
50
+ __metadata("design:type", String)
51
+ ], CustomFieldEntity.prototype, "default_value", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)(),
54
+ __metadata("design:type", Boolean)
55
+ ], CustomFieldEntity.prototype, "active", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)(),
58
+ __metadata("design:type", Boolean)
59
+ ], CustomFieldEntity.prototype, "is_mandatory", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)('json'),
62
+ __metadata("design:type", custom_field_attributes_dto_1.CustomFieldAttributesDto)
63
+ ], CustomFieldEntity.prototype, "attributes", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.ManyToOne)(() => access_business_entity_1.AccessBusinessEntity),
66
+ (0, typeorm_1.JoinColumn)({ name: 'business_id' }),
67
+ __metadata("design:type", access_business_entity_1.AccessBusinessEntity)
68
+ ], CustomFieldEntity.prototype, "business", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.LookupValueEntity),
71
+ (0, typeorm_1.JoinColumn)({ name: 'type_id' }),
72
+ __metadata("design:type", nestjs_utility_services_1.LookupValueEntity)
73
+ ], CustomFieldEntity.prototype, "type", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.ManyToOne)(() => nestjs_utility_services_1.LookupValueEntity),
76
+ (0, typeorm_1.JoinColumn)({ name: 'column_type_id' }),
77
+ __metadata("design:type", nestjs_utility_services_1.LookupValueEntity)
78
+ ], CustomFieldEntity.prototype, "column_type", void 0);
79
+ exports.CustomFieldEntity = CustomFieldEntity = __decorate([
80
+ (0, typeorm_1.Entity)('bz_custom_fields')
81
+ ], CustomFieldEntity);
82
+ //# sourceMappingURL=custom.field.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom.field.entity.js","sourceRoot":"","sources":["../../../src/access/entities/custom.field.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,oFAAyF;AACzF,qFAA+E;AAC/E,qEAAgE;AASzD,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,sCAAY;CAwClD,CAAA;AAxCY,8CAAiB;AAE1B;IADC,IAAA,gBAAM,GAAE;;sDACW;AAGpB;IADC,IAAA,gBAAM,GAAE;;kDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;yDACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;yDACc;AAGvB;IADC,IAAA,gBAAM,GAAE;;qDACU;AAGnB;IADC,IAAA,gBAAM,GAAE;;+CACI;AAGb;IADC,IAAA,gBAAM,GAAE;;mDACQ;AAGjB;IADC,IAAA,gBAAM,GAAE;;wDACa;AAGtB;IADC,IAAA,gBAAM,GAAE;;iDACO;AAGhB;IADC,IAAA,gBAAM,GAAE;;uDACa;AAGtB;IADC,IAAA,gBAAM,EAAC,MAAM,CAAC;8BACH,sDAAwB;qDAAC;AAGuC;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6CAAoB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;8BAAW,6CAAoB;mDAAC;AAEtC;IAApE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8BAAO,2CAAiB;+CAAC;AAEjB;IAA3E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAiB,CAAC;IAAE,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;8BAAc,2CAAiB;sDAAC;4BAvClG,iBAAiB;IAD7B,IAAA,gBAAM,EAAC,kBAAkB,CAAC;GACd,iBAAiB,CAwC7B"}
@@ -6,7 +6,10 @@ export * from './business.user.entity';
6
6
  export * from './business.user.group.entity';
7
7
  export * from './business.user.role.entity';
8
8
  export * from './child.menu.entity';
9
+ export * from './choice.list.entity';
10
+ export * from './choice.type.entity';
9
11
  export * from './conversation.entity';
12
+ export * from './custom.field.entity';
10
13
  export * from './custom.report.entity';
11
14
  export * from './dashboard.component.entity';
12
15
  export * from './dashboard.entity';