@managesome/eposmatic-toolkit 0.2.339 → 0.2.342-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/constants/ENUMS.d.ts +35 -0
- package/lib/constants/ENUMS.js +48 -3
- package/lib/helpers/store/common-purchase-order-actions.d.ts +2 -2
- package/lib/helpers/store/purchase-orders-cart-actions.d.ts +7 -6
- package/lib/helpers/utils/code-redemption-helpers.d.ts +84 -0
- package/lib/helpers/utils/code-redemption-helpers.js +459 -0
- package/lib/schemas/models/index.d.ts +3 -0
- package/lib/schemas/models/index.js +3 -0
- package/lib/schemas/models/purchase_order_receipts.d.ts +165 -0
- package/lib/schemas/models/purchase_order_receipts.js +151 -0
- package/lib/schemas/models/purchase_order_rfq.d.ts +1938 -0
- package/lib/schemas/models/purchase_order_rfq.js +309 -0
- package/lib/schemas/models/purchase_order_vendor_returns.d.ts +234 -0
- package/lib/schemas/models/purchase_order_vendor_returns.js +188 -0
- package/lib/schemas/models/purchase_orders.d.ts +3 -0
- package/lib/schemas/models/purchase_orders.js +10 -1
- package/lib/schemas/models/void_purchase_order_items.js +2 -1
- package/lib/schemas/models/warehouse.d.ts +7 -1
- package/lib/schemas/models/warehouse.js +9 -0
- package/lib/schemas/models/warehouse_items.d.ts +19 -0
- package/lib/schemas/models/warehouse_items.js +29 -0
- package/lib/schemas/models/warehouse_vendors.d.ts +3 -3
- package/lib/schemas/types/index.d.ts +4 -0
- package/lib/schemas/types/index.js +4 -0
- package/lib/schemas/types/purchase_order_common.d.ts +39 -0
- package/lib/schemas/types/purchase_order_common.js +2 -0
- package/lib/schemas/types/purchase_order_receipts.d.ts +33 -0
- package/lib/schemas/types/purchase_order_receipts.js +2 -0
- package/lib/schemas/types/purchase_order_rfq.d.ts +25 -0
- package/lib/schemas/types/purchase_order_rfq.js +2 -0
- package/lib/schemas/types/purchase_order_vendor_returns.d.ts +42 -0
- package/lib/schemas/types/purchase_order_vendor_returns.js +2 -0
- package/lib/schemas/types/purchase_orders.d.ts +7 -43
- package/lib/schemas/types/warehouse.d.ts +3 -1
- package/lib/schemas/types/warehouse_items.d.ts +7 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { COUNTRY_ALPHA_2_ENUM, COUNTRY_ALPHA_3_ENUM, COUNTRY_CODE_ENUM, COUNTRY_FLAG_ENUM, COUNTRY_NAME_ENUM, CURRENCY_CODE_ENUM, CURRENCY_NAME_ENUM, CURRENCY_SYMBOL_ENUM, GST_TYPE_ENUM, TAX_INVOICE_PROVIDER_ENUM, TRACK_ORDER_NUMBER_ENUM } from '../../constants';
|
|
1
|
+
import { COUNTRY_ALPHA_2_ENUM, COUNTRY_ALPHA_3_ENUM, COUNTRY_CODE_ENUM, COUNTRY_FLAG_ENUM, COUNTRY_NAME_ENUM, CURRENCY_CODE_ENUM, CURRENCY_NAME_ENUM, CURRENCY_SYMBOL_ENUM, GST_TYPE_ENUM, REMOVAL_STRATEGY_ENUM, TAX_INVOICE_PROVIDER_ENUM, TRACK_ORDER_NUMBER_ENUM } from '../../constants';
|
|
2
2
|
export interface IWarehouse {
|
|
3
3
|
_id: string;
|
|
4
4
|
brand_id: string;
|
|
@@ -39,6 +39,8 @@ export interface IWarehouse {
|
|
|
39
39
|
alert_phone_numbers: string[];
|
|
40
40
|
alert_email_addresses: string[];
|
|
41
41
|
alert_when: string[];
|
|
42
|
+
enable_lot_serial_tracking: boolean;
|
|
43
|
+
default_removal_strategy: REMOVAL_STRATEGY_ENUM;
|
|
42
44
|
po_custom_payment_types: string[];
|
|
43
45
|
invoice_custom_payment_types: string[];
|
|
44
46
|
active: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INVENTORY_ITEM_TYPE_ENUM, INVENTORY_ITEM_UNIT_ENUM } from '../../constants';
|
|
1
|
+
import { INVENTORY_ITEM_TYPE_ENUM, INVENTORY_ITEM_UNIT_ENUM, TRACKING_MODE_ENUM } from '../../constants';
|
|
2
2
|
import { IGeneralPrice, IIngredient } from './common';
|
|
3
3
|
export interface IWarehouseItem {
|
|
4
4
|
_id: string;
|
|
@@ -22,6 +22,12 @@ export interface IWarehouseItem {
|
|
|
22
22
|
ingredients?: IIngredient[] | null;
|
|
23
23
|
keywords: string[];
|
|
24
24
|
image_url: string | null;
|
|
25
|
+
tracking_mode: TRACKING_MODE_ENUM;
|
|
26
|
+
expiry_tracked?: boolean;
|
|
27
|
+
expiration_days?: number;
|
|
28
|
+
best_before_days?: number;
|
|
29
|
+
removal_days?: number;
|
|
30
|
+
alert_days?: number;
|
|
25
31
|
createdAt: Date;
|
|
26
32
|
updatedAt: Date;
|
|
27
33
|
}
|