@merkaly/api 0.2.5-4 → 0.2.5-6

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 (241) hide show
  1. package/.bin/deploy.sh +9 -0
  2. package/.bin/package.sh +12 -0
  3. package/.docker/Dockerfile +21 -0
  4. package/.dockerignore +12 -0
  5. package/.github/dependabot.yml +17 -0
  6. package/.github/semantic.yml +5 -0
  7. package/.github/workflows/pull_request.yml +35 -0
  8. package/.prettierrc +5 -0
  9. package/app.ts +11 -0
  10. package/authCertificate.pem +19 -0
  11. package/nest-cli.json +8 -0
  12. package/package.json +66 -78
  13. package/src/abstracts/abstarct.repository.ts +62 -0
  14. package/src/abstracts/abstract.controller.ts +18 -0
  15. package/src/abstracts/abstract.entity.ts +22 -0
  16. package/src/abstracts/abstract.router.ts +7 -0
  17. package/src/abstracts/abstract.validator.ts +61 -0
  18. package/src/app.config.ts +59 -0
  19. package/src/app.console.ts +24 -0
  20. package/src/app.guard.ts +39 -0
  21. package/src/app.module.ts +54 -0
  22. package/src/app.strategy.ts +21 -0
  23. package/src/commands/seed.command.ts +263 -0
  24. package/src/decorators/public.decorator.ts +5 -0
  25. package/src/decorators/user.decorator.ts +30 -0
  26. package/src/exceptions/missing-identity.exception.ts +11 -0
  27. package/src/interceptors/mongoose.interceptor.ts +63 -0
  28. package/src/main.ts +27 -0
  29. package/src/middlewares/router.middleware.ts +14 -0
  30. package/src/modules/asset/asset.module.ts +19 -0
  31. package/src/modules/asset/files/file.controller.ts +22 -0
  32. package/src/modules/asset/files/file.entity.ts +24 -0
  33. package/src/modules/asset/files/file.module.ts +21 -0
  34. package/src/modules/asset/files/file.repository.ts +44 -0
  35. package/src/modules/asset/files/file.schema.ts +8 -0
  36. package/src/modules/asset/files/file.service.ts +4 -0
  37. package/src/modules/auth/auth.controller.ts +57 -0
  38. package/src/modules/auth/auth.module.ts +20 -0
  39. package/src/modules/auth/organizations/organization.controller.ts +20 -0
  40. package/src/modules/auth/organizations/organization.entity.ts +22 -0
  41. package/src/modules/auth/organizations/organization.module.ts +21 -0
  42. package/src/modules/auth/organizations/organization.repository.ts +16 -0
  43. package/src/modules/auth/organizations/organization.schema.ts +8 -0
  44. package/src/modules/auth/users/user.controller.ts +23 -0
  45. package/src/modules/auth/users/user.entity.ts +25 -0
  46. package/src/modules/auth/users/user.module.ts +20 -0
  47. package/src/modules/auth/users/user.repository.ts +79 -0
  48. package/src/modules/auth/users/user.schema.ts +8 -0
  49. package/src/modules/auth/users/user.validator.ts +32 -0
  50. package/src/modules/command.module.ts +15 -0
  51. package/src/modules/global.module.ts +46 -0
  52. package/src/modules/inventory/brands/brand.controller.ts +44 -0
  53. package/src/modules/inventory/brands/brand.entity.ts +20 -0
  54. package/src/modules/inventory/brands/brand.module.ts +20 -0
  55. package/src/modules/inventory/brands/brand.repository.ts +40 -0
  56. package/src/modules/inventory/brands/brand.schema.ts +8 -0
  57. package/src/modules/inventory/brands/brand.validator.ts +31 -0
  58. package/src/modules/inventory/categories/category.controller.ts +42 -0
  59. package/src/modules/inventory/categories/category.entity.ts +15 -0
  60. package/src/modules/inventory/categories/category.module.ts +19 -0
  61. package/src/modules/inventory/categories/category.repository.ts +34 -0
  62. package/src/modules/inventory/categories/category.schema.ts +8 -0
  63. package/src/modules/inventory/categories/category.validator.ts +20 -0
  64. package/src/modules/inventory/complements/complement.controller.ts +41 -0
  65. package/src/modules/inventory/complements/complement.entity.ts +15 -0
  66. package/src/modules/inventory/complements/complement.module.ts +19 -0
  67. package/src/modules/inventory/complements/complement.repository.ts +37 -0
  68. package/src/modules/inventory/complements/complement.schema.ts +8 -0
  69. package/src/modules/inventory/complements/complement.validator.ts +28 -0
  70. package/src/modules/inventory/inventory.module.ts +23 -0
  71. package/src/modules/inventory/products/documents/attribute.document.ts +14 -0
  72. package/src/modules/inventory/products/documents/dimension.document.ts +16 -0
  73. package/src/modules/inventory/products/product.controller.ts +62 -0
  74. package/src/modules/inventory/products/product.entity.ts +46 -0
  75. package/src/modules/inventory/products/product.module.ts +19 -0
  76. package/src/modules/inventory/products/product.repository.ts +64 -0
  77. package/src/modules/inventory/products/product.schema.ts +19 -0
  78. package/src/modules/inventory/products/product.validator.ts +132 -0
  79. package/src/modules/inventory/products/validators/attributes.validator.ts +15 -0
  80. package/src/modules/inventory/products/validators/dimension.validator.ts +19 -0
  81. package/src/modules/sale/customers/customer.controller.ts +41 -0
  82. package/src/modules/sale/customers/customer.entity.ts +19 -0
  83. package/src/modules/sale/customers/customer.module.ts +18 -0
  84. package/src/modules/sale/customers/customer.repository.ts +30 -0
  85. package/src/modules/sale/customers/customer.schema.ts +8 -0
  86. package/src/modules/sale/customers/customer.validator.ts +43 -0
  87. package/src/modules/sale/orders/documents/address.document.ts +22 -0
  88. package/src/modules/sale/orders/documents/status.document.ts +17 -0
  89. package/src/modules/sale/orders/entities/item.entity.ts +24 -0
  90. package/src/modules/sale/orders/enums/order.status.ts +6 -0
  91. package/src/modules/sale/orders/order.controller.ts +65 -0
  92. package/src/modules/sale/orders/order.entity.ts +46 -0
  93. package/src/modules/sale/orders/order.module.ts +22 -0
  94. package/src/modules/sale/orders/order.repository.ts +122 -0
  95. package/src/modules/sale/orders/order.schema.ts +36 -0
  96. package/src/modules/sale/orders/order.validator.ts +44 -0
  97. package/src/modules/sale/orders/validators/address.validator.ts +50 -0
  98. package/src/modules/sale/orders/validators/billing.validator.ts +11 -0
  99. package/src/modules/sale/orders/validators/item.validator.ts +14 -0
  100. package/src/modules/sale/orders/validators/payment.validator.ts +44 -0
  101. package/src/modules/sale/orders/validators/shipping.validator.ts +14 -0
  102. package/src/modules/sale/payments/entities/status.entity.ts +17 -0
  103. package/src/modules/sale/payments/enums/billing.type.ts +6 -0
  104. package/src/modules/sale/payments/enums/payment.status.ts +7 -0
  105. package/src/modules/sale/payments/enums/shipping.type.ts +4 -0
  106. package/src/modules/sale/payments/payment.controller.ts +45 -0
  107. package/src/modules/sale/payments/payment.entity.ts +25 -0
  108. package/src/modules/sale/payments/payment.module.ts +20 -0
  109. package/src/modules/sale/payments/payment.repository.ts +57 -0
  110. package/src/modules/sale/payments/payment.schema.ts +14 -0
  111. package/src/modules/sale/payments/payment.validator.ts +32 -0
  112. package/src/modules/sale/sale.module.ts +20 -0
  113. package/src/services/auth0.service.ts +49 -0
  114. package/src/services/mongo.service.ts +52 -0
  115. package/test/auth/auth.spec.ts +20 -0
  116. package/test/main.ts +12 -0
  117. package/tsconfig.build.json +4 -0
  118. package/tsconfig.json +21 -0
  119. package/tsconfig.package.json +22 -0
  120. package/.output/abstract/abstract.entity.d.ts +0 -9
  121. package/.output/abstract/abstract.exception.d.ts +0 -11
  122. package/.output/abstract/abstract.exception.js +0 -53
  123. package/.output/abstract/abstract.fixture.d.ts +0 -4
  124. package/.output/abstract/abstract.fixture.js +0 -11
  125. package/.output/abstract/abstract.validator.d.ts +0 -20
  126. package/.output/abstract/abstract.validator.js +0 -105
  127. package/.output/exceptions/missing-identity.exception.d.ts +0 -5
  128. package/.output/exceptions/missing-identity.exception.js +0 -30
  129. package/.output/exceptions/store-not-implemented.exception.d.ts +0 -5
  130. package/.output/exceptions/store-not-implemented.exception.js +0 -31
  131. package/.output/exceptions/store-not-recognized.exception.d.ts +0 -5
  132. package/.output/exceptions/store-not-recognized.exception.js +0 -30
  133. package/.output/modules/asset/files/file.entity.d.ts +0 -10
  134. package/.output/modules/auth/auth.types.d.ts +0 -3
  135. package/.output/modules/auth/auth.types.js +0 -7
  136. package/.output/modules/auth/users/user.validator.d.ts +0 -10
  137. package/.output/modules/auth/users/user.validator.js +0 -50
  138. package/.output/modules/config/organization/organization.entity.d.ts +0 -21
  139. package/.output/modules/config/organization/organization.types.d.ts +0 -23
  140. package/.output/modules/config/organization/organization.types.js +0 -107
  141. package/.output/modules/config/organization/organization.validator.d.ts +0 -18
  142. package/.output/modules/config/organization/organization.validator.js +0 -88
  143. package/.output/modules/insight/validators/order.validator.d.ts +0 -4
  144. package/.output/modules/insight/validators/order.validator.js +0 -27
  145. package/.output/modules/inventory/brands/brand.entity.d.ts +0 -9
  146. package/.output/modules/inventory/brands/brand.exception.d.ts +0 -5
  147. package/.output/modules/inventory/brands/brand.exception.js +0 -40
  148. package/.output/modules/inventory/brands/brand.validator.d.ts +0 -11
  149. package/.output/modules/inventory/brands/brand.validator.js +0 -75
  150. package/.output/modules/inventory/categories/category.entity.d.ts +0 -12
  151. package/.output/modules/inventory/categories/category.exception.d.ts +0 -5
  152. package/.output/modules/inventory/categories/category.exception.js +0 -40
  153. package/.output/modules/inventory/categories/category.fixture.d.ts +0 -5
  154. package/.output/modules/inventory/categories/category.fixture.js +0 -38
  155. package/.output/modules/inventory/categories/category.validator.d.ts +0 -13
  156. package/.output/modules/inventory/categories/category.validator.js +0 -88
  157. package/.output/modules/inventory/products/entities/code.entity.d.ts +0 -5
  158. package/.output/modules/inventory/products/entities/dimension.entity.d.ts +0 -6
  159. package/.output/modules/inventory/products/entities/seo.entity.d.ts +0 -5
  160. package/.output/modules/inventory/products/entities/variant.entity.d.ts +0 -10
  161. package/.output/modules/inventory/products/product.entity.d.ts +0 -26
  162. package/.output/modules/inventory/products/product.exception.d.ts +0 -5
  163. package/.output/modules/inventory/products/product.exception.js +0 -40
  164. package/.output/modules/inventory/products/product.fixture.d.ts +0 -5
  165. package/.output/modules/inventory/products/product.fixture.js +0 -39
  166. package/.output/modules/inventory/products/product.validator.d.ts +0 -38
  167. package/.output/modules/inventory/products/product.validator.js +0 -235
  168. package/.output/modules/inventory/products/schemas/variant.schema.d.ts +0 -27
  169. package/.output/modules/inventory/products/schemas/variant.schema.js +0 -6
  170. package/.output/modules/inventory/products/validators/code.validator.d.ts +0 -5
  171. package/.output/modules/inventory/products/validators/code.validator.js +0 -37
  172. package/.output/modules/inventory/products/validators/dimension.validator.d.ts +0 -6
  173. package/.output/modules/inventory/products/validators/dimension.validator.js +0 -43
  174. package/.output/modules/inventory/products/validators/seo.validator.d.ts +0 -5
  175. package/.output/modules/inventory/products/validators/seo.validator.js +0 -34
  176. package/.output/modules/inventory/products/validators/variant.validator.d.ts +0 -9
  177. package/.output/modules/inventory/products/validators/variant.validator.js +0 -39
  178. package/.output/modules/inventory/properties/property.entity.d.ts +0 -8
  179. package/.output/modules/inventory/properties/property.exception.d.ts +0 -5
  180. package/.output/modules/inventory/properties/property.exception.js +0 -40
  181. package/.output/modules/inventory/properties/property.types.d.ts +0 -6
  182. package/.output/modules/inventory/properties/property.types.js +0 -10
  183. package/.output/modules/inventory/properties/property.validator.d.ts +0 -12
  184. package/.output/modules/inventory/properties/property.validator.js +0 -79
  185. package/.output/modules/layout/pages/page.entity.d.ts +0 -8
  186. package/.output/modules/layout/pages/page.fixture.d.ts +0 -5
  187. package/.output/modules/layout/pages/page.fixture.js +0 -36
  188. package/.output/modules/layout/pages/page.types.d.ts +0 -20
  189. package/.output/modules/layout/pages/page.types.js +0 -2
  190. package/.output/modules/layout/pages/page.validator.d.ts +0 -8
  191. package/.output/modules/layout/pages/page.validator.js +0 -61
  192. package/.output/modules/sale/customers/customer.entity.d.ts +0 -12
  193. package/.output/modules/sale/customers/customer.exception.d.ts +0 -5
  194. package/.output/modules/sale/customers/customer.exception.js +0 -40
  195. package/.output/modules/sale/customers/customer.validator.d.ts +0 -18
  196. package/.output/modules/sale/customers/customer.validator.js +0 -107
  197. package/.output/modules/sale/orders/billing/billing.entity.d.ts +0 -10
  198. package/.output/modules/sale/orders/billing/billing.types.d.ts +0 -9
  199. package/.output/modules/sale/orders/billing/billing.types.js +0 -14
  200. package/.output/modules/sale/orders/billing/billing.validator.d.ts +0 -9
  201. package/.output/modules/sale/orders/billing/billing.validator.js +0 -42
  202. package/.output/modules/sale/orders/billing/entities/address.entity.d.ts +0 -10
  203. package/.output/modules/sale/orders/billing/entities/customer.entity.d.ts +0 -5
  204. package/.output/modules/sale/orders/billing/entities/status.entity.d.ts +0 -6
  205. package/.output/modules/sale/orders/billing/validators/address.validator.d.ts +0 -10
  206. package/.output/modules/sale/orders/billing/validators/address.validator.js +0 -56
  207. package/.output/modules/sale/orders/billing/validators/customer.validator.d.ts +0 -5
  208. package/.output/modules/sale/orders/billing/validators/customer.validator.js +0 -36
  209. package/.output/modules/sale/orders/customer/customer.entity.d.ts +0 -5
  210. package/.output/modules/sale/orders/customer/customer.validator.d.ts +0 -5
  211. package/.output/modules/sale/orders/customer/customer.validator.js +0 -36
  212. package/.output/modules/sale/orders/item/item.entity.d.ts +0 -9
  213. package/.output/modules/sale/orders/item/item.schema.d.ts +0 -27
  214. package/.output/modules/sale/orders/item/item.schema.js +0 -9
  215. package/.output/modules/sale/orders/item/item.validator.d.ts +0 -4
  216. package/.output/modules/sale/orders/item/item.validator.js +0 -29
  217. package/.output/modules/sale/orders/order.entity.d.ts +0 -21
  218. package/.output/modules/sale/orders/order.exception.d.ts +0 -13
  219. package/.output/modules/sale/orders/order.exception.js +0 -46
  220. package/.output/modules/sale/orders/order.validator.d.ts +0 -28
  221. package/.output/modules/sale/orders/order.validator.js +0 -140
  222. package/.output/modules/sale/orders/shipping/entities/address.entity.d.ts +0 -10
  223. package/.output/modules/sale/orders/shipping/entities/customer.entity.d.ts +0 -5
  224. package/.output/modules/sale/orders/shipping/entities/status.entity.d.ts +0 -6
  225. package/.output/modules/sale/orders/shipping/shipping.entity.d.ts +0 -11
  226. package/.output/modules/sale/orders/shipping/shipping.types.d.ts +0 -11
  227. package/.output/modules/sale/orders/shipping/shipping.types.js +0 -16
  228. package/.output/modules/sale/orders/shipping/shipping.validator.d.ts +0 -10
  229. package/.output/modules/sale/orders/shipping/shipping.validator.js +0 -48
  230. package/.output/modules/sale/orders/shipping/validators/address.validator.d.ts +0 -10
  231. package/.output/modules/sale/orders/shipping/validators/address.validator.js +0 -56
  232. package/.output/modules/sale/orders/shipping/validators/customer.validator.d.ts +0 -5
  233. package/.output/modules/sale/orders/shipping/validators/customer.validator.js +0 -36
  234. package/.output/modules/sale/orders/status/status.entity.d.ts +0 -6
  235. package/.output/modules/sale/orders/status/status.validator.d.ts +0 -8
  236. package/.output/modules/sale/orders/status/status.validator.js +0 -12
  237. package/.output/services/logger.service.d.ts +0 -11
  238. package/.output/services/logger.service.js +0 -50
  239. package/.output/types.d.ts +0 -18
  240. package/.output/types.js +0 -2
  241. package/LICENSE +0 -674
@@ -1,235 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.UpdateProductValidator = exports.CreateProductValidator = void 0;
28
- var class_transformer_1 = require("class-transformer");
29
- var class_validator_1 = require("class-validator");
30
- require("reflect-metadata");
31
- var code_validator_1 = require("./validators/code.validator");
32
- var dimension_validator_1 = require("./validators/dimension.validator");
33
- var seo_validator_1 = require("./validators/seo.validator");
34
- var abstract_validator_1 = require("../../../abstract/abstract.validator");
35
- var variant_validator_1 = require("./validators/variant.validator");
36
- var CreateProductValidator = (function (_super) {
37
- __extends(CreateProductValidator, _super);
38
- function CreateProductValidator() {
39
- var _this = _super !== null && _super.apply(this, arguments) || this;
40
- _this.name = String();
41
- _this.description = String();
42
- _this.category = null;
43
- _this.brand = null;
44
- _this.files = [];
45
- _this.hashtags = [];
46
- _this.seo = new seo_validator_1.ProductSeoValidator();
47
- _this.dimension = new dimension_validator_1.ProductDimensionValidator();
48
- _this.code = new code_validator_1.ProductCodeValidator();
49
- _this.stock = null;
50
- _this.variants = [];
51
- return _this;
52
- }
53
- __decorate([
54
- (0, class_validator_1.IsString)(),
55
- (0, class_validator_1.IsNotEmpty)(),
56
- __metadata("design:type", Object)
57
- ], CreateProductValidator.prototype, "name", void 0);
58
- __decorate([
59
- (0, class_validator_1.IsString)(),
60
- (0, class_validator_1.IsOptional)(),
61
- __metadata("design:type", Object)
62
- ], CreateProductValidator.prototype, "description", void 0);
63
- __decorate([
64
- (0, class_validator_1.IsBoolean)(),
65
- (0, class_validator_1.IsOptional)(),
66
- __metadata("design:type", Boolean)
67
- ], CreateProductValidator.prototype, "active", void 0);
68
- __decorate([
69
- (0, class_validator_1.IsOptional)(),
70
- (0, class_validator_1.IsMongoId)(),
71
- __metadata("design:type", String)
72
- ], CreateProductValidator.prototype, "category", void 0);
73
- __decorate([
74
- (0, class_validator_1.IsOptional)(),
75
- (0, class_validator_1.IsMongoId)(),
76
- __metadata("design:type", String)
77
- ], CreateProductValidator.prototype, "brand", void 0);
78
- __decorate([
79
- (0, class_validator_1.IsMongoId)({ each: true }),
80
- (0, class_validator_1.IsOptional)(),
81
- __metadata("design:type", Array)
82
- ], CreateProductValidator.prototype, "files", void 0);
83
- __decorate([
84
- (0, class_validator_1.IsString)({ each: true }),
85
- __metadata("design:type", Array)
86
- ], CreateProductValidator.prototype, "hashtags", void 0);
87
- __decorate([
88
- (0, class_validator_1.IsNumber)(),
89
- __metadata("design:type", Number)
90
- ], CreateProductValidator.prototype, "price", void 0);
91
- __decorate([
92
- (0, class_validator_1.ValidateNested)(),
93
- (0, class_transformer_1.Type)(function () { return seo_validator_1.ProductSeoValidator; }),
94
- __metadata("design:type", Object)
95
- ], CreateProductValidator.prototype, "seo", void 0);
96
- __decorate([
97
- (0, class_validator_1.ValidateNested)(),
98
- (0, class_transformer_1.Type)(function () { return dimension_validator_1.ProductDimensionValidator; }),
99
- __metadata("design:type", Object)
100
- ], CreateProductValidator.prototype, "dimension", void 0);
101
- __decorate([
102
- (0, class_validator_1.ValidateNested)(),
103
- (0, class_transformer_1.Type)(function () { return code_validator_1.ProductCodeValidator; }),
104
- __metadata("design:type", Object)
105
- ], CreateProductValidator.prototype, "code", void 0);
106
- __decorate([
107
- (0, class_validator_1.IsNumber)(),
108
- (0, class_validator_1.IsOptional)(),
109
- (0, class_validator_1.Min)(0),
110
- __metadata("design:type", Number)
111
- ], CreateProductValidator.prototype, "stock", void 0);
112
- __decorate([
113
- (0, class_validator_1.ValidateNested)(),
114
- (0, class_transformer_1.Type)(function () { return variant_validator_1.ProductVariantValidator; }),
115
- (0, class_validator_1.IsOptional)(),
116
- __metadata("design:type", Array)
117
- ], CreateProductValidator.prototype, "variants", void 0);
118
- return CreateProductValidator;
119
- }(abstract_validator_1.AbstractValidator));
120
- exports.CreateProductValidator = CreateProductValidator;
121
- var UpdateProductValidator = (function () {
122
- function UpdateProductValidator(product) {
123
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
124
- this.seo = new seo_validator_1.ProductSeoValidator();
125
- this.dimension = new dimension_validator_1.ProductDimensionValidator();
126
- this.code = new code_validator_1.ProductCodeValidator();
127
- this.variants = [];
128
- if (!product) {
129
- return;
130
- }
131
- this.name = product.name;
132
- this.description = product.description;
133
- this.active = product.active;
134
- this.category = (_a = product.category) === null || _a === void 0 ? void 0 : _a._id;
135
- this.brand = (_b = product.brand) === null || _b === void 0 ? void 0 : _b._id;
136
- this.files = product.files.map(function (file) { return file._id; });
137
- this.hashtags = product.hashtags;
138
- this.price = product.price;
139
- this.seo.title = (_c = product.seo) === null || _c === void 0 ? void 0 : _c.title;
140
- this.seo.slug = (_d = product.seo) === null || _d === void 0 ? void 0 : _d.slug;
141
- this.seo.description = (_e = product.seo) === null || _e === void 0 ? void 0 : _e.description;
142
- this.dimension.depth = (_f = product.dimension) === null || _f === void 0 ? void 0 : _f.depth;
143
- this.dimension.height = (_g = product.dimension) === null || _g === void 0 ? void 0 : _g.height;
144
- this.dimension.weight = (_h = product.dimension) === null || _h === void 0 ? void 0 : _h.weight;
145
- this.dimension.width = (_j = product.dimension) === null || _j === void 0 ? void 0 : _j.width;
146
- this.code.gtin = (_k = product.code) === null || _k === void 0 ? void 0 : _k.gtin;
147
- this.code.mpn = (_l = product.code) === null || _l === void 0 ? void 0 : _l.mpn;
148
- this.code.sku = (_m = product.code) === null || _m === void 0 ? void 0 : _m.sku;
149
- this.dimension.height = (_o = product.dimension) === null || _o === void 0 ? void 0 : _o.height;
150
- this.dimension.weight = (_p = product.dimension) === null || _p === void 0 ? void 0 : _p.weight;
151
- this.dimension.width = (_q = product.dimension) === null || _q === void 0 ? void 0 : _q.width;
152
- this.variants = product.variants.map(function (variant) { return ({
153
- price: variant.price,
154
- stock: variant.stock,
155
- title: variant.title,
156
- combinations: variant.combinations.map(function (combination) { return ({
157
- property: combination.property._id,
158
- value: combination.value
159
- }); }),
160
- }); });
161
- }
162
- __decorate([
163
- (0, class_validator_1.IsString)(),
164
- (0, class_validator_1.IsNotEmpty)(),
165
- (0, class_validator_1.IsOptional)(),
166
- __metadata("design:type", String)
167
- ], UpdateProductValidator.prototype, "name", void 0);
168
- __decorate([
169
- (0, class_validator_1.IsString)(),
170
- (0, class_validator_1.IsOptional)(),
171
- __metadata("design:type", String)
172
- ], UpdateProductValidator.prototype, "description", void 0);
173
- __decorate([
174
- (0, class_validator_1.IsBoolean)(),
175
- (0, class_validator_1.IsOptional)(),
176
- __metadata("design:type", Boolean)
177
- ], UpdateProductValidator.prototype, "active", void 0);
178
- __decorate([
179
- (0, class_validator_1.IsOptional)(),
180
- (0, class_validator_1.IsMongoId)(),
181
- __metadata("design:type", String)
182
- ], UpdateProductValidator.prototype, "category", void 0);
183
- __decorate([
184
- (0, class_validator_1.IsOptional)(),
185
- (0, class_validator_1.IsMongoId)(),
186
- __metadata("design:type", String)
187
- ], UpdateProductValidator.prototype, "brand", void 0);
188
- __decorate([
189
- (0, class_validator_1.IsMongoId)({ each: true }),
190
- (0, class_validator_1.IsOptional)(),
191
- __metadata("design:type", Array)
192
- ], UpdateProductValidator.prototype, "files", void 0);
193
- __decorate([
194
- (0, class_validator_1.IsString)({ each: true }),
195
- (0, class_validator_1.IsOptional)(),
196
- __metadata("design:type", Array)
197
- ], UpdateProductValidator.prototype, "hashtags", void 0);
198
- __decorate([
199
- (0, class_validator_1.IsNumber)(),
200
- (0, class_validator_1.IsOptional)(),
201
- __metadata("design:type", Number)
202
- ], UpdateProductValidator.prototype, "price", void 0);
203
- __decorate([
204
- (0, class_validator_1.ValidateNested)(),
205
- (0, class_transformer_1.Type)(function () { return seo_validator_1.ProductSeoValidator; }),
206
- (0, class_validator_1.IsOptional)(),
207
- __metadata("design:type", Object)
208
- ], UpdateProductValidator.prototype, "seo", void 0);
209
- __decorate([
210
- (0, class_validator_1.ValidateNested)(),
211
- (0, class_transformer_1.Type)(function () { return dimension_validator_1.ProductDimensionValidator; }),
212
- (0, class_validator_1.IsOptional)(),
213
- __metadata("design:type", Object)
214
- ], UpdateProductValidator.prototype, "dimension", void 0);
215
- __decorate([
216
- (0, class_validator_1.ValidateNested)(),
217
- (0, class_transformer_1.Type)(function () { return code_validator_1.ProductCodeValidator; }),
218
- (0, class_validator_1.IsOptional)(),
219
- __metadata("design:type", Object)
220
- ], UpdateProductValidator.prototype, "code", void 0);
221
- __decorate([
222
- (0, class_validator_1.IsNumber)(),
223
- (0, class_validator_1.IsOptional)(),
224
- (0, class_validator_1.Min)(0),
225
- __metadata("design:type", Number)
226
- ], UpdateProductValidator.prototype, "stock", void 0);
227
- __decorate([
228
- (0, class_validator_1.ValidateNested)(),
229
- (0, class_transformer_1.Type)(function () { return variant_validator_1.ProductVariantValidator; }),
230
- (0, class_validator_1.IsOptional)(),
231
- __metadata("design:type", Array)
232
- ], UpdateProductValidator.prototype, "variants", void 0);
233
- return UpdateProductValidator;
234
- }());
235
- exports.UpdateProductValidator = UpdateProductValidator;
@@ -1,27 +0,0 @@
1
- /// <reference types="mongoose/types/aggregate" />
2
- /// <reference types="mongoose/types/callback" />
3
- /// <reference types="mongoose/types/collection" />
4
- /// <reference types="mongoose/types/connection" />
5
- /// <reference types="mongoose/types/cursor" />
6
- /// <reference types="mongoose/types/document" />
7
- /// <reference types="mongoose/types/error" />
8
- /// <reference types="mongoose/types/expressions" />
9
- /// <reference types="mongoose/types/helpers" />
10
- /// <reference types="mongoose/types/middlewares" />
11
- /// <reference types="mongoose/types/indexes" />
12
- /// <reference types="mongoose/types/models" />
13
- /// <reference types="mongoose/types/mongooseoptions" />
14
- /// <reference types="mongoose/types/pipelinestage" />
15
- /// <reference types="mongoose/types/populate" />
16
- /// <reference types="mongoose/types/query" />
17
- /// <reference types="mongoose/types/schemaoptions" />
18
- /// <reference types="mongoose/types/schematypes" />
19
- /// <reference types="mongoose/types/session" />
20
- /// <reference types="mongoose/types/types" />
21
- /// <reference types="mongoose/types/utility" />
22
- /// <reference types="mongoose/types/validation" />
23
- /// <reference types="mongoose/types/virtuals" />
24
- /// <reference types="mongoose" />
25
- /// <reference types="mongoose/types/inferschematype" />
26
- import { VariantEntity } from '../entities/variant.entity';
27
- export declare const VariantSchema: import("mongoose").Schema<VariantEntity, import("mongoose").Model<VariantEntity, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, VariantEntity>;
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VariantSchema = void 0;
4
- var mongoose_1 = require("@nestjs/mongoose");
5
- var variant_entity_1 = require("../entities/variant.entity");
6
- exports.VariantSchema = mongoose_1.SchemaFactory.createForClass(variant_entity_1.VariantEntity);
@@ -1,5 +0,0 @@
1
- export declare class ProductCodeValidator {
2
- sku?: string;
3
- gtin?: string;
4
- mpn?: string;
5
- }
@@ -1,37 +0,0 @@
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.ProductCodeValidator = void 0;
13
- var class_validator_1 = require("class-validator");
14
- var ProductCodeValidator = (function () {
15
- function ProductCodeValidator() {
16
- this.sku = String();
17
- this.gtin = String();
18
- this.mpn = String();
19
- }
20
- __decorate([
21
- (0, class_validator_1.IsString)(),
22
- (0, class_validator_1.IsOptional)(),
23
- __metadata("design:type", Object)
24
- ], ProductCodeValidator.prototype, "sku", void 0);
25
- __decorate([
26
- (0, class_validator_1.IsString)(),
27
- (0, class_validator_1.IsOptional)(),
28
- __metadata("design:type", Object)
29
- ], ProductCodeValidator.prototype, "gtin", void 0);
30
- __decorate([
31
- (0, class_validator_1.IsString)(),
32
- (0, class_validator_1.IsOptional)(),
33
- __metadata("design:type", Object)
34
- ], ProductCodeValidator.prototype, "mpn", void 0);
35
- return ProductCodeValidator;
36
- }());
37
- exports.ProductCodeValidator = ProductCodeValidator;
@@ -1,6 +0,0 @@
1
- export declare class ProductDimensionValidator {
2
- weight?: number;
3
- height?: number;
4
- width?: number;
5
- depth?: number;
6
- }
@@ -1,43 +0,0 @@
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.ProductDimensionValidator = void 0;
13
- var class_validator_1 = require("class-validator");
14
- var ProductDimensionValidator = (function () {
15
- function ProductDimensionValidator() {
16
- this.weight = 0;
17
- this.height = 0;
18
- this.width = 0;
19
- this.depth = 0;
20
- }
21
- __decorate([
22
- (0, class_validator_1.IsNumber)(),
23
- (0, class_validator_1.IsOptional)(),
24
- __metadata("design:type", Object)
25
- ], ProductDimensionValidator.prototype, "weight", void 0);
26
- __decorate([
27
- (0, class_validator_1.IsNumber)(),
28
- (0, class_validator_1.IsOptional)(),
29
- __metadata("design:type", Object)
30
- ], ProductDimensionValidator.prototype, "height", void 0);
31
- __decorate([
32
- (0, class_validator_1.IsNumber)(),
33
- (0, class_validator_1.IsOptional)(),
34
- __metadata("design:type", Object)
35
- ], ProductDimensionValidator.prototype, "width", void 0);
36
- __decorate([
37
- (0, class_validator_1.IsNumber)(),
38
- (0, class_validator_1.IsOptional)(),
39
- __metadata("design:type", Object)
40
- ], ProductDimensionValidator.prototype, "depth", void 0);
41
- return ProductDimensionValidator;
42
- }());
43
- exports.ProductDimensionValidator = ProductDimensionValidator;
@@ -1,5 +0,0 @@
1
- export declare class ProductSeoValidator {
2
- title?: string;
3
- slug?: string;
4
- description?: string;
5
- }
@@ -1,34 +0,0 @@
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.ProductSeoValidator = void 0;
13
- var class_validator_1 = require("class-validator");
14
- var ProductSeoValidator = (function () {
15
- function ProductSeoValidator() {
16
- }
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsOptional)(),
20
- __metadata("design:type", String)
21
- ], ProductSeoValidator.prototype, "title", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsString)(),
24
- (0, class_validator_1.IsOptional)(),
25
- __metadata("design:type", String)
26
- ], ProductSeoValidator.prototype, "slug", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsString)(),
29
- (0, class_validator_1.IsOptional)(),
30
- __metadata("design:type", String)
31
- ], ProductSeoValidator.prototype, "description", void 0);
32
- return ProductSeoValidator;
33
- }());
34
- exports.ProductSeoValidator = ProductSeoValidator;
@@ -1,9 +0,0 @@
1
- export declare class ProductVariantValidator {
2
- title?: string;
3
- stock?: number;
4
- price?: number;
5
- combinations: {
6
- property: string;
7
- value: string;
8
- }[];
9
- }
@@ -1,39 +0,0 @@
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.ProductVariantValidator = void 0;
13
- var class_validator_1 = require("class-validator");
14
- var ProductVariantValidator = (function () {
15
- function ProductVariantValidator() {
16
- }
17
- __decorate([
18
- (0, class_validator_1.IsString)(),
19
- (0, class_validator_1.IsOptional)(),
20
- __metadata("design:type", String)
21
- ], ProductVariantValidator.prototype, "title", void 0);
22
- __decorate([
23
- (0, class_validator_1.IsNumber)(),
24
- (0, class_validator_1.IsOptional)(),
25
- __metadata("design:type", Number)
26
- ], ProductVariantValidator.prototype, "stock", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsNumber)(),
29
- (0, class_validator_1.IsOptional)(),
30
- __metadata("design:type", Number)
31
- ], ProductVariantValidator.prototype, "price", void 0);
32
- __decorate([
33
- (0, class_validator_1.IsOptional)(),
34
- (0, class_validator_1.IsObject)({ each: true }),
35
- __metadata("design:type", Array)
36
- ], ProductVariantValidator.prototype, "combinations", void 0);
37
- return ProductVariantValidator;
38
- }());
39
- exports.ProductVariantValidator = ProductVariantValidator;
@@ -1,8 +0,0 @@
1
- import { AbstractEntity } from '../../../abstract/abstract.entity';
2
- export declare class PropertyEntity extends AbstractEntity {
3
- static readonly $index = "inventory_properties";
4
- name: string;
5
- title: string;
6
- values: string[];
7
- type: string;
8
- }
@@ -1,5 +0,0 @@
1
- import { HttpException } from '@nestjs/common';
2
- import { AbstractException } from '../../../abstract/abstract.exception';
3
- export declare class PropertyException extends AbstractException {
4
- handleError(exception: HttpException): HttpException;
5
- }
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- Object.defineProperty(exports, "__esModule", { value: true });
24
- exports.PropertyException = void 0;
25
- var common_1 = require("@nestjs/common");
26
- var abstract_exception_1 = require("../../../abstract/abstract.exception");
27
- var PropertyException = (function (_super) {
28
- __extends(PropertyException, _super);
29
- function PropertyException() {
30
- return _super !== null && _super.apply(this, arguments) || this;
31
- }
32
- PropertyException.prototype.handleError = function (exception) {
33
- return exception;
34
- };
35
- PropertyException = __decorate([
36
- (0, common_1.Catch)()
37
- ], PropertyException);
38
- return PropertyException;
39
- }(abstract_exception_1.AbstractException));
40
- exports.PropertyException = PropertyException;
@@ -1,6 +0,0 @@
1
- export declare enum PropertyType {
2
- TEXT = "TEXT",
3
- COLOR = "COLOR",
4
- RADIO = "RADIO",
5
- CHECKBOX = "CHECKBOX"
6
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PropertyType = void 0;
4
- var PropertyType;
5
- (function (PropertyType) {
6
- PropertyType["TEXT"] = "TEXT";
7
- PropertyType["COLOR"] = "COLOR";
8
- PropertyType["RADIO"] = "RADIO";
9
- PropertyType["CHECKBOX"] = "CHECKBOX";
10
- })(PropertyType = exports.PropertyType || (exports.PropertyType = {}));
@@ -1,12 +0,0 @@
1
- import { AbstractValidator } from "../../../abstract/abstract.validator";
2
- import { PropertyType } from './property.types';
3
- export declare class CreatePropertyValidator extends AbstractValidator {
4
- name: string;
5
- title?: string;
6
- type: PropertyType;
7
- values: string[];
8
- }
9
- export declare class UpdatePropertyValidator extends AbstractValidator {
10
- name?: string;
11
- values?: string[];
12
- }
@@ -1,79 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
18
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
19
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
20
- 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;
21
- return c > 3 && r && Object.defineProperty(target, key, r), r;
22
- };
23
- var __metadata = (this && this.__metadata) || function (k, v) {
24
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.UpdatePropertyValidator = exports.CreatePropertyValidator = void 0;
28
- var class_validator_1 = require("class-validator");
29
- var abstract_validator_1 = require("../../../abstract/abstract.validator");
30
- var property_types_1 = require("./property.types");
31
- var CreatePropertyValidator = (function (_super) {
32
- __extends(CreatePropertyValidator, _super);
33
- function CreatePropertyValidator() {
34
- var _this = _super !== null && _super.apply(this, arguments) || this;
35
- _this.type = property_types_1.PropertyType.TEXT;
36
- _this.values = [];
37
- return _this;
38
- }
39
- __decorate([
40
- (0, class_validator_1.IsString)(),
41
- __metadata("design:type", String)
42
- ], CreatePropertyValidator.prototype, "name", void 0);
43
- __decorate([
44
- (0, class_validator_1.IsString)(),
45
- (0, class_validator_1.IsOptional)(),
46
- __metadata("design:type", String)
47
- ], CreatePropertyValidator.prototype, "title", void 0);
48
- __decorate([
49
- (0, class_validator_1.IsEnum)(property_types_1.PropertyType),
50
- (0, class_validator_1.IsOptional)(),
51
- __metadata("design:type", String)
52
- ], CreatePropertyValidator.prototype, "type", void 0);
53
- __decorate([
54
- (0, class_validator_1.IsString)({ each: true }),
55
- __metadata("design:type", Array)
56
- ], CreatePropertyValidator.prototype, "values", void 0);
57
- return CreatePropertyValidator;
58
- }(abstract_validator_1.AbstractValidator));
59
- exports.CreatePropertyValidator = CreatePropertyValidator;
60
- var UpdatePropertyValidator = (function (_super) {
61
- __extends(UpdatePropertyValidator, _super);
62
- function UpdatePropertyValidator() {
63
- var _this = _super !== null && _super.apply(this, arguments) || this;
64
- _this.values = [];
65
- return _this;
66
- }
67
- __decorate([
68
- (0, class_validator_1.IsString)(),
69
- (0, class_validator_1.IsOptional)(),
70
- __metadata("design:type", String)
71
- ], UpdatePropertyValidator.prototype, "name", void 0);
72
- __decorate([
73
- (0, class_validator_1.IsString)({ each: true }),
74
- (0, class_validator_1.IsOptional)(),
75
- __metadata("design:type", Array)
76
- ], UpdatePropertyValidator.prototype, "values", void 0);
77
- return UpdatePropertyValidator;
78
- }(abstract_validator_1.AbstractValidator));
79
- exports.UpdatePropertyValidator = UpdatePropertyValidator;
@@ -1,8 +0,0 @@
1
- import { AbstractEntity } from '../../../abstract/abstract.entity';
2
- export declare class PageEntity<C = Record<string, any>> extends AbstractEntity {
3
- static readonly $index = "layout_pages";
4
- name: string;
5
- title: string;
6
- description: string;
7
- content: C;
8
- }
@@ -1,5 +0,0 @@
1
- import { AbstractFixture } from '../../../abstract/abstract.fixture';
2
- import { CreatePageValidator } from './page.validator';
3
- export declare class PageFixture extends AbstractFixture {
4
- normal(): CreatePageValidator;
5
- }