@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
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var attribute_entity_1 = require("./attribute.entity");
|
|
4
|
-
Object.keys(attribute_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return attribute_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var attribute_validator_1 = require("./attribute.validator");
|
|
9
|
-
Object.keys(attribute_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return attribute_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CatalogBrandEntity } from './';
|
|
2
2
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SearchCatalogBrandValidator extends SearchValidator<CatalogBrandEntity> {
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadCatalogBrandValidator extends ReadValidator<CatalogBrandEntity> {
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateCatalogBrandValidator extends AbstractValidator {
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class UpdateCatalogBrandValidator extends CreateCatalogBrandValidator {
|
|
12
12
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var brand_entity_1 = require("./brand.entity");
|
|
4
|
-
Object.keys(brand_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return brand_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var brand_validator_1 = require("./brand.validator");
|
|
9
|
-
Object.keys(brand_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return brand_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { CatalogCategoryEntity } from './';
|
|
2
2
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SearchCatalogCategoryValidator extends SearchValidator<CatalogCategoryEntity> {
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadCatalogCategoryValidator extends ReadValidator<CatalogCategoryEntity> {
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateCatalogCategoryValidator extends AbstractValidator {
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
11
|
+
export declare class UpdateCatalogCategoryValidator extends CreateCatalogCategoryValidator {
|
|
12
12
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var category_entity_1 = require("./category.entity");
|
|
4
|
-
Object.keys(category_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return category_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var category_validator_1 = require("./category.validator");
|
|
9
|
-
Object.keys(category_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return category_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { CatalogCollectionEntity } from './';
|
|
2
2
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SearchCatalogCollectionValidator extends SearchValidator<CatalogCollectionEntity> {
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadCatalogCollectionValidator extends ReadValidator<CatalogCollectionEntity> {
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateCatalogCollectionValidator extends AbstractValidator {
|
|
8
8
|
name: string;
|
|
9
9
|
description: string;
|
|
10
10
|
products: string[];
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class UpdateCatalogCollectionValidator extends CreateCatalogCollectionValidator {
|
|
13
13
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var collection_entity_1 = require("./collection.entity");
|
|
4
|
-
Object.keys(collection_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return collection_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var collection_validator_1 = require("./collection.validator");
|
|
9
|
-
Object.keys(collection_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return collection_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var product_entity_1 = require("./product.entity");
|
|
4
|
-
Object.keys(product_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return product_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var product_validator_1 = require("./product.validator");
|
|
9
|
-
Object.keys(product_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return product_validator_1[key]; } });
|
|
12
|
-
});
|
|
13
3
|
var product_status_enum_1 = require("./product.status.enum");
|
|
14
4
|
Object.keys(product_status_enum_1).forEach(function (key) {
|
|
15
5
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -5,6 +5,7 @@ import { AbstractEntity } from '../../..';
|
|
|
5
5
|
import { CatalogAttributeEntity } from '../attribute';
|
|
6
6
|
import type { CatalogBrandEntity } from '../brand';
|
|
7
7
|
import type { CatalogCategoryEntity } from '../category';
|
|
8
|
+
import type { CatalogVariantEntity } from '../variant';
|
|
8
9
|
import type { ConfigurationMeasurementEntity } from '../../configuration/measurement';
|
|
9
10
|
import type { MongoEntity } from '../../..';
|
|
10
11
|
export declare class CatalogProductEntity extends AbstractEntity {
|
|
@@ -27,5 +28,11 @@ export declare class CatalogProductEntity extends AbstractEntity {
|
|
|
27
28
|
hashtags: string[];
|
|
28
29
|
status: CatalogProductStatus;
|
|
29
30
|
stock: number;
|
|
31
|
+
hasVariants: boolean;
|
|
32
|
+
variantAttributes: {
|
|
33
|
+
key: string;
|
|
34
|
+
values: string[];
|
|
35
|
+
}[];
|
|
30
36
|
readonly wishlist?: AccountWishlistEntity[];
|
|
37
|
+
readonly variants?: CatalogVariantEntity[];
|
|
31
38
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { CatalogProductEntity } from './';
|
|
2
2
|
import { CatalogProductStatus } from './';
|
|
3
3
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class SearchCatalogProductValidator extends SearchValidator<CatalogProductEntity> {
|
|
5
5
|
}
|
|
6
|
-
export declare class
|
|
6
|
+
export declare class ReadCatalogProductValidator extends ReadValidator<CatalogProductEntity> {
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class CatalogAttributeValidator extends AbstractValidator {
|
|
9
9
|
relation: string;
|
|
10
10
|
content: string;
|
|
11
11
|
required: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class CreateCatalogProductValidator extends AbstractValidator {
|
|
14
14
|
sku?: string;
|
|
15
15
|
name: string;
|
|
16
|
-
description
|
|
16
|
+
description?: string;
|
|
17
17
|
price: number;
|
|
18
18
|
measure?: {
|
|
19
19
|
amount: number;
|
|
@@ -28,7 +28,7 @@ export declare class CreateProductValidator extends AbstractValidator {
|
|
|
28
28
|
attributes: string[];
|
|
29
29
|
status: CatalogProductStatus;
|
|
30
30
|
}
|
|
31
|
-
export declare class
|
|
31
|
+
export declare class UpdateCatalogProductValidator extends CreateCatalogProductValidator {
|
|
32
32
|
name: string;
|
|
33
33
|
price: number;
|
|
34
34
|
measure: {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AssetEntity } from '../../../assets/asset';
|
|
2
|
+
import { AbstractEntity } from '../../..';
|
|
3
|
+
import type { CatalogProductEntity } from '../product';
|
|
4
|
+
import type { MongoEntity } from '../../..';
|
|
5
|
+
export declare class CatalogVariantEntity extends AbstractEntity {
|
|
6
|
+
product: MongoEntity<CatalogProductEntity>;
|
|
7
|
+
sku: string;
|
|
8
|
+
price: number;
|
|
9
|
+
stock: number;
|
|
10
|
+
options: {
|
|
11
|
+
key: string;
|
|
12
|
+
value: string;
|
|
13
|
+
}[];
|
|
14
|
+
active: boolean;
|
|
15
|
+
barcode?: string;
|
|
16
|
+
pictures: MongoEntity<AssetEntity>[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CatalogVariantEntity } from './';
|
|
2
|
+
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
+
export declare class VariantOptionValidator {
|
|
4
|
+
key: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}
|
|
7
|
+
export declare class SearchCatalogVariantValidator extends SearchValidator<CatalogVariantEntity> {
|
|
8
|
+
}
|
|
9
|
+
export declare class ReadCatalogVariantValidator extends ReadValidator<CatalogVariantEntity> {
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateCatalogVariantValidator extends AbstractValidator {
|
|
12
|
+
product: string;
|
|
13
|
+
sku: string;
|
|
14
|
+
priceModifier?: number;
|
|
15
|
+
stock?: number;
|
|
16
|
+
options: VariantOptionValidator[];
|
|
17
|
+
active?: boolean;
|
|
18
|
+
barcode?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class UpdateCatalogVariantValidator extends AbstractValidator {
|
|
21
|
+
sku?: string;
|
|
22
|
+
priceModifier?: number;
|
|
23
|
+
stock?: number;
|
|
24
|
+
options?: VariantOptionValidator[];
|
|
25
|
+
active?: boolean;
|
|
26
|
+
barcode?: string;
|
|
27
|
+
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var label_entity_1 = require("./label.entity");
|
|
4
|
-
Object.keys(label_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return label_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var label_validator_1 = require("./label.validator");
|
|
9
|
-
Object.keys(label_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return label_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { ConfigurationLabelEntity } from './';
|
|
2
2
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SearchConfigurationLabelValidator extends SearchValidator<ConfigurationLabelEntity> {
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadConfigurationLabelValidator extends ReadValidator<ConfigurationLabelEntity> {
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateConfigurationLabelValidator extends AbstractValidator {
|
|
8
8
|
name: string;
|
|
9
9
|
description?: string;
|
|
10
10
|
color?: string;
|
|
11
11
|
active?: boolean;
|
|
12
12
|
}
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class UpdateConfigurationLabelValidator extends CreateConfigurationLabelValidator {
|
|
14
14
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var measurement_entity_1 = require("./measurement.entity");
|
|
4
|
-
Object.keys(measurement_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return measurement_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var measurement_validator_1 = require("./measurement.validator");
|
|
9
|
-
Object.keys(measurement_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return measurement_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -7,15 +7,15 @@ export declare class ConfigurationUnitValidator extends AbstractValidator {
|
|
|
7
7
|
active?: boolean;
|
|
8
8
|
isBaseUnit?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class SearchConfigurationMeasurementValidator extends SearchValidator<ConfigurationMeasurementEntity> {
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class ReadConfigurationMeasurementValidator extends ReadValidator<ConfigurationMeasurementEntity> {
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class CreateConfigurationMeasurementValidator extends AbstractValidator {
|
|
15
15
|
name: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
active?: boolean;
|
|
18
18
|
units?: ConfigurationUnitValidator[];
|
|
19
19
|
}
|
|
20
|
-
export declare class
|
|
20
|
+
export declare class UpdateConfigurationMeasurementValidator extends CreateConfigurationMeasurementValidator {
|
|
21
21
|
}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var unit_entity_1 = require("./unit.entity");
|
|
4
|
-
Object.keys(unit_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return unit_entity_1[key]; } });
|
|
7
|
-
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { BackorderPriorityEnum, BackorderStatusEnum, StockBackorderEntity } from './';
|
|
2
2
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class
|
|
3
|
+
export declare class SearchStockBackorderValidator extends SearchValidator<StockBackorderEntity> {
|
|
4
4
|
}
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class ReadStockBackorderValidator extends ReadValidator<StockBackorderEntity> {
|
|
6
6
|
}
|
|
7
|
-
export declare class
|
|
7
|
+
export declare class CreateStockBackorderValidator extends AbstractValidator {
|
|
8
8
|
product: string;
|
|
9
9
|
quantityOrdered: number;
|
|
10
10
|
customer?: string;
|
|
@@ -14,7 +14,7 @@ export declare class CreateBackorderValidator extends AbstractValidator {
|
|
|
14
14
|
notes?: string;
|
|
15
15
|
expectedRestockDate?: string;
|
|
16
16
|
}
|
|
17
|
-
export declare class
|
|
17
|
+
export declare class UpdateStockBackorderValidator extends AbstractValidator {
|
|
18
18
|
status?: BackorderStatusEnum;
|
|
19
19
|
priority?: BackorderPriorityEnum;
|
|
20
20
|
quantityFulfilled?: number;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var backorder_entity_1 = require("./backorder.entity");
|
|
4
|
-
Object.keys(backorder_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return backorder_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var backorder_validator_1 = require("./backorder.validator");
|
|
9
|
-
Object.keys(backorder_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return backorder_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var transfer_entity_1 = require("./transfer.entity");
|
|
4
|
-
Object.keys(transfer_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return transfer_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var transfer_validator_1 = require("./transfer.validator");
|
|
9
|
-
Object.keys(transfer_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return transfer_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -5,11 +5,11 @@ export declare class StockTransferItemValidator {
|
|
|
5
5
|
quantity: number;
|
|
6
6
|
notes?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare class
|
|
8
|
+
export declare class SearchStockTransferValidator extends SearchValidator<StockTransferEntity> {
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class ReadStockTransferValidator extends ReadValidator<StockTransferEntity> {
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class CreateStockTransferValidator extends AbstractValidator {
|
|
13
13
|
sourceWarehouse: string;
|
|
14
14
|
destinationWarehouse: string;
|
|
15
15
|
items: StockTransferItemValidator[];
|
|
@@ -17,7 +17,7 @@ export declare class CreateTransferValidator extends AbstractValidator {
|
|
|
17
17
|
requestedDate?: string;
|
|
18
18
|
user: string;
|
|
19
19
|
}
|
|
20
|
-
export declare class
|
|
20
|
+
export declare class UpdateStockTransferValidator extends AbstractValidator {
|
|
21
21
|
status?: TransferStatusEnum;
|
|
22
22
|
notes?: string;
|
|
23
23
|
shippedDate?: string;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var warehouse_entity_1 = require("./warehouse.entity");
|
|
4
|
-
Object.keys(warehouse_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return warehouse_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var warehouse_validator_1 = require("./warehouse.validator");
|
|
9
|
-
Object.keys(warehouse_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return warehouse_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -11,11 +11,11 @@ export declare class StockWarehouseAddressValidator {
|
|
|
11
11
|
latitude?: number;
|
|
12
12
|
longitude?: number;
|
|
13
13
|
}
|
|
14
|
-
export declare class
|
|
14
|
+
export declare class SearchStockWarehouseValidator extends SearchValidator<StockWarehouseEntity> {
|
|
15
15
|
}
|
|
16
|
-
export declare class
|
|
16
|
+
export declare class ReadStockWarehouseValidator extends ReadValidator<StockWarehouseEntity> {
|
|
17
17
|
}
|
|
18
|
-
export declare class
|
|
18
|
+
export declare class CreateStockWarehouseValidator extends AbstractValidator {
|
|
19
19
|
name: string;
|
|
20
20
|
code: string;
|
|
21
21
|
description?: string;
|
|
@@ -23,5 +23,5 @@ export declare class CreateWarehouseValidator extends AbstractValidator {
|
|
|
23
23
|
isDefault?: boolean;
|
|
24
24
|
active?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export declare class
|
|
26
|
+
export declare class UpdateStockWarehouseValidator extends CreateStockWarehouseValidator {
|
|
27
27
|
}
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var item_entity_1 = require("./item.entity");
|
|
4
|
-
Object.keys(item_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return item_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var item_validator_1 = require("./item.validator");
|
|
9
|
-
Object.keys(item_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return item_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,15 +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
|
-
var transaction_validator_1 = require("./transaction.validator");
|
|
9
|
-
Object.keys(transaction_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return transaction_validator_1[key]; } });
|
|
12
|
-
});
|
|
13
3
|
var transaction_enum_1 = require("./transaction.enum");
|
|
14
4
|
Object.keys(transaction_enum_1).forEach(function (key) {
|
|
15
5
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var vendor_entity_1 = require("./vendor.entity");
|
|
4
|
-
Object.keys(vendor_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return vendor_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var vendor_validator_1 = require("./vendor.validator");
|
|
9
|
-
Object.keys(vendor_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return vendor_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var address_validator_1 = require("./address.validator");
|
|
4
|
-
Object.keys(address_validator_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return address_validator_1[key]; } });
|
|
7
|
-
});
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var customer_entity_1 = require("./customer.entity");
|
|
4
|
-
Object.keys(customer_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return customer_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var customer_validator_1 = require("./customer.validator");
|
|
9
|
-
Object.keys(customer_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return customer_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,12 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var item_entity_1 = require("./item.entity");
|
|
4
|
-
Object.keys(item_entity_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return item_entity_1[key]; } });
|
|
7
|
-
});
|
|
8
|
-
var item_validator_1 = require("./item.validator");
|
|
9
|
-
Object.keys(item_validator_1).forEach(function (key) {
|
|
10
|
-
if (key === "default" || key === "__esModule") return;
|
|
11
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return item_validator_1[key]; } });
|
|
12
|
-
});
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import { CatalogProductEntity } from '../../../inventory/catalog/product';
|
|
2
2
|
import { AbstractEntity } from '../../..';
|
|
3
|
+
import type { CatalogVariantEntity } from '../../../inventory/catalog/variant';
|
|
3
4
|
import type { MongoEntity } from '../../..';
|
|
4
5
|
export declare class SaleItemEntity extends AbstractEntity {
|
|
5
6
|
product: MongoEntity<CatalogProductEntity>;
|
|
7
|
+
variant?: MongoEntity<CatalogVariantEntity>;
|
|
6
8
|
price: number;
|
|
7
9
|
quantity: number;
|
|
8
10
|
notes?: string;
|
|
11
|
+
selectedOptions: {
|
|
12
|
+
key: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}[];
|
|
9
15
|
readonly total: number;
|
|
10
16
|
}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var payment_validator_1 = require("./payment.validator");
|
|
4
|
-
Object.keys(payment_validator_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return payment_validator_1[key]; } });
|
|
7
|
-
});
|
|
@@ -1,16 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import type { BillingPaymentEntity } from '../../../billing/payment';
|
|
4
|
-
export declare class CreatePaymentValidator {
|
|
1
|
+
import { FinancePaymentTypeEnum } from '../../../finance/payment';
|
|
2
|
+
export declare class SalePaymentValidator {
|
|
5
3
|
order?: string;
|
|
6
|
-
type:
|
|
4
|
+
type: FinancePaymentTypeEnum;
|
|
7
5
|
details?: unknown;
|
|
8
6
|
total?: number;
|
|
9
7
|
}
|
|
10
|
-
export declare class UpdatePaymentValidator extends CreatePaymentValidator {
|
|
11
|
-
}
|
|
12
|
-
export declare class UpdatePaymentStatusValidator {
|
|
13
|
-
type: BillingPaymentStatusEnum;
|
|
14
|
-
}
|
|
15
|
-
export declare class ReadPaymentValidator extends ReadValidator<BillingPaymentEntity> {
|
|
16
|
-
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var shipping_enum_1 = require("./shipping.enum");
|
|
4
|
+
Object.keys(shipping_enum_1).forEach(function (key) {
|
|
5
|
+
if (key === "default" || key === "__esModule") return;
|
|
6
|
+
Object.defineProperty(exports, key, { enumerable: true, get: function () { return shipping_enum_1[key]; } });
|
|
7
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SaleTransactionEntity } from '../transaction';
|
|
2
|
+
import { AbstractEntity } from '../../..';
|
|
3
|
+
import { CreateEntityArgs } from '../../..';
|
|
4
|
+
import { AddressEntity } from '../../..';
|
|
5
|
+
import { SaleShippingTypeEnum } from './';
|
|
6
|
+
import { SaleShippingStatusEntity } from './';
|
|
7
|
+
import type { MongoEntity } from '../../..';
|
|
8
|
+
export declare class SaleShippingEntity extends AbstractEntity {
|
|
9
|
+
order: MongoEntity<SaleTransactionEntity>;
|
|
10
|
+
statuses: SaleShippingStatusEntity[];
|
|
11
|
+
destinationAddress: CreateEntityArgs<AddressEntity>;
|
|
12
|
+
originAddress: AddressEntity;
|
|
13
|
+
cost: number;
|
|
14
|
+
distance: number;
|
|
15
|
+
type: SaleShippingTypeEnum;
|
|
16
|
+
sequence: number;
|
|
17
|
+
readonly number: string;
|
|
18
|
+
readonly currentStatus: SaleShippingStatusEntity;
|
|
19
|
+
}
|
package/dist/{logistic/shipment/shipment.enum.d.ts → order/sale/shipping/shipping.enum.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum SaleShippingStatusEnum {
|
|
2
2
|
OPEN = "OPEN",
|
|
3
3
|
NOT_REQUIRED = "NOT_REQUIRED",
|
|
4
4
|
PROCESSING = "PROCESSING",
|
|
@@ -9,7 +9,7 @@ export declare enum LogisticShippingStatusEnum {
|
|
|
9
9
|
RETURNED = "RETURNED",
|
|
10
10
|
CANCELLED = "CANCELLED"
|
|
11
11
|
}
|
|
12
|
-
export declare enum
|
|
12
|
+
export declare enum SaleShippingTypeEnum {
|
|
13
13
|
PICKUP = "PICKUP",
|
|
14
14
|
DELIVERY = "DELIVERY",
|
|
15
15
|
DROPOFF = "DROPOFF"
|