@merkaly/api 0.2.4-6 → 0.2.4-8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/.output/abstract/abstract.entity.d.ts +1 -1
  2. package/.output/modules/sales/orders/order.entity.d.ts +1 -1
  3. package/.output/modules/sales/orders/order.validator.js +2 -3
  4. package/package.json +6 -6
  5. package/.output/abstract/abstract.entity.js +0 -53
  6. package/.output/modules/assets/asset.entity.js +0 -69
  7. package/.output/modules/content/banners/banner.entity.js +0 -54
  8. package/.output/modules/content/pages/page.entity.js +0 -69
  9. package/.output/modules/inventory/brands/brand.entity.js +0 -50
  10. package/.output/modules/inventory/categories/category.entity.js +0 -61
  11. package/.output/modules/inventory/products/entities/code.entity.js +0 -53
  12. package/.output/modules/inventory/products/entities/dimension.entity.js +0 -57
  13. package/.output/modules/inventory/products/entities/price.entity.js +0 -49
  14. package/.output/modules/inventory/products/entities/seo.entity.js +0 -53
  15. package/.output/modules/inventory/products/product.entity.js +0 -101
  16. package/.output/modules/inventory/properties/property.entity.js +0 -55
  17. package/.output/modules/sales/clients/client.entity.js +0 -64
  18. package/.output/modules/sales/orders/billing/billing.entity.js +0 -64
  19. package/.output/modules/sales/orders/billing/entities/address.entity.js +0 -68
  20. package/.output/modules/sales/orders/billing/entities/customer.entity.js +0 -52
  21. package/.output/modules/sales/orders/billing/entities/status.entity.js +0 -37
  22. package/.output/modules/sales/orders/customer/customer.entity.js +0 -52
  23. package/.output/modules/sales/orders/item/item.entity.js +0 -58
  24. package/.output/modules/sales/orders/order.entity.js +0 -89
  25. package/.output/modules/sales/orders/shipping/entities/address.entity.js +0 -68
  26. package/.output/modules/sales/orders/shipping/entities/customer.entity.js +0 -52
  27. package/.output/modules/sales/orders/shipping/entities/status.entity.js +0 -37
  28. package/.output/modules/sales/orders/shipping/shipping.entity.js +0 -68
  29. package/.output/modules/sales/orders/status/status.entity.js +0 -37
  30. package/.output/modules/setting/layout/layout.entity.js +0 -46
  31. package/.output/modules/setting/organization/organization.entity.js +0 -28
  32. package/.output/modules/setting/theme/theme.entity.js +0 -46
@@ -1,89 +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.OrderEntity = 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 billing_entity_1 = require("./billing/billing.entity");
32
- var item_schema_1 = require("./item/item.schema");
33
- var shipping_entity_1 = require("./shipping/shipping.entity");
34
- var client_entity_1 = require("../clients/client.entity");
35
- var customer_entity_1 = require("./customer/customer.entity");
36
- var OrderEntity = (function (_super) {
37
- __extends(OrderEntity, _super);
38
- function OrderEntity() {
39
- var _this = _super !== null && _super.apply(this, arguments) || this;
40
- _this.status = [];
41
- _this.items = [];
42
- _this.billing = new billing_entity_1.BillingEntity();
43
- _this.shipping = new shipping_entity_1.ShippingEntity();
44
- _this.customer = new customer_entity_1.CustomerEntity();
45
- return _this;
46
- }
47
- OrderEntity.$index = 'store_orders';
48
- __decorate([
49
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Number, required: true, unique: true }),
50
- __metadata("design:type", Number)
51
- ], OrderEntity.prototype, "number", void 0);
52
- __decorate([
53
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Array, default: [] }),
54
- __metadata("design:type", Array)
55
- ], OrderEntity.prototype, "status", void 0);
56
- __decorate([
57
- (0, mongoose_1.Prop)({ type: [item_schema_1.ItemSchema], default: [] }),
58
- __metadata("design:type", Array)
59
- ], OrderEntity.prototype, "items", void 0);
60
- __decorate([
61
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, ref: client_entity_1.ClientEntity.$index }),
62
- __metadata("design:type", client_entity_1.ClientEntity)
63
- ], OrderEntity.prototype, "client", void 0);
64
- __decorate([
65
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return billing_entity_1.BillingEntity; }, default: new billing_entity_1.BillingEntity() }),
66
- __metadata("design:type", Object)
67
- ], OrderEntity.prototype, "billing", void 0);
68
- __decorate([
69
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return shipping_entity_1.ShippingEntity; }, default: new shipping_entity_1.ShippingEntity() }),
70
- __metadata("design:type", Object)
71
- ], OrderEntity.prototype, "shipping", void 0);
72
- __decorate([
73
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return customer_entity_1.CustomerEntity; }, default: new customer_entity_1.CustomerEntity() }),
74
- __metadata("design:type", Object)
75
- ], OrderEntity.prototype, "customer", void 0);
76
- __decorate([
77
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, default: null }),
78
- __metadata("design:type", String)
79
- ], OrderEntity.prototype, "notes", void 0);
80
- __decorate([
81
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
82
- __metadata("design:type", String)
83
- ], OrderEntity.prototype, "createdBy", void 0);
84
- OrderEntity = __decorate([
85
- (0, mongoose_1.Schema)({ timestamps: true, toJSON: { virtuals: true } })
86
- ], OrderEntity);
87
- return OrderEntity;
88
- }(abstract_entity_1.AbstractEntity));
89
- exports.OrderEntity = OrderEntity;
@@ -1,68 +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.ShippingAddressEntity = void 0;
28
- var mongoose_1 = require("@nestjs/mongoose");
29
- var mongoose_2 = require("mongoose");
30
- var ShippingAddressEntity = (function (_super) {
31
- __extends(ShippingAddressEntity, _super);
32
- function ShippingAddressEntity() {
33
- return _super !== null && _super.apply(this, arguments) || this;
34
- }
35
- __decorate([
36
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
37
- __metadata("design:type", String)
38
- ], ShippingAddressEntity.prototype, "country", void 0);
39
- __decorate([
40
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
41
- __metadata("design:type", String)
42
- ], ShippingAddressEntity.prototype, "code", void 0);
43
- __decorate([
44
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
45
- __metadata("design:type", String)
46
- ], ShippingAddressEntity.prototype, "street", void 0);
47
- __decorate([
48
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
49
- __metadata("design:type", String)
50
- ], ShippingAddressEntity.prototype, "number", void 0);
51
- __decorate([
52
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
53
- __metadata("design:type", String)
54
- ], ShippingAddressEntity.prototype, "complement", void 0);
55
- __decorate([
56
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
57
- __metadata("design:type", String)
58
- ], ShippingAddressEntity.prototype, "city", void 0);
59
- __decorate([
60
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
61
- __metadata("design:type", String)
62
- ], ShippingAddressEntity.prototype, "state", void 0);
63
- ShippingAddressEntity = __decorate([
64
- (0, mongoose_1.Schema)()
65
- ], ShippingAddressEntity);
66
- return ShippingAddressEntity;
67
- }(Map));
68
- exports.ShippingAddressEntity = ShippingAddressEntity;
@@ -1,52 +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.ShippingCustomerEntity = void 0;
28
- var mongoose_1 = require("@nestjs/mongoose");
29
- var mongoose_2 = require("mongoose");
30
- var ShippingCustomerEntity = (function (_super) {
31
- __extends(ShippingCustomerEntity, _super);
32
- function ShippingCustomerEntity() {
33
- return _super !== null && _super.apply(this, arguments) || this;
34
- }
35
- __decorate([
36
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true }),
37
- __metadata("design:type", String)
38
- ], ShippingCustomerEntity.prototype, "name", void 0);
39
- __decorate([
40
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
41
- __metadata("design:type", String)
42
- ], ShippingCustomerEntity.prototype, "email", void 0);
43
- __decorate([
44
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
45
- __metadata("design:type", String)
46
- ], ShippingCustomerEntity.prototype, "phone", void 0);
47
- ShippingCustomerEntity = __decorate([
48
- (0, mongoose_1.Schema)()
49
- ], ShippingCustomerEntity);
50
- return ShippingCustomerEntity;
51
- }(Map));
52
- exports.ShippingCustomerEntity = ShippingCustomerEntity;
@@ -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.ShippingStatusEntity = void 0;
13
- var mongoose_1 = require("@nestjs/mongoose");
14
- var schema_decorator_1 = require("@nestjs/mongoose/dist/decorators/schema.decorator");
15
- var mongoose_2 = require("mongoose");
16
- var shipping_types_1 = require("../shipping.types");
17
- var ShippingStatusEntity = (function () {
18
- function ShippingStatusEntity() {
19
- }
20
- __decorate([
21
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, enum: shipping_types_1.ShippingStatus, required: true }),
22
- __metadata("design:type", String)
23
- ], ShippingStatusEntity.prototype, "name", void 0);
24
- __decorate([
25
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
26
- __metadata("design:type", String)
27
- ], ShippingStatusEntity.prototype, "user", void 0);
28
- __decorate([
29
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Date }),
30
- __metadata("design:type", Object)
31
- ], ShippingStatusEntity.prototype, "date", void 0);
32
- ShippingStatusEntity = __decorate([
33
- (0, schema_decorator_1.Schema)({ timestamps: true })
34
- ], ShippingStatusEntity);
35
- return ShippingStatusEntity;
36
- }());
37
- exports.ShippingStatusEntity = ShippingStatusEntity;
@@ -1,68 +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.ShippingEntity = void 0;
28
- var mongoose_1 = require("@nestjs/mongoose");
29
- var schema_decorator_1 = require("@nestjs/mongoose/dist/decorators/schema.decorator");
30
- var mongoose_2 = require("mongoose");
31
- var shipping_types_1 = require("./shipping.types");
32
- var address_entity_1 = require("./entities/address.entity");
33
- var customer_entity_1 = require("./entities/customer.entity");
34
- var ShippingEntity = (function (_super) {
35
- __extends(ShippingEntity, _super);
36
- function ShippingEntity() {
37
- var _this = _super !== null && _super.apply(this, arguments) || this;
38
- _this.address = new address_entity_1.ShippingAddressEntity();
39
- _this.customer = new customer_entity_1.ShippingCustomerEntity();
40
- _this.status = [];
41
- return _this;
42
- }
43
- __decorate([
44
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return address_entity_1.ShippingAddressEntity; }, default: new address_entity_1.ShippingAddressEntity() }),
45
- __metadata("design:type", Object)
46
- ], ShippingEntity.prototype, "address", void 0);
47
- __decorate([
48
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return customer_entity_1.ShippingCustomerEntity; }, default: new customer_entity_1.ShippingCustomerEntity() }),
49
- __metadata("design:type", Object)
50
- ], ShippingEntity.prototype, "customer", void 0);
51
- __decorate([
52
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, enum: shipping_types_1.ShippingMethod, required: true }),
53
- __metadata("design:type", String)
54
- ], ShippingEntity.prototype, "method", void 0);
55
- __decorate([
56
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Number, default: 0 }),
57
- __metadata("design:type", Number)
58
- ], ShippingEntity.prototype, "price", void 0);
59
- __decorate([
60
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Array, default: [] }),
61
- __metadata("design:type", Array)
62
- ], ShippingEntity.prototype, "status", void 0);
63
- ShippingEntity = __decorate([
64
- (0, schema_decorator_1.Schema)({})
65
- ], ShippingEntity);
66
- return ShippingEntity;
67
- }(Map));
68
- exports.ShippingEntity = ShippingEntity;
@@ -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.StatusEntity = void 0;
13
- var mongoose_1 = require("@nestjs/mongoose");
14
- var schema_decorator_1 = require("@nestjs/mongoose/dist/decorators/schema.decorator");
15
- var mongoose_2 = require("mongoose");
16
- var status_validator_1 = require("./status.validator");
17
- var StatusEntity = (function () {
18
- function StatusEntity() {
19
- }
20
- __decorate([
21
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, enum: status_validator_1.StatusType, required: true }),
22
- __metadata("design:type", String)
23
- ], StatusEntity.prototype, "name", void 0);
24
- __decorate([
25
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String }),
26
- __metadata("design:type", String)
27
- ], StatusEntity.prototype, "user", void 0);
28
- __decorate([
29
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Date }),
30
- __metadata("design:type", Object)
31
- ], StatusEntity.prototype, "date", void 0);
32
- StatusEntity = __decorate([
33
- (0, schema_decorator_1.Schema)({ timestamps: true })
34
- ], StatusEntity);
35
- return StatusEntity;
36
- }());
37
- exports.StatusEntity = StatusEntity;
@@ -1,46 +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.LayoutEntity = 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 LayoutEntity = (function (_super) {
32
- __extends(LayoutEntity, _super);
33
- function LayoutEntity() {
34
- return _super !== null && _super.apply(this, arguments) || this;
35
- }
36
- LayoutEntity.$index = 'settings_layout';
37
- __decorate([
38
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true, unique: true, length: 128 }),
39
- __metadata("design:type", String)
40
- ], LayoutEntity.prototype, "path", void 0);
41
- LayoutEntity = __decorate([
42
- (0, mongoose_1.Schema)({ timestamps: true })
43
- ], LayoutEntity);
44
- return LayoutEntity;
45
- }(abstract_entity_1.AbstractEntity));
46
- exports.LayoutEntity = LayoutEntity;
@@ -1,28 +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
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.OrganizationEntity = void 0;
19
- var abstract_entity_1 = require("../../../abstract/abstract.entity");
20
- var OrganizationEntity = (function (_super) {
21
- __extends(OrganizationEntity, _super);
22
- function OrganizationEntity() {
23
- return _super !== null && _super.apply(this, arguments) || this;
24
- }
25
- OrganizationEntity.$index = 'setting_organization';
26
- return OrganizationEntity;
27
- }(abstract_entity_1.AbstractEntity));
28
- exports.OrganizationEntity = OrganizationEntity;
@@ -1,46 +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.ThemeEntity = 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 ThemeEntity = (function (_super) {
32
- __extends(ThemeEntity, _super);
33
- function ThemeEntity() {
34
- return _super !== null && _super.apply(this, arguments) || this;
35
- }
36
- ThemeEntity.$index = 'settings_theme';
37
- __decorate([
38
- (0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, required: true, unique: true, length: 128 }),
39
- __metadata("design:type", String)
40
- ], ThemeEntity.prototype, "path", void 0);
41
- ThemeEntity = __decorate([
42
- (0, mongoose_1.Schema)({ timestamps: true })
43
- ], ThemeEntity);
44
- return ThemeEntity;
45
- }(abstract_entity_1.AbstractEntity));
46
- exports.ThemeEntity = ThemeEntity;