@merkaly/api 0.3.3 → 0.3.5
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 +13 -3
- package/dist/account/address/index.js +0 -10
- package/dist/account/cart/index.js +0 -10
- package/dist/account/payment/index.js +0 -10
- package/dist/account/user/index.js +0 -10
- package/dist/account/user/user.validator.d.ts +4 -4
- package/dist/account/wishlist/index.js +0 -10
- package/dist/assets/asset/index.js +0 -5
- package/dist/finance/invoice/index.d.ts +3 -0
- package/dist/{billing/status → finance/invoice}/index.js +3 -3
- package/dist/finance/invoice/invoice.entity.d.ts +13 -0
- package/dist/finance/invoice/invoice.enum.d.ts +14 -0
- package/dist/finance/invoice/invoice.enum.js +20 -0
- package/dist/finance/invoice/invoice.validator.d.ts +18 -0
- package/dist/finance/payment/index.d.ts +4 -0
- package/dist/{billing → finance}/payment/index.js +0 -5
- package/dist/finance/payment/payment.entity.d.ts +17 -0
- package/dist/{billing → finance}/payment/payment.enum.d.ts +3 -2
- package/dist/finance/payment/payment.enum.js +22 -0
- package/dist/{billing/status/status.entity.d.ts → finance/payment/payment.status.entity.d.ts} +3 -3
- package/dist/finance/payment/payment.validator.d.ts +18 -0
- package/dist/finance/refund/index.d.ts +3 -0
- package/dist/finance/refund/index.js +7 -0
- package/dist/finance/refund/refund.entity.d.ts +12 -0
- package/dist/finance/refund/refund.enum.d.ts +16 -0
- package/dist/finance/refund/refund.enum.js +22 -0
- package/dist/finance/refund/refund.validator.d.ts +19 -0
- package/dist/finance/subscription/index.d.ts +3 -0
- package/dist/finance/subscription/index.js +7 -0
- package/dist/finance/subscription/subscription.entity.d.ts +15 -0
- package/dist/finance/subscription/subscription.enum.d.ts +15 -0
- package/dist/finance/subscription/subscription.enum.js +21 -0
- package/dist/finance/subscription/subscription.validator.d.ts +19 -0
- package/dist/finance/tax/index.d.ts +3 -0
- package/dist/finance/tax/index.js +7 -0
- package/dist/finance/tax/tax.entity.d.ts +10 -0
- package/dist/finance/tax/tax.enum.d.ts +8 -0
- package/dist/finance/tax/tax.enum.js +13 -0
- package/dist/finance/tax/tax.validator.d.ts +17 -0
- package/dist/index.js +0 -20
- package/dist/inventory/catalog/attribute/attribute.validator.d.ts +4 -4
- package/dist/inventory/catalog/attribute/index.js +0 -10
- package/dist/inventory/catalog/brand/brand.validator.d.ts +4 -4
- package/dist/inventory/catalog/brand/index.js +0 -10
- package/dist/inventory/catalog/category/category.validator.d.ts +4 -4
- package/dist/inventory/catalog/category/index.js +0 -10
- package/dist/inventory/catalog/collection/collection.validator.d.ts +4 -4
- package/dist/inventory/catalog/collection/index.js +0 -10
- package/dist/inventory/catalog/product/index.js +0 -10
- package/dist/inventory/catalog/product/product.entity.d.ts +7 -0
- package/dist/inventory/catalog/product/product.validator.d.ts +6 -6
- package/dist/inventory/catalog/variant/index.d.ts +2 -0
- package/dist/inventory/catalog/variant/index.js +2 -0
- package/dist/inventory/catalog/variant/variant.entity.d.ts +17 -0
- package/dist/inventory/catalog/variant/variant.validator.d.ts +27 -0
- package/dist/inventory/configuration/label/index.js +0 -10
- package/dist/inventory/configuration/label/label.validator.d.ts +4 -4
- package/dist/inventory/configuration/measurement/index.js +0 -10
- package/dist/inventory/configuration/measurement/measurement.validator.d.ts +4 -4
- package/dist/inventory/configuration/unit/index.js +0 -5
- package/dist/inventory/stock/backorder/backorder.validator.d.ts +4 -4
- package/dist/inventory/stock/backorder/index.js +0 -10
- package/dist/inventory/stock/transfer/index.js +0 -10
- package/dist/inventory/stock/transfer/transfer.validator.d.ts +4 -4
- package/dist/inventory/stock/warehouse/index.js +0 -10
- package/dist/inventory/stock/warehouse/warehouse.validator.d.ts +4 -4
- package/dist/order/purchase/item/index.js +0 -10
- package/dist/order/purchase/transaction/index.js +0 -10
- package/dist/order/purchase/vendor/index.js +0 -10
- package/dist/order/sale/address/index.js +0 -5
- package/dist/order/sale/customer/index.js +0 -10
- package/dist/order/sale/item/index.js +0 -10
- package/dist/order/sale/item/item.entity.d.ts +6 -0
- package/dist/order/sale/item/item.validator.d.ts +2 -1
- package/dist/order/sale/payment/index.js +0 -5
- package/dist/order/sale/payment/payment.validator.d.ts +3 -12
- package/dist/order/sale/shipping/index.d.ts +4 -0
- package/dist/order/sale/shipping/index.js +7 -0
- package/dist/order/sale/shipping/shipping.entity.d.ts +19 -0
- package/dist/{logistic/shipment/shipment.enum.d.ts → order/sale/shipping/shipping.enum.d.ts} +2 -2
- package/dist/order/sale/shipping/shipping.enum.js +22 -0
- package/dist/order/sale/shipping/shipping.status.entity.d.ts +8 -0
- package/dist/{logistic/shipment/shipment.validator.d.ts → order/sale/shipping/shipping.validator.d.ts} +7 -7
- package/dist/order/sale/transaction/index.js +0 -10
- package/dist/order/sale/transaction/transaction.entity.d.ts +5 -5
- package/dist/order/sale/transaction/transaction.validator.d.ts +9 -9
- package/dist/settings/organization/index.d.ts +3 -0
- package/dist/settings/organization/index.js +7 -0
- package/dist/settings/organization/organization.entity.d.ts +5 -0
- package/dist/settings/organization/organization.enum.d.ts +13 -0
- package/dist/settings/organization/organization.enum.js +18 -0
- package/dist/settings/organization/organization.validator.d.ts +13 -0
- package/package.json +25 -18
- package/dist/abstract.entity.js +0 -45
- package/dist/abstract.repository.js +0 -200
- package/dist/abstract.validator.js +0 -98
- package/dist/account/address/address.entity.js +0 -34
- package/dist/account/address/address.validator.js +0 -67
- package/dist/account/cart/cart.entity.js +0 -34
- package/dist/account/cart/cart.validator.js +0 -45
- package/dist/account/payment/payment.entity.js +0 -57
- package/dist/account/payment/payment.validator.js +0 -57
- package/dist/account/user/user.entity.js +0 -46
- package/dist/account/user/user.validator.js +0 -68
- package/dist/account/wishlist/wishlist.entity.js +0 -38
- package/dist/account/wishlist/wishlist.validator.js +0 -39
- package/dist/address.entity.js +0 -59
- package/dist/assets/asset/asset.entity.js +0 -58
- package/dist/billing/payment/index.d.ts +0 -2
- package/dist/billing/payment/payment.enum.js +0 -21
- package/dist/billing/payment/transaction.entity.d.ts +0 -15
- package/dist/billing/payment/transaction.entity.js +0 -55
- package/dist/billing/status/index.d.ts +0 -1
- package/dist/billing/status/status.entity.js +0 -40
- package/dist/inventory/catalog/attribute/attribute.entity.js +0 -47
- package/dist/inventory/catalog/attribute/attribute.validator.js +0 -58
- package/dist/inventory/catalog/brand/brand.entity.js +0 -33
- package/dist/inventory/catalog/brand/brand.validator.js +0 -39
- package/dist/inventory/catalog/category/category.entity.js +0 -33
- package/dist/inventory/catalog/category/category.validator.js +0 -39
- package/dist/inventory/catalog/collection/collection.entity.js +0 -42
- package/dist/inventory/catalog/collection/collection.validator.js +0 -45
- package/dist/inventory/catalog/product/product.entity.js +0 -115
- package/dist/inventory/catalog/product/product.validator.js +0 -135
- package/dist/inventory/configuration/label/label.entity.js +0 -42
- package/dist/inventory/configuration/label/label.validator.js +0 -51
- package/dist/inventory/configuration/measurement/measurement.entity.js +0 -42
- package/dist/inventory/configuration/measurement/measurement.validator.js +0 -87
- package/dist/inventory/configuration/unit/unit.entity.js +0 -46
- package/dist/inventory/stock/backorder/backorder.entity.js +0 -106
- package/dist/inventory/stock/backorder/backorder.validator.js +0 -112
- package/dist/inventory/stock/transfer/transfer.entity.js +0 -108
- package/dist/inventory/stock/transfer/transfer.validator.js +0 -108
- package/dist/inventory/stock/warehouse/warehouse.entity.js +0 -67
- package/dist/inventory/stock/warehouse/warehouse.validator.js +0 -115
- package/dist/logistic/carrier/carrier.entity.d.ts +0 -10
- package/dist/logistic/carrier/carrier.entity.js +0 -57
- package/dist/logistic/carrier/carrier.validator.d.ts +0 -17
- package/dist/logistic/carrier/carrier.validator.js +0 -69
- package/dist/logistic/carrier/index.d.ts +0 -2
- package/dist/logistic/carrier/index.js +0 -12
- package/dist/logistic/shipment/index.d.ts +0 -3
- package/dist/logistic/shipment/index.js +0 -17
- package/dist/logistic/shipment/shipment.entity.d.ts +0 -19
- package/dist/logistic/shipment/shipment.entity.js +0 -67
- package/dist/logistic/shipment/shipment.enum.js +0 -22
- package/dist/logistic/shipment/shipment.validator.js +0 -65
- package/dist/order/purchase/item/item.entity.js +0 -46
- package/dist/order/purchase/item/item.validator.js +0 -41
- package/dist/order/purchase/transaction/transaction.entity.js +0 -67
- package/dist/order/purchase/transaction/transaction.validator.js +0 -87
- package/dist/order/purchase/vendor/vendor.entity.js +0 -62
- package/dist/order/purchase/vendor/vendor.validator.js +0 -75
- package/dist/order/sale/address/address.validator.js +0 -70
- package/dist/order/sale/customer/customer.entity.js +0 -62
- package/dist/order/sale/customer/customer.validator.js +0 -77
- package/dist/order/sale/item/item.entity.js +0 -45
- package/dist/order/sale/item/item.validator.js +0 -34
- package/dist/order/sale/payment/payment.validator.js +0 -51
- package/dist/order/sale/transaction/transaction.entity.js +0 -56
- package/dist/order/sale/transaction/transaction.validator.js +0 -76
|
@@ -31,6 +31,9 @@ export declare abstract class AbstractRepository<E extends AbstractEntity = Abst
|
|
|
31
31
|
get $user(): import("../../app.types").AppAuthUser;
|
|
32
32
|
set $identity(value: string);
|
|
33
33
|
get $identity(): string;
|
|
34
|
+
private sanitizePaths;
|
|
35
|
+
private removeNonDeclaredSchemas;
|
|
36
|
+
private applyPopulate;
|
|
34
37
|
search(validator?: SearchValidator<E>): Promise<{
|
|
35
38
|
data: import("mongoose").IfAny<E, any, Document<unknown, {}, E, {}, {}> & (import("mongoose").Require_id<E> extends infer T ? T extends import("mongoose").Require_id<E> ? T extends {
|
|
36
39
|
__v?: infer U;
|
|
@@ -49,8 +52,15 @@ export declare abstract class AbstractRepository<E extends AbstractEntity = Abst
|
|
|
49
52
|
} : never : never)> | Document<string, object, E, Record<string, any>, {}>>;
|
|
50
53
|
update(_id: string, payload: UpdateEntityArgs<E> | AbstractValidator, validator?: ReadValidator): Promise<HydratedDocument<E>>;
|
|
51
54
|
delete(_id: string): Promise<void>;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
findByCreatedAtRange(startDate: Date, endDate: Date): Promise<{
|
|
56
|
+
data: import("mongoose").IfAny<E, any, Document<unknown, {}, E, {}, {}> & (import("mongoose").Require_id<E> extends infer T ? T extends import("mongoose").Require_id<E> ? T extends {
|
|
57
|
+
__v?: infer U;
|
|
58
|
+
} ? T : T & {
|
|
59
|
+
__v: number;
|
|
60
|
+
} : never : never)>[];
|
|
61
|
+
limit: number;
|
|
62
|
+
pages: number;
|
|
63
|
+
total: number;
|
|
64
|
+
}>;
|
|
55
65
|
}
|
|
56
66
|
export {};
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var address_entity_1 = require("./address.entity");
|
|
4
|
-
Object.keys(address_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return address_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var address_validator_1 = require("./address.validator");
|
|
9
|
-
Object.keys(address_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return address_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var cart_entity_1 = require("./cart.entity");
|
|
4
|
-
Object.keys(cart_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return cart_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var cart_validator_1 = require("./cart.validator");
|
|
9
|
-
Object.keys(cart_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return cart_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var payment_entity_1 = require("./payment.entity");
|
|
4
|
-
Object.keys(payment_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return payment_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var payment_validator_1 = require("./payment.validator");
|
|
9
|
-
Object.keys(payment_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return payment_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var user_entity_1 = require("./user.entity");
|
|
4
|
-
Object.keys(user_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return user_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var user_validator_1 = require("./user.validator");
|
|
9
|
-
Object.keys(user_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return user_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AccountUserEntity } from './';
|
|
2
2
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SearchUserValidator extends SearchValidator<AccountUserEntity> {
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadUserValidator extends ReadValidator<AccountUserEntity> {
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateUserValidator extends AbstractValidator {
|
|
8
8
|
name: string;
|
|
9
9
|
picture: string;
|
|
10
10
|
email: string;
|
|
@@ -13,5 +13,5 @@ export declare class CreateAccountUserValidator extends AbstractValidator {
|
|
|
13
13
|
identities: any[];
|
|
14
14
|
active: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class UpdateUserValidator extends CreateUserValidator {
|
|
17
17
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var wishlist_entity_1 = require("./wishlist.entity");
|
|
4
|
-
Object.keys(wishlist_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return wishlist_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var wishlist_validator_1 = require("./wishlist.validator");
|
|
9
|
-
Object.keys(wishlist_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return wishlist_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var asset_entity_1 = require("./asset.entity");
|
|
4
|
-
Object.keys(asset_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return asset_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
3
|
var asset_enum_1 = require("./asset.enum");
|
|
9
4
|
Object.keys(asset_enum_1).forEach(function (key) {
|
|
10
5
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
Object.keys(
|
|
3
|
+
var invoice_enum_1 = require("./invoice.enum");
|
|
4
|
+
Object.keys(invoice_enum_1).forEach(function (key) {
|
|
5
5
|
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return
|
|
6
|
+
Object.defineProperty(exports, key, { enumerable: true, get: function () { return invoice_enum_1[key]; } });
|
|
7
7
|
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractEntity } from '../..';
|
|
2
|
+
import { FinanceInvoiceStatusEnum, FinanceInvoiceTypeEnum } from './';
|
|
3
|
+
export declare class FinanceInvoiceEntity extends AbstractEntity {
|
|
4
|
+
total: number;
|
|
5
|
+
subtotal: number;
|
|
6
|
+
tax: number;
|
|
7
|
+
status: FinanceInvoiceStatusEnum;
|
|
8
|
+
type: FinanceInvoiceTypeEnum;
|
|
9
|
+
sequence: number;
|
|
10
|
+
dueDate?: Date;
|
|
11
|
+
notes?: string;
|
|
12
|
+
readonly number: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum FinanceInvoiceStatusEnum {
|
|
2
|
+
DRAFT = "DRAFT",
|
|
3
|
+
SENT = "SENT",
|
|
4
|
+
PAID = "PAID",
|
|
5
|
+
OVERDUE = "OVERDUE",
|
|
6
|
+
CANCELLED = "CANCELLED",
|
|
7
|
+
VOIDED = "VOIDED"
|
|
8
|
+
}
|
|
9
|
+
export declare enum FinanceInvoiceTypeEnum {
|
|
10
|
+
STANDARD = "STANDARD",
|
|
11
|
+
CREDIT_NOTE = "CREDIT_NOTE",
|
|
12
|
+
DEBIT_NOTE = "DEBIT_NOTE",
|
|
13
|
+
PROFORMA = "PROFORMA"
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FinanceInvoiceTypeEnum = exports.FinanceInvoiceStatusEnum = void 0;
|
|
4
|
+
var FinanceInvoiceStatusEnum;
|
|
5
|
+
(function (FinanceInvoiceStatusEnum) {
|
|
6
|
+
FinanceInvoiceStatusEnum["DRAFT"] = "DRAFT";
|
|
7
|
+
FinanceInvoiceStatusEnum["SENT"] = "SENT";
|
|
8
|
+
FinanceInvoiceStatusEnum["PAID"] = "PAID";
|
|
9
|
+
FinanceInvoiceStatusEnum["OVERDUE"] = "OVERDUE";
|
|
10
|
+
FinanceInvoiceStatusEnum["CANCELLED"] = "CANCELLED";
|
|
11
|
+
FinanceInvoiceStatusEnum["VOIDED"] = "VOIDED";
|
|
12
|
+
})(FinanceInvoiceStatusEnum || (exports.FinanceInvoiceStatusEnum = FinanceInvoiceStatusEnum = {}));
|
|
13
|
+
var FinanceInvoiceTypeEnum;
|
|
14
|
+
(function (FinanceInvoiceTypeEnum) {
|
|
15
|
+
FinanceInvoiceTypeEnum["STANDARD"] = "STANDARD";
|
|
16
|
+
FinanceInvoiceTypeEnum["CREDIT_NOTE"] = "CREDIT_NOTE";
|
|
17
|
+
FinanceInvoiceTypeEnum["DEBIT_NOTE"] = "DEBIT_NOTE";
|
|
18
|
+
FinanceInvoiceTypeEnum["PROFORMA"] = "PROFORMA";
|
|
19
|
+
})(FinanceInvoiceTypeEnum || (exports.FinanceInvoiceTypeEnum = FinanceInvoiceTypeEnum = {}));
|
|
20
|
+
//# sourceMappingURL=invoice.enum.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FinanceInvoiceEntity } from './';
|
|
2
|
+
import { FinanceInvoiceStatusEnum, FinanceInvoiceTypeEnum } from './';
|
|
3
|
+
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
4
|
+
export declare class SearchFinanceInvoiceValidator extends SearchValidator<FinanceInvoiceEntity> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ReadFinanceInvoiceValidator extends ReadValidator<FinanceInvoiceEntity> {
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateFinanceInvoiceValidator extends AbstractValidator {
|
|
9
|
+
type: FinanceInvoiceTypeEnum;
|
|
10
|
+
total?: number;
|
|
11
|
+
subtotal?: number;
|
|
12
|
+
tax?: number;
|
|
13
|
+
dueDate?: Date;
|
|
14
|
+
notes?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class UpdateFinanceInvoiceValidator extends CreateFinanceInvoiceValidator {
|
|
17
|
+
status?: FinanceInvoiceStatusEnum;
|
|
18
|
+
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var transaction_entity_1 = require("./transaction.entity");
|
|
4
|
-
Object.keys(transaction_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return transaction_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
3
|
var payment_enum_1 = require("./payment.enum");
|
|
9
4
|
Object.keys(payment_enum_1).forEach(function (key) {
|
|
10
5
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SaleTransactionEntity } from '../../order/sale/transaction';
|
|
2
|
+
import { AbstractEntity, MongoEntity } from '../..';
|
|
3
|
+
import { FinancePaymentTypeEnum } from './';
|
|
4
|
+
import { FinancePaymentStatusEntity } from './';
|
|
5
|
+
import type { FinanceRefundEntity } from '../refund';
|
|
6
|
+
export declare class FinancePaymentEntity extends AbstractEntity {
|
|
7
|
+
order: MongoEntity<SaleTransactionEntity>;
|
|
8
|
+
statuses: FinancePaymentStatusEntity[];
|
|
9
|
+
total: number;
|
|
10
|
+
fee: number;
|
|
11
|
+
type: FinancePaymentTypeEnum;
|
|
12
|
+
sequence: number;
|
|
13
|
+
refunds: MongoEntity<FinanceRefundEntity>[];
|
|
14
|
+
readonly number: string;
|
|
15
|
+
readonly currentStatus: FinancePaymentStatusEntity;
|
|
16
|
+
readonly refundedTotal: number;
|
|
17
|
+
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum FinancePaymentStatusEnum {
|
|
2
2
|
OPEN = "OPEN",
|
|
3
3
|
PENDING = "PENDING",
|
|
4
4
|
FAILED = "FAILED",
|
|
5
5
|
DISPUTED = "DISPUTED",
|
|
6
6
|
PAID = "PAID",
|
|
7
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
7
8
|
REFUNDED = "REFUNDED",
|
|
8
9
|
CANCELLED = "CANCELLED"
|
|
9
10
|
}
|
|
10
|
-
export declare enum
|
|
11
|
+
export declare enum FinancePaymentTypeEnum {
|
|
11
12
|
CARD = "CARD",
|
|
12
13
|
TRANSFER = "TRANSFER",
|
|
13
14
|
CASH = "CASH",
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FinancePaymentTypeEnum = exports.FinancePaymentStatusEnum = void 0;
|
|
4
|
+
var FinancePaymentStatusEnum;
|
|
5
|
+
(function (FinancePaymentStatusEnum) {
|
|
6
|
+
FinancePaymentStatusEnum["OPEN"] = "OPEN";
|
|
7
|
+
FinancePaymentStatusEnum["PENDING"] = "PENDING";
|
|
8
|
+
FinancePaymentStatusEnum["FAILED"] = "FAILED";
|
|
9
|
+
FinancePaymentStatusEnum["DISPUTED"] = "DISPUTED";
|
|
10
|
+
FinancePaymentStatusEnum["PAID"] = "PAID";
|
|
11
|
+
FinancePaymentStatusEnum["PARTIALLY_REFUNDED"] = "PARTIALLY_REFUNDED";
|
|
12
|
+
FinancePaymentStatusEnum["REFUNDED"] = "REFUNDED";
|
|
13
|
+
FinancePaymentStatusEnum["CANCELLED"] = "CANCELLED";
|
|
14
|
+
})(FinancePaymentStatusEnum || (exports.FinancePaymentStatusEnum = FinancePaymentStatusEnum = {}));
|
|
15
|
+
var FinancePaymentTypeEnum;
|
|
16
|
+
(function (FinancePaymentTypeEnum) {
|
|
17
|
+
FinancePaymentTypeEnum["CARD"] = "CARD";
|
|
18
|
+
FinancePaymentTypeEnum["TRANSFER"] = "TRANSFER";
|
|
19
|
+
FinancePaymentTypeEnum["CASH"] = "CASH";
|
|
20
|
+
FinancePaymentTypeEnum["CRYPTO"] = "CRYPTO";
|
|
21
|
+
})(FinancePaymentTypeEnum || (exports.FinancePaymentTypeEnum = FinancePaymentTypeEnum = {}));
|
|
22
|
+
//# sourceMappingURL=payment.enum.js.map
|
package/dist/{billing/status/status.entity.d.ts → finance/payment/payment.status.entity.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AccountUserEntity } from '../../account/user';
|
|
2
|
-
import {
|
|
2
|
+
import { FinancePaymentStatusEnum } from './';
|
|
3
3
|
import type { MongoEntity } from '../..';
|
|
4
|
-
export declare class
|
|
5
|
-
name:
|
|
4
|
+
export declare class FinancePaymentStatusEntity {
|
|
5
|
+
name: FinancePaymentStatusEnum;
|
|
6
6
|
date: Date;
|
|
7
7
|
user: MongoEntity<AccountUserEntity>;
|
|
8
8
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FinancePaymentEntity } from './';
|
|
2
|
+
import { FinancePaymentStatusEnum, FinancePaymentTypeEnum } from './';
|
|
3
|
+
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
4
|
+
export declare class SearchFinancePaymentValidator extends SearchValidator<FinancePaymentEntity> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ReadFinancePaymentValidator extends ReadValidator<FinancePaymentEntity> {
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateFinancePaymentValidator extends AbstractValidator {
|
|
9
|
+
order?: string;
|
|
10
|
+
type: FinancePaymentTypeEnum;
|
|
11
|
+
details?: unknown;
|
|
12
|
+
total?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare class UpdateFinancePaymentValidator extends CreateFinancePaymentValidator {
|
|
15
|
+
}
|
|
16
|
+
export declare class UpdateFinancePaymentStatusValidator {
|
|
17
|
+
type: FinancePaymentStatusEnum;
|
|
18
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AbstractEntity, MongoEntity } from '../..';
|
|
2
|
+
import { FinanceRefundReasonEnum, FinanceRefundStatusEnum } from './';
|
|
3
|
+
import type { FinancePaymentEntity } from '../payment';
|
|
4
|
+
export declare class FinanceRefundEntity extends AbstractEntity {
|
|
5
|
+
payment: MongoEntity<FinancePaymentEntity>;
|
|
6
|
+
amount: number;
|
|
7
|
+
status: FinanceRefundStatusEnum;
|
|
8
|
+
reason: FinanceRefundReasonEnum;
|
|
9
|
+
sequence: number;
|
|
10
|
+
notes?: string;
|
|
11
|
+
readonly number: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum FinanceRefundStatusEnum {
|
|
2
|
+
PENDING = "PENDING",
|
|
3
|
+
APPROVED = "APPROVED",
|
|
4
|
+
PROCESSING = "PROCESSING",
|
|
5
|
+
COMPLETED = "COMPLETED",
|
|
6
|
+
REJECTED = "REJECTED",
|
|
7
|
+
CANCELLED = "CANCELLED"
|
|
8
|
+
}
|
|
9
|
+
export declare enum FinanceRefundReasonEnum {
|
|
10
|
+
CUSTOMER_REQUEST = "CUSTOMER_REQUEST",
|
|
11
|
+
DEFECTIVE_PRODUCT = "DEFECTIVE_PRODUCT",
|
|
12
|
+
WRONG_ITEM = "WRONG_ITEM",
|
|
13
|
+
ORDER_CANCELLED = "ORDER_CANCELLED",
|
|
14
|
+
DUPLICATE_CHARGE = "DUPLICATE_CHARGE",
|
|
15
|
+
OTHER = "OTHER"
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FinanceRefundReasonEnum = exports.FinanceRefundStatusEnum = void 0;
|
|
4
|
+
var FinanceRefundStatusEnum;
|
|
5
|
+
(function (FinanceRefundStatusEnum) {
|
|
6
|
+
FinanceRefundStatusEnum["PENDING"] = "PENDING";
|
|
7
|
+
FinanceRefundStatusEnum["APPROVED"] = "APPROVED";
|
|
8
|
+
FinanceRefundStatusEnum["PROCESSING"] = "PROCESSING";
|
|
9
|
+
FinanceRefundStatusEnum["COMPLETED"] = "COMPLETED";
|
|
10
|
+
FinanceRefundStatusEnum["REJECTED"] = "REJECTED";
|
|
11
|
+
FinanceRefundStatusEnum["CANCELLED"] = "CANCELLED";
|
|
12
|
+
})(FinanceRefundStatusEnum || (exports.FinanceRefundStatusEnum = FinanceRefundStatusEnum = {}));
|
|
13
|
+
var FinanceRefundReasonEnum;
|
|
14
|
+
(function (FinanceRefundReasonEnum) {
|
|
15
|
+
FinanceRefundReasonEnum["CUSTOMER_REQUEST"] = "CUSTOMER_REQUEST";
|
|
16
|
+
FinanceRefundReasonEnum["DEFECTIVE_PRODUCT"] = "DEFECTIVE_PRODUCT";
|
|
17
|
+
FinanceRefundReasonEnum["WRONG_ITEM"] = "WRONG_ITEM";
|
|
18
|
+
FinanceRefundReasonEnum["ORDER_CANCELLED"] = "ORDER_CANCELLED";
|
|
19
|
+
FinanceRefundReasonEnum["DUPLICATE_CHARGE"] = "DUPLICATE_CHARGE";
|
|
20
|
+
FinanceRefundReasonEnum["OTHER"] = "OTHER";
|
|
21
|
+
})(FinanceRefundReasonEnum || (exports.FinanceRefundReasonEnum = FinanceRefundReasonEnum = {}));
|
|
22
|
+
//# sourceMappingURL=refund.enum.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FinanceRefundEntity } from './';
|
|
2
|
+
import { FinanceRefundReasonEnum, FinanceRefundStatusEnum } from './';
|
|
3
|
+
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
4
|
+
export declare class SearchFinanceRefundValidator extends SearchValidator<FinanceRefundEntity> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ReadFinanceRefundValidator extends ReadValidator<FinanceRefundEntity> {
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateFinanceRefundValidator extends AbstractValidator {
|
|
9
|
+
payment: string;
|
|
10
|
+
reason: FinanceRefundReasonEnum;
|
|
11
|
+
amount: number;
|
|
12
|
+
notes?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class UpdateFinanceRefundValidator extends AbstractValidator {
|
|
15
|
+
reason?: FinanceRefundReasonEnum;
|
|
16
|
+
amount?: number;
|
|
17
|
+
notes?: string;
|
|
18
|
+
status?: FinanceRefundStatusEnum;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AbstractEntity } from '../..';
|
|
2
|
+
import { FinanceSubscriptionIntervalEnum, FinanceSubscriptionStatusEnum } from './';
|
|
3
|
+
export declare class FinanceSubscriptionEntity extends AbstractEntity {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
price: number;
|
|
7
|
+
status: FinanceSubscriptionStatusEnum;
|
|
8
|
+
interval: FinanceSubscriptionIntervalEnum;
|
|
9
|
+
intervalCount: number;
|
|
10
|
+
currentPeriodStart?: Date;
|
|
11
|
+
currentPeriodEnd?: Date;
|
|
12
|
+
cancelledAt?: Date;
|
|
13
|
+
sequence: number;
|
|
14
|
+
readonly number: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum FinanceSubscriptionStatusEnum {
|
|
2
|
+
ACTIVE = "ACTIVE",
|
|
3
|
+
TRIALING = "TRIALING",
|
|
4
|
+
PAST_DUE = "PAST_DUE",
|
|
5
|
+
PAUSED = "PAUSED",
|
|
6
|
+
CANCELLED = "CANCELLED",
|
|
7
|
+
EXPIRED = "EXPIRED"
|
|
8
|
+
}
|
|
9
|
+
export declare enum FinanceSubscriptionIntervalEnum {
|
|
10
|
+
DAILY = "DAILY",
|
|
11
|
+
WEEKLY = "WEEKLY",
|
|
12
|
+
MONTHLY = "MONTHLY",
|
|
13
|
+
QUARTERLY = "QUARTERLY",
|
|
14
|
+
YEARLY = "YEARLY"
|
|
15
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FinanceSubscriptionIntervalEnum = exports.FinanceSubscriptionStatusEnum = void 0;
|
|
4
|
+
var FinanceSubscriptionStatusEnum;
|
|
5
|
+
(function (FinanceSubscriptionStatusEnum) {
|
|
6
|
+
FinanceSubscriptionStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
FinanceSubscriptionStatusEnum["TRIALING"] = "TRIALING";
|
|
8
|
+
FinanceSubscriptionStatusEnum["PAST_DUE"] = "PAST_DUE";
|
|
9
|
+
FinanceSubscriptionStatusEnum["PAUSED"] = "PAUSED";
|
|
10
|
+
FinanceSubscriptionStatusEnum["CANCELLED"] = "CANCELLED";
|
|
11
|
+
FinanceSubscriptionStatusEnum["EXPIRED"] = "EXPIRED";
|
|
12
|
+
})(FinanceSubscriptionStatusEnum || (exports.FinanceSubscriptionStatusEnum = FinanceSubscriptionStatusEnum = {}));
|
|
13
|
+
var FinanceSubscriptionIntervalEnum;
|
|
14
|
+
(function (FinanceSubscriptionIntervalEnum) {
|
|
15
|
+
FinanceSubscriptionIntervalEnum["DAILY"] = "DAILY";
|
|
16
|
+
FinanceSubscriptionIntervalEnum["WEEKLY"] = "WEEKLY";
|
|
17
|
+
FinanceSubscriptionIntervalEnum["MONTHLY"] = "MONTHLY";
|
|
18
|
+
FinanceSubscriptionIntervalEnum["QUARTERLY"] = "QUARTERLY";
|
|
19
|
+
FinanceSubscriptionIntervalEnum["YEARLY"] = "YEARLY";
|
|
20
|
+
})(FinanceSubscriptionIntervalEnum || (exports.FinanceSubscriptionIntervalEnum = FinanceSubscriptionIntervalEnum = {}));
|
|
21
|
+
//# sourceMappingURL=subscription.enum.js.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FinanceSubscriptionEntity } from './';
|
|
2
|
+
import { FinanceSubscriptionIntervalEnum, FinanceSubscriptionStatusEnum } from './';
|
|
3
|
+
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
4
|
+
export declare class SearchFinanceSubscriptionValidator extends SearchValidator<FinanceSubscriptionEntity> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ReadFinanceSubscriptionValidator extends ReadValidator<FinanceSubscriptionEntity> {
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateFinanceSubscriptionValidator extends AbstractValidator {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
price: number;
|
|
12
|
+
interval: FinanceSubscriptionIntervalEnum;
|
|
13
|
+
intervalCount?: number;
|
|
14
|
+
currentPeriodStart?: Date;
|
|
15
|
+
currentPeriodEnd?: Date;
|
|
16
|
+
}
|
|
17
|
+
export declare class UpdateFinanceSubscriptionValidator extends CreateFinanceSubscriptionValidator {
|
|
18
|
+
status?: FinanceSubscriptionStatusEnum;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AbstractEntity } from '../..';
|
|
2
|
+
import { FinanceTaxTypeEnum } from './';
|
|
3
|
+
export declare class FinanceTaxEntity extends AbstractEntity {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
rate: number;
|
|
7
|
+
type: FinanceTaxTypeEnum;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
code?: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FinanceTaxTypeEnum = void 0;
|
|
4
|
+
var FinanceTaxTypeEnum;
|
|
5
|
+
(function (FinanceTaxTypeEnum) {
|
|
6
|
+
FinanceTaxTypeEnum["VAT"] = "VAT";
|
|
7
|
+
FinanceTaxTypeEnum["SALES_TAX"] = "SALES_TAX";
|
|
8
|
+
FinanceTaxTypeEnum["GST"] = "GST";
|
|
9
|
+
FinanceTaxTypeEnum["INCOME_TAX"] = "INCOME_TAX";
|
|
10
|
+
FinanceTaxTypeEnum["WITHHOLDING"] = "WITHHOLDING";
|
|
11
|
+
FinanceTaxTypeEnum["CUSTOM"] = "CUSTOM";
|
|
12
|
+
})(FinanceTaxTypeEnum || (exports.FinanceTaxTypeEnum = FinanceTaxTypeEnum = {}));
|
|
13
|
+
//# sourceMappingURL=tax.enum.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FinanceTaxEntity } from './';
|
|
2
|
+
import { FinanceTaxTypeEnum } from './';
|
|
3
|
+
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
4
|
+
export declare class SearchFinanceTaxValidator extends SearchValidator<FinanceTaxEntity> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ReadFinanceTaxValidator extends ReadValidator<FinanceTaxEntity> {
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateFinanceTaxValidator extends AbstractValidator {
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
rate: number;
|
|
12
|
+
type: FinanceTaxTypeEnum;
|
|
13
|
+
code?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare class UpdateFinanceTaxValidator extends CreateFinanceTaxValidator {
|
|
16
|
+
isActive?: boolean;
|
|
17
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var abstract_entity_1 = require("./abstract.entity");
|
|
4
|
-
Object.keys(abstract_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return abstract_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var abstract_validator_1 = require("./abstract.validator");
|
|
9
|
-
Object.keys(abstract_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return abstract_validator_1[key]; } });
|
|
12
|
-
});
|
|
13
|
-
var abstract_repository_1 = require("./abstract.repository");
|
|
14
|
-
Object.keys(abstract_repository_1).forEach(function (key) {
|
|
15
|
-
if (key === "default" || key === "__esModule") return;
|
|
16
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return abstract_repository_1[key]; } });
|
|
17
|
-
});
|
|
18
|
-
var address_entity_1 = require("./address.entity");
|
|
19
|
-
Object.keys(address_entity_1).forEach(function (key) {
|
|
20
|
-
if (key === "default" || key === "__esModule") return;
|
|
21
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return address_entity_1[key]; } });
|
|
22
|
-
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { CatalogAttributeEntity } from './';
|
|
2
2
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SearchCatalogAttributeValidator extends SearchValidator<CatalogAttributeEntity> {
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadCatalogAttributeValidator extends ReadValidator<CatalogAttributeEntity> {
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateCatalogAttributeValidator extends AbstractValidator {
|
|
8
8
|
name: string;
|
|
9
9
|
type: string;
|
|
10
10
|
options?: string[];
|
|
11
11
|
required?: boolean;
|
|
12
12
|
active?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class UpdateCatalogAttributeValidator extends CreateCatalogAttributeValidator {
|
|
15
15
|
}
|