@merkaly/api 0.3.5 → 0.4.0
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/dist/abstract.repository.d.ts +4 -19
- package/dist/abstract.validator.d.ts +4 -1
- package/dist/abstract.validator.js +106 -0
- package/dist/account/address/address.validator.js +59 -0
- package/dist/account/address/index.js +1 -2
- package/dist/account/payment/index.js +1 -2
- package/dist/account/payment/payment.entity.d.ts +5 -4
- package/dist/account/payment/payment.validator.d.ts +12 -5
- package/dist/account/payment/payment.validator.js +92 -0
- package/dist/account/user/index.js +1 -2
- package/dist/account/user/user.validator.js +60 -0
- package/dist/address.entity.d.ts +1 -0
- package/dist/assets/asset/asset.entity.d.ts +0 -1
- package/dist/assets/asset/asset.enum.js +0 -4
- package/dist/assets/asset/index.js +1 -7
- package/dist/finance/invoice/index.js +2 -7
- package/dist/finance/invoice/invoice.entity.d.ts +3 -1
- package/dist/finance/invoice/invoice.enum.js +0 -4
- package/dist/finance/invoice/invoice.validator.d.ts +3 -0
- package/dist/finance/invoice/invoice.validator.js +78 -0
- package/dist/finance/payment/index.d.ts +0 -1
- package/dist/finance/payment/index.js +2 -7
- package/dist/finance/payment/payment.entity.d.ts +8 -6
- package/dist/finance/payment/payment.enum.d.ts +5 -1
- package/dist/finance/payment/payment.enum.js +9 -8
- package/dist/finance/payment/payment.validator.d.ts +4 -2
- package/dist/finance/payment/payment.validator.js +55 -0
- package/dist/finance/refund/index.js +2 -7
- package/dist/finance/refund/refund.enum.js +0 -4
- package/dist/finance/refund/refund.validator.js +67 -0
- package/dist/finance/subscription/index.js +2 -7
- package/dist/finance/subscription/subscription.enum.js +0 -4
- package/dist/finance/subscription/subscription.validator.js +65 -0
- package/dist/finance/tax/index.js +2 -7
- package/dist/finance/tax/tax.enum.js +0 -4
- package/dist/finance/tax/tax.validator.js +55 -0
- package/dist/index.js +1 -2
- package/dist/inventory/catalog/attribute/attribute.entity.d.ts +1 -3
- package/dist/inventory/catalog/attribute/attribute.validator.d.ts +1 -3
- package/dist/inventory/catalog/attribute/attribute.validator.js +38 -0
- package/dist/inventory/catalog/attribute/index.js +1 -2
- package/dist/inventory/catalog/brand/brand.validator.js +31 -0
- package/dist/inventory/catalog/brand/index.js +1 -2
- package/dist/inventory/catalog/category/category.validator.js +31 -0
- package/dist/inventory/catalog/category/index.js +1 -2
- package/dist/inventory/catalog/collection/collection.validator.js +37 -0
- package/dist/inventory/catalog/collection/index.js +1 -2
- package/dist/inventory/catalog/product/index.js +2 -7
- package/dist/inventory/catalog/product/product.entity.d.ts +3 -11
- package/dist/inventory/catalog/product/product.status.enum.js +0 -4
- package/dist/inventory/catalog/product/product.validator.d.ts +4 -6
- package/dist/inventory/catalog/product/product.validator.js +119 -0
- package/dist/inventory/catalog/variant/index.js +1 -2
- package/dist/inventory/catalog/variant/variant.entity.d.ts +4 -2
- package/dist/inventory/catalog/variant/variant.validator.d.ts +5 -5
- package/dist/inventory/catalog/variant/variant.validator.js +118 -0
- package/dist/inventory/configuration/measurement/index.js +1 -2
- package/dist/inventory/configuration/measurement/measurement.validator.js +78 -0
- package/dist/inventory/configuration/unit/index.js +1 -2
- package/dist/inventory/stock/transfer/index.js +1 -2
- package/dist/inventory/stock/transfer/transfer.entity.d.ts +2 -5
- package/dist/inventory/stock/transfer/transfer.validator.d.ts +5 -6
- package/dist/inventory/stock/transfer/transfer.validator.js +99 -0
- package/dist/inventory/stock/warehouse/index.js +1 -2
- package/dist/inventory/stock/warehouse/warehouse.entity.d.ts +3 -13
- package/dist/inventory/stock/warehouse/warehouse.validator.d.ts +2 -12
- package/dist/inventory/stock/warehouse/warehouse.validator.js +56 -0
- package/dist/order/purchase/item/index.js +1 -2
- package/dist/order/purchase/item/item.entity.d.ts +2 -0
- package/dist/order/purchase/item/item.validator.d.ts +1 -0
- package/dist/order/purchase/item/item.validator.js +41 -0
- package/dist/order/purchase/transaction/index.js +2 -7
- package/dist/order/purchase/transaction/transaction.entity.d.ts +2 -1
- package/dist/order/purchase/transaction/transaction.enum.js +0 -4
- package/dist/order/purchase/transaction/transaction.validator.d.ts +0 -2
- package/dist/order/purchase/transaction/transaction.validator.js +65 -0
- package/dist/order/purchase/vendor/index.js +1 -2
- package/dist/order/purchase/vendor/vendor.validator.js +67 -0
- package/dist/order/sale/customer/customer.entity.d.ts +2 -0
- package/dist/order/sale/customer/customer.enum.d.ts +4 -0
- package/dist/order/sale/customer/customer.enum.js +5 -0
- package/dist/order/sale/customer/customer.validator.d.ts +2 -0
- package/dist/order/sale/customer/customer.validator.js +76 -0
- package/dist/order/sale/customer/index.d.ts +1 -0
- package/dist/order/sale/customer/index.js +2 -2
- package/dist/order/sale/item/index.js +1 -2
- package/dist/order/sale/item/item.entity.d.ts +4 -3
- package/dist/order/sale/item/item.validator.d.ts +1 -1
- package/dist/order/sale/item/item.validator.js +34 -0
- package/dist/order/sale/payment/index.js +1 -2
- package/dist/order/sale/payment/payment.validator.d.ts +2 -2
- package/dist/order/sale/payment/payment.validator.js +31 -0
- package/dist/order/sale/shipping/index.d.ts +0 -1
- package/dist/order/sale/shipping/index.js +2 -7
- package/dist/order/sale/shipping/shipping.entity.d.ts +3 -4
- package/dist/order/sale/shipping/shipping.enum.js +0 -4
- package/dist/order/sale/shipping/shipping.validator.d.ts +2 -2
- package/dist/order/sale/shipping/shipping.validator.js +57 -0
- package/dist/order/sale/transaction/index.js +2 -7
- package/dist/order/sale/transaction/transaction.entity.d.ts +1 -1
- package/dist/order/sale/transaction/transaction.enum.js +0 -4
- package/dist/order/sale/transaction/transaction.validator.d.ts +4 -3
- package/dist/order/sale/transaction/transaction.validator.js +76 -0
- package/dist/settings/organization/index.js +2 -7
- package/dist/settings/organization/organization.enum.d.ts +2 -2
- package/dist/settings/organization/organization.enum.js +1 -5
- package/dist/settings/organization/organization.validator.js +35 -0
- package/package.json +11 -9
- package/dist/account/cart/cart.entity.d.ts +0 -8
- package/dist/account/cart/cart.validator.d.ts +0 -13
- package/dist/account/cart/index.d.ts +0 -2
- package/dist/account/cart/index.js +0 -2
- package/dist/account/wishlist/index.d.ts +0 -2
- package/dist/account/wishlist/index.js +0 -2
- package/dist/account/wishlist/wishlist.entity.d.ts +0 -8
- package/dist/account/wishlist/wishlist.validator.d.ts +0 -12
- package/dist/finance/payment/payment.status.entity.d.ts +0 -8
- package/dist/inventory/configuration/label/index.d.ts +0 -2
- package/dist/inventory/configuration/label/index.js +0 -2
- package/dist/inventory/configuration/label/label.entity.d.ts +0 -7
- package/dist/inventory/configuration/label/label.validator.d.ts +0 -14
- package/dist/inventory/stock/backorder/backorder.entity.d.ts +0 -33
- package/dist/inventory/stock/backorder/backorder.validator.d.ts +0 -24
- package/dist/inventory/stock/backorder/index.d.ts +0 -2
- package/dist/inventory/stock/backorder/index.js +0 -2
- package/dist/order/sale/address/address.validator.d.ts +0 -11
- package/dist/order/sale/address/index.d.ts +0 -1
- package/dist/order/sale/address/index.js +0 -2
- package/dist/order/sale/shipping/shipping.status.entity.d.ts +0 -8
|
@@ -8,9 +8,13 @@ export declare enum FinancePaymentStatusEnum {
|
|
|
8
8
|
REFUNDED = "REFUNDED",
|
|
9
9
|
CANCELLED = "CANCELLED"
|
|
10
10
|
}
|
|
11
|
-
export declare enum
|
|
11
|
+
export declare enum FinancePaymentMethodEnum {
|
|
12
12
|
CARD = "CARD",
|
|
13
13
|
TRANSFER = "TRANSFER",
|
|
14
14
|
CASH = "CASH",
|
|
15
15
|
CRYPTO = "CRYPTO"
|
|
16
16
|
}
|
|
17
|
+
export declare enum FinancePaymentTypeEnum {
|
|
18
|
+
SALE = "SALE",
|
|
19
|
+
PURCHASE = "PURCHASE"
|
|
20
|
+
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FinancePaymentTypeEnum = exports.FinancePaymentStatusEnum = void 0;
|
|
4
1
|
var FinancePaymentStatusEnum;
|
|
5
2
|
(function (FinancePaymentStatusEnum) {
|
|
6
3
|
FinancePaymentStatusEnum["OPEN"] = "OPEN";
|
|
@@ -12,11 +9,15 @@ var FinancePaymentStatusEnum;
|
|
|
12
9
|
FinancePaymentStatusEnum["REFUNDED"] = "REFUNDED";
|
|
13
10
|
FinancePaymentStatusEnum["CANCELLED"] = "CANCELLED";
|
|
14
11
|
})(FinancePaymentStatusEnum || (exports.FinancePaymentStatusEnum = FinancePaymentStatusEnum = {}));
|
|
12
|
+
var FinancePaymentMethodEnum;
|
|
13
|
+
(function (FinancePaymentMethodEnum) {
|
|
14
|
+
FinancePaymentMethodEnum["CARD"] = "CARD";
|
|
15
|
+
FinancePaymentMethodEnum["TRANSFER"] = "TRANSFER";
|
|
16
|
+
FinancePaymentMethodEnum["CASH"] = "CASH";
|
|
17
|
+
FinancePaymentMethodEnum["CRYPTO"] = "CRYPTO";
|
|
18
|
+
})(FinancePaymentMethodEnum || (exports.FinancePaymentMethodEnum = FinancePaymentMethodEnum = {}));
|
|
15
19
|
var FinancePaymentTypeEnum;
|
|
16
20
|
(function (FinancePaymentTypeEnum) {
|
|
17
|
-
FinancePaymentTypeEnum["
|
|
18
|
-
FinancePaymentTypeEnum["
|
|
19
|
-
FinancePaymentTypeEnum["CASH"] = "CASH";
|
|
20
|
-
FinancePaymentTypeEnum["CRYPTO"] = "CRYPTO";
|
|
21
|
+
FinancePaymentTypeEnum["SALE"] = "SALE";
|
|
22
|
+
FinancePaymentTypeEnum["PURCHASE"] = "PURCHASE";
|
|
21
23
|
})(FinancePaymentTypeEnum || (exports.FinancePaymentTypeEnum = FinancePaymentTypeEnum = {}));
|
|
22
|
-
//# sourceMappingURL=payment.enum.js.map
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { FinancePaymentEntity } from './';
|
|
2
|
-
import { FinancePaymentStatusEnum,
|
|
2
|
+
import { FinancePaymentTypeEnum, FinancePaymentStatusEnum, FinancePaymentMethodEnum } from './';
|
|
3
3
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
4
4
|
export declare class SearchFinancePaymentValidator extends SearchValidator<FinancePaymentEntity> {
|
|
5
5
|
}
|
|
6
6
|
export declare class ReadFinancePaymentValidator extends ReadValidator<FinancePaymentEntity> {
|
|
7
7
|
}
|
|
8
8
|
export declare class CreateFinancePaymentValidator extends AbstractValidator {
|
|
9
|
+
orderType: FinancePaymentTypeEnum;
|
|
10
|
+
target: string;
|
|
9
11
|
order?: string;
|
|
10
|
-
|
|
12
|
+
method: FinancePaymentMethodEnum;
|
|
11
13
|
details?: unknown;
|
|
12
14
|
total?: number;
|
|
13
15
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as payment_enum_1 from './';
|
|
12
|
+
import * as abstract_validator_1 from '../..';
|
|
13
|
+
export class SearchFinancePaymentValidator extends abstract_validator_1.SearchValidator {
|
|
14
|
+
}
|
|
15
|
+
export class ReadFinancePaymentValidator extends abstract_validator_1.ReadValidator {
|
|
16
|
+
}
|
|
17
|
+
export class CreateFinancePaymentValidator extends abstract_validator_1.AbstractValidator {
|
|
18
|
+
orderType;
|
|
19
|
+
target;
|
|
20
|
+
order;
|
|
21
|
+
method;
|
|
22
|
+
details;
|
|
23
|
+
total;
|
|
24
|
+
}
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(payment_enum_1.FinancePaymentTypeEnum),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CreateFinancePaymentValidator.prototype, "orderType", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateFinancePaymentValidator.prototype, "target", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsMongoId)(),
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], CreateFinancePaymentValidator.prototype, "order", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsEnum)(payment_enum_1.FinancePaymentMethodEnum),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateFinancePaymentValidator.prototype, "method", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsPositive)(),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], CreateFinancePaymentValidator.prototype, "total", void 0);
|
|
47
|
+
export class UpdateFinancePaymentValidator extends CreateFinancePaymentValidator {
|
|
48
|
+
}
|
|
49
|
+
export class UpdateFinancePaymentStatusValidator {
|
|
50
|
+
type;
|
|
51
|
+
}
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsEnum)(payment_enum_1.FinancePaymentStatusEnum),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], UpdateFinancePaymentStatusValidator.prototype, "type", void 0);
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var refund_enum_1 = require("./refund.enum");
|
|
4
|
-
Object.keys(refund_enum_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return refund_enum_1[key]; } });
|
|
7
|
-
});
|
|
1
|
+
export * from './refund.enum.js';
|
|
2
|
+
export * from './refund.validator.js';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FinanceRefundReasonEnum = exports.FinanceRefundStatusEnum = void 0;
|
|
4
1
|
var FinanceRefundStatusEnum;
|
|
5
2
|
(function (FinanceRefundStatusEnum) {
|
|
6
3
|
FinanceRefundStatusEnum["PENDING"] = "PENDING";
|
|
@@ -19,4 +16,3 @@ var FinanceRefundReasonEnum;
|
|
|
19
16
|
FinanceRefundReasonEnum["DUPLICATE_CHARGE"] = "DUPLICATE_CHARGE";
|
|
20
17
|
FinanceRefundReasonEnum["OTHER"] = "OTHER";
|
|
21
18
|
})(FinanceRefundReasonEnum || (exports.FinanceRefundReasonEnum = FinanceRefundReasonEnum = {}));
|
|
22
|
-
//# sourceMappingURL=refund.enum.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as refund_enum_1 from './';
|
|
12
|
+
import * as abstract_validator_1 from '../..';
|
|
13
|
+
export class SearchFinanceRefundValidator extends abstract_validator_1.SearchValidator {
|
|
14
|
+
}
|
|
15
|
+
export class ReadFinanceRefundValidator extends abstract_validator_1.ReadValidator {
|
|
16
|
+
}
|
|
17
|
+
export class CreateFinanceRefundValidator extends abstract_validator_1.AbstractValidator {
|
|
18
|
+
payment;
|
|
19
|
+
reason;
|
|
20
|
+
amount;
|
|
21
|
+
notes;
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsMongoId)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CreateFinanceRefundValidator.prototype, "payment", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsEnum)(refund_enum_1.FinanceRefundReasonEnum),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateFinanceRefundValidator.prototype, "reason", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNumber)(),
|
|
33
|
+
(0, class_validator_1.Min)(0.01),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], CreateFinanceRefundValidator.prototype, "amount", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsString)(),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CreateFinanceRefundValidator.prototype, "notes", void 0);
|
|
41
|
+
export class UpdateFinanceRefundValidator extends abstract_validator_1.AbstractValidator {
|
|
42
|
+
reason;
|
|
43
|
+
amount;
|
|
44
|
+
notes;
|
|
45
|
+
status;
|
|
46
|
+
}
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsEnum)(refund_enum_1.FinanceRefundReasonEnum),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], UpdateFinanceRefundValidator.prototype, "reason", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsNumber)(),
|
|
54
|
+
(0, class_validator_1.Min)(0.01),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], UpdateFinanceRefundValidator.prototype, "amount", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsString)(),
|
|
60
|
+
(0, class_validator_1.IsOptional)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], UpdateFinanceRefundValidator.prototype, "notes", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsEnum)(refund_enum_1.FinanceRefundStatusEnum),
|
|
65
|
+
(0, class_validator_1.IsOptional)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], UpdateFinanceRefundValidator.prototype, "status", void 0);
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var subscription_enum_1 = require("./subscription.enum");
|
|
4
|
-
Object.keys(subscription_enum_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return subscription_enum_1[key]; } });
|
|
7
|
-
});
|
|
1
|
+
export * from './subscription.enum.js';
|
|
2
|
+
export * from './subscription.validator.js';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FinanceSubscriptionIntervalEnum = exports.FinanceSubscriptionStatusEnum = void 0;
|
|
4
1
|
var FinanceSubscriptionStatusEnum;
|
|
5
2
|
(function (FinanceSubscriptionStatusEnum) {
|
|
6
3
|
FinanceSubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
|
|
@@ -18,4 +15,3 @@ var FinanceSubscriptionIntervalEnum;
|
|
|
18
15
|
FinanceSubscriptionIntervalEnum["QUARTERLY"] = "QUARTERLY";
|
|
19
16
|
FinanceSubscriptionIntervalEnum["YEARLY"] = "YEARLY";
|
|
20
17
|
})(FinanceSubscriptionIntervalEnum || (exports.FinanceSubscriptionIntervalEnum = FinanceSubscriptionIntervalEnum = {}));
|
|
21
|
-
//# sourceMappingURL=subscription.enum.js.map
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as subscription_enum_1 from './';
|
|
12
|
+
import * as abstract_validator_1 from '../..';
|
|
13
|
+
export class SearchFinanceSubscriptionValidator extends abstract_validator_1.SearchValidator {
|
|
14
|
+
}
|
|
15
|
+
export class ReadFinanceSubscriptionValidator extends abstract_validator_1.ReadValidator {
|
|
16
|
+
}
|
|
17
|
+
export class CreateFinanceSubscriptionValidator extends abstract_validator_1.AbstractValidator {
|
|
18
|
+
name;
|
|
19
|
+
description;
|
|
20
|
+
price;
|
|
21
|
+
interval;
|
|
22
|
+
intervalCount;
|
|
23
|
+
currentPeriodStart;
|
|
24
|
+
currentPeriodEnd;
|
|
25
|
+
}
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateFinanceSubscriptionValidator.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateFinanceSubscriptionValidator.prototype, "description", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsNumber)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], CreateFinanceSubscriptionValidator.prototype, "price", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsEnum)(subscription_enum_1.FinanceSubscriptionIntervalEnum),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateFinanceSubscriptionValidator.prototype, "interval", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsNumber)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], CreateFinanceSubscriptionValidator.prototype, "intervalCount", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsDate)(),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
__metadata("design:type", Date)
|
|
52
|
+
], CreateFinanceSubscriptionValidator.prototype, "currentPeriodStart", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsDate)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], CreateFinanceSubscriptionValidator.prototype, "currentPeriodEnd", void 0);
|
|
58
|
+
export class UpdateFinanceSubscriptionValidator extends CreateFinanceSubscriptionValidator {
|
|
59
|
+
status;
|
|
60
|
+
}
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsEnum)(subscription_enum_1.FinanceSubscriptionStatusEnum),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], UpdateFinanceSubscriptionValidator.prototype, "status", void 0);
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var tax_enum_1 = require("./tax.enum");
|
|
4
|
-
Object.keys(tax_enum_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return tax_enum_1[key]; } });
|
|
7
|
-
});
|
|
1
|
+
export * from './tax.enum.js';
|
|
2
|
+
export * from './tax.validator.js';
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FinanceTaxTypeEnum = void 0;
|
|
4
1
|
var FinanceTaxTypeEnum;
|
|
5
2
|
(function (FinanceTaxTypeEnum) {
|
|
6
3
|
FinanceTaxTypeEnum["VAT"] = "VAT";
|
|
@@ -10,4 +7,3 @@ var FinanceTaxTypeEnum;
|
|
|
10
7
|
FinanceTaxTypeEnum["WITHHOLDING"] = "WITHHOLDING";
|
|
11
8
|
FinanceTaxTypeEnum["CUSTOM"] = "CUSTOM";
|
|
12
9
|
})(FinanceTaxTypeEnum || (exports.FinanceTaxTypeEnum = FinanceTaxTypeEnum = {}));
|
|
13
|
-
//# sourceMappingURL=tax.enum.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as tax_enum_1 from './';
|
|
12
|
+
import * as abstract_validator_1 from '../..';
|
|
13
|
+
export class SearchFinanceTaxValidator extends abstract_validator_1.SearchValidator {
|
|
14
|
+
}
|
|
15
|
+
export class ReadFinanceTaxValidator extends abstract_validator_1.ReadValidator {
|
|
16
|
+
}
|
|
17
|
+
export class CreateFinanceTaxValidator extends abstract_validator_1.AbstractValidator {
|
|
18
|
+
name;
|
|
19
|
+
description;
|
|
20
|
+
rate;
|
|
21
|
+
type;
|
|
22
|
+
code;
|
|
23
|
+
}
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], CreateFinanceTaxValidator.prototype, "name", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateFinanceTaxValidator.prototype, "description", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
(0, class_validator_1.Min)(0),
|
|
36
|
+
(0, class_validator_1.Max)(100),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], CreateFinanceTaxValidator.prototype, "rate", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsEnum)(tax_enum_1.FinanceTaxTypeEnum),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], CreateFinanceTaxValidator.prototype, "type", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], CreateFinanceTaxValidator.prototype, "code", void 0);
|
|
48
|
+
export class UpdateFinanceTaxValidator extends CreateFinanceTaxValidator {
|
|
49
|
+
isActive;
|
|
50
|
+
}
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsBoolean)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], UpdateFinanceTaxValidator.prototype, "isActive", void 0);
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export * from './abstract.validator.js';
|
|
@@ -6,9 +6,7 @@ export declare class ReadCatalogAttributeValidator extends ReadValidator<Catalog
|
|
|
6
6
|
}
|
|
7
7
|
export declare class CreateCatalogAttributeValidator extends AbstractValidator {
|
|
8
8
|
name: string;
|
|
9
|
-
|
|
10
|
-
options?: string[];
|
|
11
|
-
required?: boolean;
|
|
9
|
+
values?: string[];
|
|
12
10
|
active?: boolean;
|
|
13
11
|
}
|
|
14
12
|
export declare class UpdateCatalogAttributeValidator extends CreateCatalogAttributeValidator {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as abstract_validator_1 from '../../..';
|
|
12
|
+
export class SearchCatalogAttributeValidator extends abstract_validator_1.SearchValidator {
|
|
13
|
+
}
|
|
14
|
+
export class ReadCatalogAttributeValidator extends abstract_validator_1.ReadValidator {
|
|
15
|
+
}
|
|
16
|
+
export class CreateCatalogAttributeValidator extends abstract_validator_1.AbstractValidator {
|
|
17
|
+
name;
|
|
18
|
+
values = [];
|
|
19
|
+
active;
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateCatalogAttributeValidator.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsArray)(),
|
|
28
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], CreateCatalogAttributeValidator.prototype, "values", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], CreateCatalogAttributeValidator.prototype, "active", void 0);
|
|
37
|
+
export class UpdateCatalogAttributeValidator extends CreateCatalogAttributeValidator {
|
|
38
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export * from './attribute.validator.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as abstract_validator_1 from '../../..';
|
|
12
|
+
export class SearchCatalogBrandValidator extends abstract_validator_1.SearchValidator {
|
|
13
|
+
}
|
|
14
|
+
export class ReadCatalogBrandValidator extends abstract_validator_1.ReadValidator {
|
|
15
|
+
}
|
|
16
|
+
export class CreateCatalogBrandValidator extends abstract_validator_1.AbstractValidator {
|
|
17
|
+
name = String();
|
|
18
|
+
description = String();
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", Object)
|
|
24
|
+
], CreateCatalogBrandValidator.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", Object)
|
|
29
|
+
], CreateCatalogBrandValidator.prototype, "description", void 0);
|
|
30
|
+
export class UpdateCatalogBrandValidator extends CreateCatalogBrandValidator {
|
|
31
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export * from './brand.validator.js';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as abstract_validator_1 from '../../..';
|
|
12
|
+
export class SearchCatalogCategoryValidator extends abstract_validator_1.SearchValidator {
|
|
13
|
+
}
|
|
14
|
+
export class ReadCatalogCategoryValidator extends abstract_validator_1.ReadValidator {
|
|
15
|
+
}
|
|
16
|
+
export class CreateCatalogCategoryValidator extends abstract_validator_1.AbstractValidator {
|
|
17
|
+
name;
|
|
18
|
+
description;
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateCatalogCategoryValidator.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateCatalogCategoryValidator.prototype, "description", void 0);
|
|
30
|
+
export class UpdateCatalogCategoryValidator extends CreateCatalogCategoryValidator {
|
|
31
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export * from './category.validator.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
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;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import * as class_validator_1 from "class-validator";
|
|
11
|
+
import * as abstract_validator_1 from '../../..';
|
|
12
|
+
export class SearchCatalogCollectionValidator extends abstract_validator_1.SearchValidator {
|
|
13
|
+
}
|
|
14
|
+
export class ReadCatalogCollectionValidator extends abstract_validator_1.ReadValidator {
|
|
15
|
+
}
|
|
16
|
+
export class CreateCatalogCollectionValidator extends abstract_validator_1.AbstractValidator {
|
|
17
|
+
name;
|
|
18
|
+
description;
|
|
19
|
+
products = [];
|
|
20
|
+
}
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], CreateCatalogCollectionValidator.prototype, "name", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreateCatalogCollectionValidator.prototype, "description", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsMongoId)({ each: true }),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
__metadata("design:type", Array)
|
|
35
|
+
], CreateCatalogCollectionValidator.prototype, "products", void 0);
|
|
36
|
+
export class UpdateCatalogCollectionValidator extends CreateCatalogCollectionValidator {
|
|
37
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export * from './collection.validator.js';
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var product_status_enum_1 = require("./product.status.enum");
|
|
4
|
-
Object.keys(product_status_enum_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return product_status_enum_1[key]; } });
|
|
7
|
-
});
|
|
1
|
+
export * from './product.validator.js';
|
|
2
|
+
export * from './product.status.enum.js';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { AccountWishlistEntity } from '../../../account/wishlist';
|
|
2
1
|
import { AssetEntity } from '../../../assets/asset';
|
|
3
2
|
import { CatalogProductStatus } from './';
|
|
4
3
|
import { AbstractEntity } from '../../..';
|
|
@@ -17,8 +16,8 @@ export declare class CatalogProductEntity extends AbstractEntity {
|
|
|
17
16
|
category?: MongoEntity<CatalogCategoryEntity>;
|
|
18
17
|
brand?: MongoEntity<CatalogBrandEntity>;
|
|
19
18
|
attributes: {
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
type: MongoEntity<CatalogAttributeEntity>;
|
|
20
|
+
values: string[];
|
|
22
21
|
}[];
|
|
23
22
|
measure?: {
|
|
24
23
|
amount: number;
|
|
@@ -27,12 +26,5 @@ export declare class CatalogProductEntity extends AbstractEntity {
|
|
|
27
26
|
};
|
|
28
27
|
hashtags: string[];
|
|
29
28
|
status: CatalogProductStatus;
|
|
30
|
-
|
|
31
|
-
hasVariants: boolean;
|
|
32
|
-
variantAttributes: {
|
|
33
|
-
key: string;
|
|
34
|
-
values: string[];
|
|
35
|
-
}[];
|
|
36
|
-
readonly wishlist?: AccountWishlistEntity[];
|
|
37
|
-
readonly variants?: CatalogVariantEntity[];
|
|
29
|
+
variants: MongoEntity<CatalogVariantEntity>[];
|
|
38
30
|
}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CatalogProductStatus = void 0;
|
|
4
1
|
var CatalogProductStatus;
|
|
5
2
|
(function (CatalogProductStatus) {
|
|
6
3
|
CatalogProductStatus["Draft"] = "draft";
|
|
@@ -10,4 +7,3 @@ var CatalogProductStatus;
|
|
|
10
7
|
CatalogProductStatus["Discontinued"] = "discontinued";
|
|
11
8
|
CatalogProductStatus["ComingSoon"] = "coming_soon";
|
|
12
9
|
})(CatalogProductStatus || (exports.CatalogProductStatus = CatalogProductStatus = {}));
|
|
13
|
-
//# sourceMappingURL=product.status.enum.js.map
|