@merkaly/api 0.2.2-29 → 0.2.2-30

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 (47) hide show
  1. package/.output/modules/content/banners/banner.document.d.ts +16 -0
  2. package/.output/modules/content/banners/banner.document.js +31 -0
  3. package/.output/modules/content/banners/banner.entity.d.ts +19 -0
  4. package/.output/modules/content/banners/banner.entity.js +104 -0
  5. package/.output/modules/content/banners/banner.validator.d.ts +7 -0
  6. package/.output/modules/content/banners/banner.validator.js +58 -0
  7. package/.output/modules/{store → sales}/clients/client.entity.d.ts +0 -0
  8. package/.output/modules/{store → sales}/clients/client.entity.js +0 -0
  9. package/.output/modules/{store → sales}/clients/client.validator.d.ts +0 -0
  10. package/.output/modules/{store → sales}/clients/client.validator.js +0 -0
  11. package/.output/modules/{store → sales}/orders/billing/billing.document.d.ts +0 -0
  12. package/.output/modules/{store → sales}/orders/billing/billing.document.js +0 -0
  13. package/.output/modules/{store → sales}/orders/billing/billing.entity.d.ts +0 -0
  14. package/.output/modules/{store → sales}/orders/billing/billing.entity.js +0 -0
  15. package/.output/modules/{store → sales}/orders/billing/billing.validator.d.ts +0 -0
  16. package/.output/modules/{store → sales}/orders/billing/billing.validator.js +0 -0
  17. package/.output/modules/{store → sales}/orders/item/item.document.d.ts +0 -0
  18. package/.output/modules/{store → sales}/orders/item/item.document.js +0 -0
  19. package/.output/modules/{store → sales}/orders/item/item.entity.d.ts +0 -0
  20. package/.output/modules/{store → sales}/orders/item/item.entity.js +0 -0
  21. package/.output/modules/{store → sales}/orders/item/item.schema.d.ts +0 -0
  22. package/.output/modules/{store → sales}/orders/item/item.schema.js +0 -0
  23. package/.output/modules/{store → sales}/orders/item/item.validator.d.ts +0 -0
  24. package/.output/modules/{store → sales}/orders/item/item.validator.js +0 -0
  25. package/.output/modules/{store → sales}/orders/order.entity.d.ts +0 -0
  26. package/.output/modules/{store → sales}/orders/order.entity.js +0 -0
  27. package/.output/modules/{store → sales}/orders/order.validator.d.ts +0 -0
  28. package/.output/modules/{store → sales}/orders/order.validator.js +0 -0
  29. package/.output/modules/{store → sales}/orders/payment/payment.entity.d.ts +0 -0
  30. package/.output/modules/{store → sales}/orders/payment/payment.entity.js +0 -0
  31. package/.output/modules/{store → sales}/orders/payment/payment.schema.d.ts +0 -0
  32. package/.output/modules/{store → sales}/orders/payment/payment.schema.js +0 -0
  33. package/.output/modules/{store → sales}/orders/payment/payment.validator.d.ts +0 -0
  34. package/.output/modules/{store → sales}/orders/payment/payment.validator.js +0 -0
  35. package/.output/modules/{store → sales}/orders/shipping/shipping.document.d.ts +0 -0
  36. package/.output/modules/{store → sales}/orders/shipping/shipping.document.js +0 -0
  37. package/.output/modules/{store → sales}/orders/shipping/shipping.entity.d.ts +0 -0
  38. package/.output/modules/{store → sales}/orders/shipping/shipping.entity.js +0 -0
  39. package/.output/modules/{store → sales}/orders/shipping/shipping.validator.d.ts +0 -0
  40. package/.output/modules/{store → sales}/orders/shipping/shipping.validator.js +0 -0
  41. package/.output/modules/{store → sales}/orders/status/status.document.d.ts +0 -0
  42. package/.output/modules/{store → sales}/orders/status/status.document.js +0 -0
  43. package/.output/modules/{store → sales}/orders/status/status.entity.d.ts +0 -0
  44. package/.output/modules/{store → sales}/orders/status/status.entity.js +0 -0
  45. package/.output/modules/{store → sales}/orders/status/status.validator.d.ts +0 -0
  46. package/.output/modules/{store → sales}/orders/status/status.validator.js +0 -0
  47. package/package.json +1 -1
@@ -0,0 +1,16 @@
1
+ import { AbstractDocument } from '../../../abstract/abstract.document';
2
+ export declare class BannerDocument extends AbstractDocument {
3
+ title: string;
4
+ description: string;
5
+ image: string;
6
+ size: number;
7
+ cta: {
8
+ variant: string;
9
+ text: string;
10
+ to: string;
11
+ };
12
+ tip?: {
13
+ variant: string;
14
+ text: string;
15
+ };
16
+ }
@@ -0,0 +1,31 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.BannerDocument = void 0;
19
+ var abstract_document_1 = require("../../../abstract/abstract.document");
20
+ var BannerDocument = (function (_super) {
21
+ __extends(BannerDocument, _super);
22
+ function BannerDocument() {
23
+ var _this = _super !== null && _super.apply(this, arguments) || this;
24
+ _this.description = null;
25
+ _this.image = null;
26
+ _this.size = 6;
27
+ return _this;
28
+ }
29
+ return BannerDocument;
30
+ }(abstract_document_1.AbstractDocument));
31
+ exports.BannerDocument = BannerDocument;
@@ -0,0 +1,19 @@
1
+ import { AbstractEntity } from '../../../abstract/abstract.entity';
2
+ export declare class BannerCta extends Map {
3
+ variant: string;
4
+ text: string;
5
+ to: string;
6
+ }
7
+ export declare class BannerTip extends Map {
8
+ variant: string;
9
+ text: string;
10
+ }
11
+ export declare class BannerEntity extends AbstractEntity {
12
+ static readonly $index = "content_banners";
13
+ title: string;
14
+ description: string;
15
+ image: string;
16
+ size: number;
17
+ cta: BannerCta;
18
+ tip?: BannerTip;
19
+ }
@@ -0,0 +1,104 @@
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.BannerEntity = exports.BannerTip = exports.BannerCta = void 0;
28
+ var mongoose_1 = require("@nestjs/mongoose");
29
+ var mongoose_2 = require("mongoose");
30
+ var abstract_entity_1 = require("../../../abstract/abstract.entity");
31
+ var BannerCta = (function (_super) {
32
+ __extends(BannerCta, _super);
33
+ function BannerCta() {
34
+ return _super !== null && _super.apply(this, arguments) || this;
35
+ }
36
+ __decorate([
37
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
38
+ __metadata("design:type", String)
39
+ ], BannerCta.prototype, "variant", void 0);
40
+ __decorate([
41
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
42
+ __metadata("design:type", String)
43
+ ], BannerCta.prototype, "text", void 0);
44
+ __decorate([
45
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
46
+ __metadata("design:type", String)
47
+ ], BannerCta.prototype, "to", void 0);
48
+ return BannerCta;
49
+ }(Map));
50
+ exports.BannerCta = BannerCta;
51
+ var BannerTip = (function (_super) {
52
+ __extends(BannerTip, _super);
53
+ function BannerTip() {
54
+ return _super !== null && _super.apply(this, arguments) || this;
55
+ }
56
+ __decorate([
57
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
58
+ __metadata("design:type", String)
59
+ ], BannerTip.prototype, "variant", void 0);
60
+ __decorate([
61
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
62
+ __metadata("design:type", String)
63
+ ], BannerTip.prototype, "text", void 0);
64
+ return BannerTip;
65
+ }(Map));
66
+ exports.BannerTip = BannerTip;
67
+ var BannerEntity = (function (_super) {
68
+ __extends(BannerEntity, _super);
69
+ function BannerEntity() {
70
+ var _this = _super !== null && _super.apply(this, arguments) || this;
71
+ _this.size = 6;
72
+ return _this;
73
+ }
74
+ BannerEntity.$index = 'content_banners';
75
+ __decorate([
76
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
77
+ __metadata("design:type", String)
78
+ ], BannerEntity.prototype, "title", void 0);
79
+ __decorate([
80
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, default: null }),
81
+ __metadata("design:type", String)
82
+ ], BannerEntity.prototype, "description", void 0);
83
+ __decorate([
84
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, default: null }),
85
+ __metadata("design:type", String)
86
+ ], BannerEntity.prototype, "image", void 0);
87
+ __decorate([
88
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Number, default: 6 }),
89
+ __metadata("design:type", Object)
90
+ ], BannerEntity.prototype, "size", void 0);
91
+ __decorate([
92
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return BannerCta; }, default: new BannerCta() }),
93
+ __metadata("design:type", BannerCta)
94
+ ], BannerEntity.prototype, "cta", void 0);
95
+ __decorate([
96
+ (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return BannerTip; } }),
97
+ __metadata("design:type", BannerTip)
98
+ ], BannerEntity.prototype, "tip", void 0);
99
+ BannerEntity = __decorate([
100
+ (0, mongoose_1.Schema)({ timestamps: true })
101
+ ], BannerEntity);
102
+ return BannerEntity;
103
+ }(abstract_entity_1.AbstractEntity));
104
+ exports.BannerEntity = BannerEntity;
@@ -0,0 +1,7 @@
1
+ export declare class CreateBannerValidator {
2
+ title: string;
3
+ description: string;
4
+ image: string;
5
+ }
6
+ export declare class UpdateBannerValidator extends CreateBannerValidator {
7
+ }
@@ -0,0 +1,58 @@
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.UpdateBannerValidator = exports.CreateBannerValidator = void 0;
28
+ var class_validator_1 = require("class-validator");
29
+ var CreateBannerValidator = (function () {
30
+ function CreateBannerValidator() {
31
+ this.description = null;
32
+ this.image = null;
33
+ }
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ __metadata("design:type", String)
37
+ ], CreateBannerValidator.prototype, "title", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsString)(),
40
+ (0, class_validator_1.IsOptional)(),
41
+ __metadata("design:type", String)
42
+ ], CreateBannerValidator.prototype, "description", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsUrl)(),
45
+ (0, class_validator_1.IsOptional)(),
46
+ __metadata("design:type", String)
47
+ ], CreateBannerValidator.prototype, "image", void 0);
48
+ return CreateBannerValidator;
49
+ }());
50
+ exports.CreateBannerValidator = CreateBannerValidator;
51
+ var UpdateBannerValidator = (function (_super) {
52
+ __extends(UpdateBannerValidator, _super);
53
+ function UpdateBannerValidator() {
54
+ return _super !== null && _super.apply(this, arguments) || this;
55
+ }
56
+ return UpdateBannerValidator;
57
+ }(CreateBannerValidator));
58
+ exports.UpdateBannerValidator = UpdateBannerValidator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merkaly/api",
3
- "version": "0.2.2-29",
3
+ "version": "0.2.2-30",
4
4
  "description": "NestJS Backend ApiRest Service",
5
5
  "repository": {
6
6
  "type": "git",