@merkaly/api 0.3.4 → 0.3.6
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 +3 -13
- package/dist/abstract.validator.d.ts +4 -1
- package/dist/account/address/index.js +1 -2
- package/dist/account/cart/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/user/index.js +1 -2
- package/dist/account/user/user.validator.d.ts +4 -4
- package/dist/account/wishlist/index.js +1 -2
- package/dist/assets/asset/asset.entity.d.ts +0 -1
- package/dist/assets/asset/asset.enum.js +2 -6
- package/dist/assets/asset/index.js +1 -7
- package/dist/finance/invoice/index.d.ts +3 -0
- package/dist/finance/invoice/index.js +1 -0
- package/dist/finance/invoice/invoice.entity.d.ts +15 -0
- package/dist/finance/invoice/invoice.enum.d.ts +14 -0
- package/dist/finance/invoice/invoice.enum.js +16 -0
- package/dist/finance/invoice/invoice.validator.d.ts +21 -0
- package/dist/finance/payment/index.d.ts +4 -0
- package/dist/finance/payment/index.js +1 -0
- package/dist/finance/payment/payment.entity.d.ts +19 -0
- package/dist/{billing → finance}/payment/payment.enum.d.ts +7 -2
- package/dist/finance/payment/payment.enum.js +23 -0
- package/dist/finance/payment/payment.validator.d.ts +20 -0
- package/dist/finance/refund/index.d.ts +3 -0
- package/dist/finance/refund/index.js +1 -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 +18 -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 +1 -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 +17 -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 +1 -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 +9 -0
- package/dist/finance/tax/tax.validator.d.ts +17 -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 +5 -7
- package/dist/inventory/catalog/attribute/index.js +1 -2
- package/dist/inventory/catalog/brand/brand.validator.d.ts +4 -4
- package/dist/inventory/catalog/brand/index.js +1 -2
- package/dist/inventory/catalog/category/category.validator.d.ts +4 -4
- package/dist/inventory/catalog/category/index.js +1 -2
- package/dist/inventory/catalog/collection/collection.validator.d.ts +4 -4
- package/dist/inventory/catalog/collection/index.js +1 -2
- package/dist/inventory/catalog/product/index.js +1 -7
- package/dist/inventory/catalog/product/product.entity.d.ts +4 -3
- package/dist/inventory/catalog/product/product.status.enum.js +2 -6
- package/dist/inventory/catalog/product/product.validator.d.ts +9 -11
- package/dist/inventory/catalog/variant/index.d.ts +2 -0
- package/dist/inventory/catalog/variant/index.js +1 -0
- package/dist/inventory/catalog/variant/variant.entity.d.ts +19 -0
- package/dist/inventory/catalog/variant/variant.validator.d.ts +27 -0
- package/dist/inventory/configuration/label/index.js +1 -2
- package/dist/inventory/configuration/measurement/index.js +1 -2
- package/dist/inventory/configuration/measurement/measurement.validator.d.ts +4 -4
- package/dist/inventory/configuration/unit/index.js +1 -2
- package/dist/inventory/stock/transfer/index.js +1 -2
- package/dist/inventory/stock/transfer/transfer.validator.d.ts +5 -4
- package/dist/inventory/stock/warehouse/index.js +1 -2
- package/dist/inventory/stock/warehouse/warehouse.validator.d.ts +4 -4
- 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/transaction/index.js +1 -7
- package/dist/order/purchase/transaction/transaction.entity.d.ts +1 -1
- package/dist/order/purchase/transaction/transaction.enum.js +2 -6
- package/dist/order/purchase/transaction/transaction.validator.d.ts +0 -2
- package/dist/order/purchase/vendor/index.js +1 -2
- package/dist/order/sale/address/index.js +1 -2
- 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/index.d.ts +1 -0
- package/dist/order/sale/customer/index.js +1 -2
- package/dist/order/sale/item/index.js +1 -2
- package/dist/order/sale/item/item.entity.d.ts +7 -0
- package/dist/order/sale/item/item.validator.d.ts +2 -1
- package/dist/order/sale/payment/index.js +1 -2
- 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 +1 -0
- package/dist/order/sale/shipping/shipping.entity.d.ts +18 -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 +18 -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 +1 -7
- package/dist/order/sale/transaction/transaction.entity.d.ts +5 -5
- package/dist/order/sale/transaction/transaction.enum.js +2 -6
- package/dist/order/sale/transaction/transaction.validator.d.ts +11 -10
- package/dist/settings/organization/index.d.ts +3 -0
- package/dist/settings/organization/index.js +1 -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 +14 -0
- package/dist/settings/organization/organization.validator.d.ts +13 -0
- package/package.json +26 -17
- package/dist/billing/payment/index.d.ts +0 -2
- package/dist/billing/payment/index.js +0 -7
- package/dist/billing/payment/payment.enum.js +0 -21
- package/dist/billing/payment/transaction.entity.d.ts +0 -15
- package/dist/billing/status/index.d.ts +0 -1
- package/dist/billing/status/index.js +0 -2
- package/dist/billing/status/status.entity.d.ts +0 -8
- 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/logistic/carrier/carrier.entity.d.ts +0 -10
- package/dist/logistic/carrier/carrier.validator.d.ts +0 -17
- package/dist/logistic/carrier/index.d.ts +0 -2
- package/dist/logistic/carrier/index.js +0 -2
- package/dist/logistic/shipment/index.d.ts +0 -3
- package/dist/logistic/shipment/index.js +0 -7
- package/dist/logistic/shipment/shipment.entity.d.ts +0 -19
- package/dist/logistic/shipment/shipment.enum.js +0 -22
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SaleTransactionStatusEnum = void 0;
|
|
4
|
-
var SaleTransactionStatusEnum;
|
|
1
|
+
export var SaleTransactionStatusEnum;
|
|
5
2
|
(function (SaleTransactionStatusEnum) {
|
|
6
3
|
SaleTransactionStatusEnum["PENDING"] = "PENDING";
|
|
7
4
|
SaleTransactionStatusEnum["ACCEPTED"] = "ACCEPTED";
|
|
@@ -9,5 +6,4 @@ var SaleTransactionStatusEnum;
|
|
|
9
6
|
SaleTransactionStatusEnum["ON_HOLD"] = "ON_HOLD";
|
|
10
7
|
SaleTransactionStatusEnum["COMPLETED"] = "COMPLETED";
|
|
11
8
|
SaleTransactionStatusEnum["CANCELLED"] = "CANCELLED";
|
|
12
|
-
})(SaleTransactionStatusEnum || (
|
|
13
|
-
//# sourceMappingURL=transaction.enum.js.map
|
|
9
|
+
})(SaleTransactionStatusEnum || (SaleTransactionStatusEnum = {}));
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { CreateShippingValidator } from '../../../logistic/shipment';
|
|
2
1
|
import { SaleTransactionEntity } from './';
|
|
3
2
|
import { SaleTransactionStatusEnum } from './';
|
|
3
|
+
import { CreateShippingValidator } from '../shipping';
|
|
4
4
|
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
export declare class
|
|
5
|
+
import { SaleItemValidator } from '../item';
|
|
6
|
+
import { SalePaymentValidator } from '../payment';
|
|
7
|
+
export declare class SearchSaleTransactionValidator extends SearchValidator<SaleTransactionEntity> {
|
|
8
8
|
}
|
|
9
|
-
export declare class
|
|
9
|
+
export declare class ReadSaleTransactionValidator extends ReadValidator<SaleTransactionEntity> {
|
|
10
10
|
}
|
|
11
|
-
export declare class
|
|
12
|
-
items:
|
|
11
|
+
export declare class CreateSaleTransactionValidator extends AbstractValidator {
|
|
12
|
+
items: SaleItemValidator[];
|
|
13
13
|
notes: string;
|
|
14
14
|
shipping: CreateShippingValidator;
|
|
15
|
-
payment:
|
|
15
|
+
payment: SalePaymentValidator;
|
|
16
16
|
user: string;
|
|
17
|
-
|
|
17
|
+
customer?: string;
|
|
18
18
|
}
|
|
19
|
-
export declare class
|
|
19
|
+
export declare class UpdateSaleTransactionValidator extends AbstractValidator {
|
|
20
20
|
status?: SaleTransactionStatusEnum;
|
|
21
|
+
notes?: string;
|
|
21
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './organization.enum.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare enum SettingsOrganizationEnum {
|
|
2
|
+
APP_WORKSPACE = "app.workspace",
|
|
3
|
+
APP_CONTACT = "app.contact",
|
|
4
|
+
APP_REGIONAL = "app.regional",
|
|
5
|
+
APP_ADDRESS = "app.address",
|
|
6
|
+
ORDER_SALE_SEQUENCE = "order.sale.sequence",
|
|
7
|
+
ORDER_SALE_PAYMENT_SEQUENCE = "order.sale.payment.sequence",
|
|
8
|
+
ORDER_SALE_SHIPPING_SEQUENCE = "order.sale.shipping.sequence",
|
|
9
|
+
ORDER_PURCHASE_SEQUENCE = "order.purchase.sequence",
|
|
10
|
+
INVENTORY_STOCK_TRANSFER_SEQUENCE = "inventory.stock.transfer.sequence",
|
|
11
|
+
FINANCE_REFUND_SEQUENCE = "finance.refund.sequence",
|
|
12
|
+
FINANCE_INVOICE_SEQUENCE = "finance.invoice.sequence"
|
|
13
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var SettingsOrganizationEnum;
|
|
2
|
+
(function (SettingsOrganizationEnum) {
|
|
3
|
+
SettingsOrganizationEnum["APP_WORKSPACE"] = "app.workspace";
|
|
4
|
+
SettingsOrganizationEnum["APP_CONTACT"] = "app.contact";
|
|
5
|
+
SettingsOrganizationEnum["APP_REGIONAL"] = "app.regional";
|
|
6
|
+
SettingsOrganizationEnum["APP_ADDRESS"] = "app.address";
|
|
7
|
+
SettingsOrganizationEnum["ORDER_SALE_SEQUENCE"] = "order.sale.sequence";
|
|
8
|
+
SettingsOrganizationEnum["ORDER_SALE_PAYMENT_SEQUENCE"] = "order.sale.payment.sequence";
|
|
9
|
+
SettingsOrganizationEnum["ORDER_SALE_SHIPPING_SEQUENCE"] = "order.sale.shipping.sequence";
|
|
10
|
+
SettingsOrganizationEnum["ORDER_PURCHASE_SEQUENCE"] = "order.purchase.sequence";
|
|
11
|
+
SettingsOrganizationEnum["INVENTORY_STOCK_TRANSFER_SEQUENCE"] = "inventory.stock.transfer.sequence";
|
|
12
|
+
SettingsOrganizationEnum["FINANCE_REFUND_SEQUENCE"] = "finance.refund.sequence";
|
|
13
|
+
SettingsOrganizationEnum["FINANCE_INVOICE_SEQUENCE"] = "finance.invoice.sequence";
|
|
14
|
+
})(SettingsOrganizationEnum || (SettingsOrganizationEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
2
|
+
import type { SettingsOrganizationEntity } from './';
|
|
3
|
+
export declare class SearchSettingValidator extends SearchValidator<SettingsOrganizationEntity> {
|
|
4
|
+
}
|
|
5
|
+
export declare class ReadSettingValidator extends ReadValidator<SettingsOrganizationEntity> {
|
|
6
|
+
}
|
|
7
|
+
export declare class CreateSettingValidator extends AbstractValidator {
|
|
8
|
+
readonly key: string;
|
|
9
|
+
readonly value: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class UpdateSettingValidator extends AbstractValidator {
|
|
12
|
+
readonly value?: string;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@merkaly/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
|
+
"type": "module",
|
|
4
5
|
"description": "Shared TypeScript interfaces and enums for Merkaly API",
|
|
5
6
|
"exports": {
|
|
6
7
|
"./inventory/catalog/product": {
|
|
@@ -23,6 +24,10 @@
|
|
|
23
24
|
"types": "./dist/inventory/catalog/collection/index.d.ts",
|
|
24
25
|
"default": "./dist/inventory/catalog/collection/index.js"
|
|
25
26
|
},
|
|
27
|
+
"./inventory/catalog/variant": {
|
|
28
|
+
"types": "./dist/inventory/catalog/variant/index.d.ts",
|
|
29
|
+
"default": "./dist/inventory/catalog/variant/index.js"
|
|
30
|
+
},
|
|
26
31
|
"./inventory/configuration/measurement": {
|
|
27
32
|
"types": "./dist/inventory/configuration/measurement/index.d.ts",
|
|
28
33
|
"default": "./dist/inventory/configuration/measurement/index.js"
|
|
@@ -43,10 +48,6 @@
|
|
|
43
48
|
"types": "./dist/inventory/stock/transfer/index.d.ts",
|
|
44
49
|
"default": "./dist/inventory/stock/transfer/index.js"
|
|
45
50
|
},
|
|
46
|
-
"./inventory/stock/backorder": {
|
|
47
|
-
"types": "./dist/inventory/stock/backorder/index.d.ts",
|
|
48
|
-
"default": "./dist/inventory/stock/backorder/index.js"
|
|
49
|
-
},
|
|
50
51
|
"./order/sale/transaction": {
|
|
51
52
|
"types": "./dist/order/sale/transaction/index.d.ts",
|
|
52
53
|
"default": "./dist/order/sale/transaction/index.js"
|
|
@@ -71,21 +72,29 @@
|
|
|
71
72
|
"types": "./dist/order/purchase/item/index.d.ts",
|
|
72
73
|
"default": "./dist/order/purchase/item/index.js"
|
|
73
74
|
},
|
|
74
|
-
"./
|
|
75
|
-
"types": "./dist/
|
|
76
|
-
"default": "./dist/
|
|
75
|
+
"./order/sale/shipping": {
|
|
76
|
+
"types": "./dist/order/sale/shipping/index.d.ts",
|
|
77
|
+
"default": "./dist/order/sale/shipping/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./finance/payment": {
|
|
80
|
+
"types": "./dist/finance/payment/index.d.ts",
|
|
81
|
+
"default": "./dist/finance/payment/index.js"
|
|
82
|
+
},
|
|
83
|
+
"./finance/invoice": {
|
|
84
|
+
"types": "./dist/finance/invoice/index.d.ts",
|
|
85
|
+
"default": "./dist/finance/invoice/index.js"
|
|
77
86
|
},
|
|
78
|
-
"./
|
|
79
|
-
"types": "./dist/
|
|
80
|
-
"default": "./dist/
|
|
87
|
+
"./finance/refund": {
|
|
88
|
+
"types": "./dist/finance/refund/index.d.ts",
|
|
89
|
+
"default": "./dist/finance/refund/index.js"
|
|
81
90
|
},
|
|
82
|
-
"./
|
|
83
|
-
"types": "./dist/
|
|
84
|
-
"default": "./dist/
|
|
91
|
+
"./finance/tax": {
|
|
92
|
+
"types": "./dist/finance/tax/index.d.ts",
|
|
93
|
+
"default": "./dist/finance/tax/index.js"
|
|
85
94
|
},
|
|
86
|
-
"./
|
|
87
|
-
"types": "./dist/
|
|
88
|
-
"default": "./dist/
|
|
95
|
+
"./finance/subscription": {
|
|
96
|
+
"types": "./dist/finance/subscription/index.d.ts",
|
|
97
|
+
"default": "./dist/finance/subscription/index.js"
|
|
89
98
|
},
|
|
90
99
|
"./account/user": {
|
|
91
100
|
"types": "./dist/account/user/index.d.ts",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var payment_enum_1 = require("./payment.enum");
|
|
4
|
-
Object.keys(payment_enum_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return payment_enum_1[key]; } });
|
|
7
|
-
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BillingPaymentTypeEnum = exports.BillingPaymentStatusEnum = void 0;
|
|
4
|
-
var BillingPaymentStatusEnum;
|
|
5
|
-
(function (BillingPaymentStatusEnum) {
|
|
6
|
-
BillingPaymentStatusEnum["OPEN"] = "OPEN";
|
|
7
|
-
BillingPaymentStatusEnum["PENDING"] = "PENDING";
|
|
8
|
-
BillingPaymentStatusEnum["FAILED"] = "FAILED";
|
|
9
|
-
BillingPaymentStatusEnum["DISPUTED"] = "DISPUTED";
|
|
10
|
-
BillingPaymentStatusEnum["PAID"] = "PAID";
|
|
11
|
-
BillingPaymentStatusEnum["REFUNDED"] = "REFUNDED";
|
|
12
|
-
BillingPaymentStatusEnum["CANCELLED"] = "CANCELLED";
|
|
13
|
-
})(BillingPaymentStatusEnum || (exports.BillingPaymentStatusEnum = BillingPaymentStatusEnum = {}));
|
|
14
|
-
var BillingPaymentTypeEnum;
|
|
15
|
-
(function (BillingPaymentTypeEnum) {
|
|
16
|
-
BillingPaymentTypeEnum["CARD"] = "CARD";
|
|
17
|
-
BillingPaymentTypeEnum["TRANSFER"] = "TRANSFER";
|
|
18
|
-
BillingPaymentTypeEnum["CASH"] = "CASH";
|
|
19
|
-
BillingPaymentTypeEnum["CRYPTO"] = "CRYPTO";
|
|
20
|
-
})(BillingPaymentTypeEnum || (exports.BillingPaymentTypeEnum = BillingPaymentTypeEnum = {}));
|
|
21
|
-
//# sourceMappingURL=payment.enum.js.map
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { SaleTransactionEntity } from '../../order/sale/transaction';
|
|
2
|
-
import { AbstractEntity } from '../..';
|
|
3
|
-
import { BillingPaymentTypeEnum } from './';
|
|
4
|
-
import { BillingPaymentStatusEntity } from '../status';
|
|
5
|
-
import type { MongoEntity } from '../..';
|
|
6
|
-
export declare class BillingPaymentEntity extends AbstractEntity {
|
|
7
|
-
order: MongoEntity<SaleTransactionEntity>;
|
|
8
|
-
statuses: BillingPaymentStatusEntity[];
|
|
9
|
-
total: number;
|
|
10
|
-
fee: number;
|
|
11
|
-
type: BillingPaymentTypeEnum;
|
|
12
|
-
sequence: number;
|
|
13
|
-
readonly number: string;
|
|
14
|
-
readonly currentStatus: BillingPaymentStatusEntity;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './status.entity';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { AccountUserEntity } from '../../account/user';
|
|
2
|
-
import { BillingPaymentStatusEnum } from '../payment';
|
|
3
|
-
import type { MongoEntity } from '../..';
|
|
4
|
-
export declare class BillingPaymentStatusEntity {
|
|
5
|
-
name: BillingPaymentStatusEnum;
|
|
6
|
-
date: Date;
|
|
7
|
-
user: MongoEntity<AccountUserEntity>;
|
|
8
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ConfigurationLabelEntity } from './';
|
|
2
|
-
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class SearchLabelValidator extends SearchValidator<ConfigurationLabelEntity> {
|
|
4
|
-
}
|
|
5
|
-
export declare class ReadLabelValidator extends ReadValidator<ConfigurationLabelEntity> {
|
|
6
|
-
}
|
|
7
|
-
export declare class CreateLabelValidator extends AbstractValidator {
|
|
8
|
-
name: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
color?: string;
|
|
11
|
-
active?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare class UpdateLabelValidator extends CreateLabelValidator {
|
|
14
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { CatalogProductEntity } from '../../catalog/product';
|
|
2
|
-
import { StockWarehouseEntity } from '../warehouse';
|
|
3
|
-
import { SaleCustomerEntity } from '../../../order/sale/customer';
|
|
4
|
-
import { SaleTransactionEntity } from '../../../order/sale/transaction';
|
|
5
|
-
import { AbstractEntity, MongoEntity } from '../../..';
|
|
6
|
-
export declare enum BackorderStatusEnum {
|
|
7
|
-
PENDING = "PENDING",
|
|
8
|
-
PARTIALLY_FULFILLED = "PARTIALLY_FULFILLED",
|
|
9
|
-
FULFILLED = "FULFILLED",
|
|
10
|
-
CANCELLED = "CANCELLED"
|
|
11
|
-
}
|
|
12
|
-
export declare enum BackorderPriorityEnum {
|
|
13
|
-
LOW = "LOW",
|
|
14
|
-
NORMAL = "NORMAL",
|
|
15
|
-
HIGH = "HIGH",
|
|
16
|
-
URGENT = "URGENT"
|
|
17
|
-
}
|
|
18
|
-
export declare class StockBackorderEntity extends AbstractEntity {
|
|
19
|
-
product: MongoEntity<CatalogProductEntity>;
|
|
20
|
-
quantityOrdered: number;
|
|
21
|
-
quantityFulfilled: number;
|
|
22
|
-
customer?: MongoEntity<SaleCustomerEntity>;
|
|
23
|
-
saleOrder?: MongoEntity<SaleTransactionEntity>;
|
|
24
|
-
warehouse?: MongoEntity<StockWarehouseEntity>;
|
|
25
|
-
sequence: number;
|
|
26
|
-
status: BackorderStatusEnum;
|
|
27
|
-
priority: BackorderPriorityEnum;
|
|
28
|
-
notes?: string;
|
|
29
|
-
expectedRestockDate?: Date;
|
|
30
|
-
fulfilledDate?: Date;
|
|
31
|
-
readonly number: string;
|
|
32
|
-
readonly quantityPending: number;
|
|
33
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BackorderPriorityEnum, BackorderStatusEnum, StockBackorderEntity } from './';
|
|
2
|
-
import { AbstractValidator, ReadValidator, SearchValidator } from '../../..';
|
|
3
|
-
export declare class SearchBackorderValidator extends SearchValidator<StockBackorderEntity> {
|
|
4
|
-
}
|
|
5
|
-
export declare class ReadBackorderValidator extends ReadValidator<StockBackorderEntity> {
|
|
6
|
-
}
|
|
7
|
-
export declare class CreateBackorderValidator extends AbstractValidator {
|
|
8
|
-
product: string;
|
|
9
|
-
quantityOrdered: number;
|
|
10
|
-
customer?: string;
|
|
11
|
-
saleOrder?: string;
|
|
12
|
-
warehouse?: string;
|
|
13
|
-
priority?: BackorderPriorityEnum;
|
|
14
|
-
notes?: string;
|
|
15
|
-
expectedRestockDate?: string;
|
|
16
|
-
}
|
|
17
|
-
export declare class UpdateBackorderValidator extends AbstractValidator {
|
|
18
|
-
status?: BackorderStatusEnum;
|
|
19
|
-
priority?: BackorderPriorityEnum;
|
|
20
|
-
quantityFulfilled?: number;
|
|
21
|
-
notes?: string;
|
|
22
|
-
expectedRestockDate?: string;
|
|
23
|
-
fulfilledDate?: string;
|
|
24
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { LogisticCarrierEntity } from './';
|
|
2
|
-
import { AbstractValidator, ReadValidator, SearchValidator } from '../..';
|
|
3
|
-
export declare class SearchCarrierValidator extends SearchValidator<LogisticCarrierEntity> {
|
|
4
|
-
}
|
|
5
|
-
export declare class ReadCarrierValidator extends ReadValidator<LogisticCarrierEntity> {
|
|
6
|
-
}
|
|
7
|
-
export declare class CreateCarrierValidator extends AbstractValidator {
|
|
8
|
-
name: string;
|
|
9
|
-
description?: string;
|
|
10
|
-
website?: string;
|
|
11
|
-
trackingUrl?: string;
|
|
12
|
-
phone?: string;
|
|
13
|
-
email?: string;
|
|
14
|
-
active?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export declare class UpdateCarrierValidator extends CreateCarrierValidator {
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var shipment_enum_1 = require("./shipment.enum");
|
|
4
|
-
Object.keys(shipment_enum_1).forEach(function (key) {
|
|
5
|
-
if (key === "default" || key === "__esModule") return;
|
|
6
|
-
Object.defineProperty(exports, key, { enumerable: true, get: function () { return shipment_enum_1[key]; } });
|
|
7
|
-
});
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { SaleTransactionEntity } from '../../order/sale/transaction';
|
|
2
|
-
import { AbstractEntity } from '../..';
|
|
3
|
-
import { CreateEntityArgs } from '../..';
|
|
4
|
-
import { AddressEntity } from '../..';
|
|
5
|
-
import { LogisticShippingTypeEnum } from './';
|
|
6
|
-
import { LogisticShippingStatusEntity } from '../..';
|
|
7
|
-
import type { MongoEntity } from '../..';
|
|
8
|
-
export declare class LogisticShippingEntity extends AbstractEntity {
|
|
9
|
-
order: MongoEntity<SaleTransactionEntity>;
|
|
10
|
-
statuses: LogisticShippingStatusEntity[];
|
|
11
|
-
destinationAddress: CreateEntityArgs<AddressEntity>;
|
|
12
|
-
originAddress: AddressEntity;
|
|
13
|
-
cost: number;
|
|
14
|
-
distance: number;
|
|
15
|
-
type: LogisticShippingTypeEnum;
|
|
16
|
-
sequence: number;
|
|
17
|
-
readonly number: string;
|
|
18
|
-
readonly currentStatus: LogisticShippingStatusEntity;
|
|
19
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LogisticShippingTypeEnum = exports.LogisticShippingStatusEnum = void 0;
|
|
4
|
-
var LogisticShippingStatusEnum;
|
|
5
|
-
(function (LogisticShippingStatusEnum) {
|
|
6
|
-
LogisticShippingStatusEnum["OPEN"] = "OPEN";
|
|
7
|
-
LogisticShippingStatusEnum["NOT_REQUIRED"] = "NOT_REQUIRED";
|
|
8
|
-
LogisticShippingStatusEnum["PROCESSING"] = "PROCESSING";
|
|
9
|
-
LogisticShippingStatusEnum["SHIPPED"] = "SHIPPED";
|
|
10
|
-
LogisticShippingStatusEnum["IN_TRANSIT"] = "IN_TRANSIT";
|
|
11
|
-
LogisticShippingStatusEnum["DELIVERED"] = "DELIVERED";
|
|
12
|
-
LogisticShippingStatusEnum["FAILED"] = "FAILED";
|
|
13
|
-
LogisticShippingStatusEnum["RETURNED"] = "RETURNED";
|
|
14
|
-
LogisticShippingStatusEnum["CANCELLED"] = "CANCELLED";
|
|
15
|
-
})(LogisticShippingStatusEnum || (exports.LogisticShippingStatusEnum = LogisticShippingStatusEnum = {}));
|
|
16
|
-
var LogisticShippingTypeEnum;
|
|
17
|
-
(function (LogisticShippingTypeEnum) {
|
|
18
|
-
LogisticShippingTypeEnum["PICKUP"] = "PICKUP";
|
|
19
|
-
LogisticShippingTypeEnum["DELIVERY"] = "DELIVERY";
|
|
20
|
-
LogisticShippingTypeEnum["DROPOFF"] = "DROPOFF";
|
|
21
|
-
})(LogisticShippingTypeEnum || (exports.LogisticShippingTypeEnum = LogisticShippingTypeEnum = {}));
|
|
22
|
-
//# sourceMappingURL=shipment.enum.js.map
|