@merkaly/api 0.2.4-0 → 0.2.4-10
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.
- package/.output/abstract/abstract.entity.d.ts +1 -1
- package/.output/abstract/abstract.exception.d.ts +11 -0
- package/.output/abstract/abstract.exception.js +53 -0
- package/.output/abstract/abstract.validator.d.ts +2 -2
- package/.output/abstract/abstract.validator.js +1 -0
- package/.output/exceptions/missing-identity.exception.d.ts +5 -0
- package/.output/{modules/setting/organization/organization.entity.js → exceptions/missing-identity.exception.js} +12 -10
- package/.output/exceptions/store-not-implemented.exception.d.ts +5 -0
- package/.output/exceptions/store-not-implemented.exception.js +31 -0
- package/.output/exceptions/store-not-recognized.exception.d.ts +5 -0
- package/.output/exceptions/store-not-recognized.exception.js +30 -0
- package/.output/modules/inventory/brands/brand.exception.d.ts +5 -0
- package/.output/modules/{setting/theme/theme.entity.js → inventory/brands/brand.exception.js} +15 -21
- package/.output/modules/inventory/categories/category.exception.d.ts +5 -0
- package/.output/modules/{setting/layout/layout.entity.js → inventory/categories/category.exception.js} +15 -21
- package/.output/modules/inventory/products/product.entity.d.ts +1 -0
- package/.output/modules/inventory/products/product.exception.d.ts +5 -0
- package/.output/modules/inventory/products/{entities/price.entity.js → product.exception.js} +15 -24
- package/.output/modules/inventory/products/product.validator.d.ts +2 -1
- package/.output/modules/inventory/products/product.validator.js +7 -0
- package/.output/modules/inventory/properties/property.exception.d.ts +5 -0
- package/.output/modules/inventory/{brands/brand.entity.js → properties/property.exception.js} +15 -25
- package/.output/modules/sales/clients/client.exception.d.ts +5 -0
- package/.output/modules/sales/clients/client.exception.js +40 -0
- package/.output/modules/sales/orders/billing/billing.entity.d.ts +8 -6
- package/.output/modules/sales/orders/billing/billing.types.d.ts +9 -0
- package/.output/modules/sales/orders/billing/billing.types.js +14 -0
- package/.output/modules/sales/orders/billing/billing.validator.d.ts +6 -10
- package/.output/modules/sales/orders/billing/billing.validator.js +10 -15
- package/.output/modules/sales/orders/{address → billing/entities}/address.entity.d.ts +2 -1
- package/.output/modules/sales/orders/billing/entities/customer.entity.d.ts +5 -0
- package/.output/modules/sales/orders/billing/entities/status.entity.d.ts +6 -0
- package/.output/modules/sales/orders/{address → billing/validators}/address.validator.d.ts +2 -1
- package/.output/modules/sales/orders/{address → billing/validators}/address.validator.js +12 -14
- package/.output/modules/sales/orders/billing/validators/customer.validator.d.ts +5 -0
- package/.output/modules/sales/orders/{status/status.entity.js → billing/validators/customer.validator.js} +20 -21
- package/.output/modules/sales/orders/customer/customer.validator.d.ts +1 -1
- package/.output/modules/sales/orders/customer/customer.validator.js +8 -8
- package/.output/modules/sales/orders/order.entity.d.ts +1 -1
- package/.output/modules/sales/orders/order.exception.d.ts +13 -0
- package/.output/modules/sales/orders/order.exception.js +46 -0
- package/.output/modules/sales/orders/order.validator.d.ts +3 -3
- package/.output/modules/sales/orders/order.validator.js +7 -6
- package/.output/modules/sales/orders/shipping/entities/address.entity.d.ts +10 -0
- package/.output/modules/sales/orders/shipping/entities/customer.entity.d.ts +5 -0
- package/.output/modules/sales/orders/shipping/entities/status.entity.d.ts +6 -0
- package/.output/modules/sales/orders/shipping/shipping.entity.d.ts +8 -6
- package/.output/modules/sales/orders/shipping/shipping.types.d.ts +11 -0
- package/.output/modules/sales/orders/shipping/shipping.types.js +16 -0
- package/.output/modules/sales/orders/shipping/shipping.validator.d.ts +6 -9
- package/.output/modules/sales/orders/shipping/shipping.validator.js +10 -14
- package/.output/modules/sales/orders/shipping/validators/address.validator.d.ts +10 -0
- package/.output/modules/sales/orders/shipping/validators/address.validator.js +56 -0
- package/.output/modules/sales/orders/shipping/validators/customer.validator.d.ts +5 -0
- package/.output/modules/sales/orders/shipping/validators/customer.validator.js +36 -0
- package/.output/services/logger.service.d.ts +11 -0
- package/.output/services/logger.service.js +54 -0
- package/.output/types.d.ts +4 -1
- package/README.md +14 -14
- package/package.json +7 -7
- package/.output/abstract/abstract.entity.js +0 -53
- package/.output/modules/assets/asset.entity.js +0 -69
- package/.output/modules/content/banners/banner.entity.js +0 -54
- package/.output/modules/content/pages/page.entity.js +0 -69
- package/.output/modules/inventory/categories/category.entity.js +0 -61
- package/.output/modules/inventory/products/entities/code.entity.js +0 -53
- package/.output/modules/inventory/products/entities/dimension.entity.js +0 -57
- package/.output/modules/inventory/products/entities/seo.entity.js +0 -53
- package/.output/modules/inventory/products/product.entity.js +0 -101
- package/.output/modules/inventory/properties/property.entity.js +0 -55
- package/.output/modules/sales/clients/client.entity.js +0 -64
- package/.output/modules/sales/orders/address/address.entity.js +0 -68
- package/.output/modules/sales/orders/billing/billing.entity.js +0 -59
- package/.output/modules/sales/orders/customer/customer.entity.js +0 -52
- package/.output/modules/sales/orders/item/item.entity.js +0 -58
- package/.output/modules/sales/orders/order.entity.js +0 -89
- package/.output/modules/sales/orders/shipping/shipping.entity.js +0 -63
|
@@ -1,63 +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 customer_entity_1 = require("../customer/customer.entity");
|
|
32
|
-
var address_entity_1 = require("../address/address.entity");
|
|
33
|
-
var shipping_validator_1 = require("./shipping.validator");
|
|
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.AddressEntity();
|
|
39
|
-
_this.customer = new customer_entity_1.CustomerEntity();
|
|
40
|
-
return _this;
|
|
41
|
-
}
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return address_entity_1.AddressEntity; }, default: new address_entity_1.AddressEntity() }),
|
|
44
|
-
__metadata("design:type", Object)
|
|
45
|
-
], ShippingEntity.prototype, "address", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Map, ref: function () { return customer_entity_1.CustomerEntity; }, default: new customer_entity_1.CustomerEntity() }),
|
|
48
|
-
__metadata("design:type", Object)
|
|
49
|
-
], ShippingEntity.prototype, "customer", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.String, enum: shipping_validator_1.ShippingType, required: true }),
|
|
52
|
-
__metadata("design:type", String)
|
|
53
|
-
], ShippingEntity.prototype, "type", void 0);
|
|
54
|
-
__decorate([
|
|
55
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Number, default: 0 }),
|
|
56
|
-
__metadata("design:type", Number)
|
|
57
|
-
], ShippingEntity.prototype, "price", void 0);
|
|
58
|
-
ShippingEntity = __decorate([
|
|
59
|
-
(0, schema_decorator_1.Schema)({})
|
|
60
|
-
], ShippingEntity);
|
|
61
|
-
return ShippingEntity;
|
|
62
|
-
}(Map));
|
|
63
|
-
exports.ShippingEntity = ShippingEntity;
|