@managesome/eposmatic-toolkit 0.2.430 → 0.2.432
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 +3 -285
- package/lib/constants/ENUMS.js +7 -387
- package/lib/constants/PURCHASE_ORDER.d.ts +5 -3
- package/lib/constants/PURCHASE_ORDER.js +58 -20
- package/lib/constants/WAREHOUSE_ANALYTICS.d.ts +41 -41
- package/lib/constants/WAREHOUSE_ANALYTICS.js +28 -28
- package/lib/constants/WAREHOUSE_ENUMS.d.ts +289 -0
- package/lib/constants/WAREHOUSE_ENUMS.js +392 -0
- package/lib/constants/WAREHOUSE_INVOICE.js +10 -10
- package/lib/constants/index.d.ts +1 -0
- package/lib/constants/index.js +1 -0
- package/lib/helpers/order/generate-purchase-order-rfq.d.ts +3 -3
- package/lib/helpers/order/generate-purchase-order-rfq.js +2 -2
- package/lib/helpers/order/generate-purchase-order.d.ts +8 -8
- package/lib/helpers/order/generate-purchase-order.js +2 -2
- package/lib/helpers/order/generate-warehouse-purchase-order-rfq.d.ts +3 -0
- package/lib/helpers/order/generate-warehouse-purchase-order-rfq.js +64 -0
- package/lib/helpers/order/generate-warehouse-purchase-order.d.ts +11 -0
- package/lib/helpers/order/generate-warehouse-purchase-order.js +196 -0
- package/lib/helpers/order/index.d.ts +2 -2
- package/lib/helpers/order/index.js +2 -2
- package/lib/helpers/store/all-purchase-orders-actions.d.ts +7 -7
- package/lib/helpers/store/all-purchase-orders-actions.js +2 -2
- package/lib/helpers/store/all-sale-orders-actions.d.ts +2 -2
- package/lib/helpers/store/all-warehouse-purchase-orders-actions.d.ts +13 -0
- package/lib/helpers/store/all-warehouse-purchase-orders-actions.js +56 -0
- package/lib/helpers/store/all-warehouse-sale-orders-actions.d.ts +2 -0
- package/lib/helpers/store/all-warehouse-sale-orders-actions.js +8 -0
- package/lib/helpers/store/common-purchase-order-actions.d.ts +15 -15
- package/lib/helpers/store/common-sale-order-actions.d.ts +5 -5
- package/lib/helpers/store/common-warehouse-purchase-order-actions.d.ts +31 -0
- package/lib/helpers/store/common-warehouse-purchase-order-actions.js +545 -0
- package/lib/helpers/store/common-warehouse-sale-order-actions.d.ts +5 -0
- package/lib/helpers/store/common-warehouse-sale-order-actions.js +65 -0
- package/lib/helpers/store/index.d.ts +6 -6
- package/lib/helpers/store/index.js +6 -6
- package/lib/helpers/store/purchase-order-rfq-cart-actions.d.ts +11 -11
- package/lib/helpers/store/purchase-order-rfq-cart-actions.js +3 -3
- package/lib/helpers/store/purchase-orders-cart-actions.d.ts +18 -18
- package/lib/helpers/store/purchase-orders-cart-actions.js +1 -1
- package/lib/helpers/store/warehouse-purchase-order-rfq-cart-actions.d.ts +19 -0
- package/lib/helpers/store/warehouse-purchase-order-rfq-cart-actions.js +373 -0
- package/lib/helpers/store/warehouse-purchase-orders-cart-actions.d.ts +57 -0
- package/lib/helpers/store/warehouse-purchase-orders-cart-actions.js +486 -0
- package/lib/helpers/types/index.d.ts +1 -1
- package/lib/helpers/types/index.js +1 -1
- package/lib/helpers/types/purchase-order-cart-actions.d.ts +2 -2
- package/lib/helpers/types/warehouse-purchase-order-cart-actions.d.ts +26 -0
- package/lib/helpers/types/warehouse-purchase-order-cart-actions.js +2 -0
- package/lib/helpers/types/workers.d.ts +18 -18
- package/lib/helpers/utils/index.d.ts +8 -8
- package/lib/helpers/utils/index.js +8 -11
- package/lib/helpers/utils/inventory.js +6 -0
- package/lib/helpers/utils/invoice-x-report-helpers.d.ts +2 -2
- package/lib/helpers/utils/invoice-x-report-helpers.js +14 -14
- package/lib/helpers/utils/purchase-order-engine.d.ts +4 -4
- package/lib/helpers/utils/purchase-order-receipt-engine.d.ts +5 -5
- package/lib/helpers/utils/purchase-order-receipt-engine.js +2 -2
- package/lib/helpers/utils/purchase-order-x-report-helpers.js +2 -2
- package/lib/helpers/utils/sale-x-report-helpers.js +2 -2
- package/lib/helpers/utils/void-purchase-order-items-helpers.d.ts +3 -3
- package/lib/helpers/utils/void-purchase-order-items-report-helpers.d.ts +2 -2
- package/lib/helpers/utils/void-warehouse-invoice-items-helpers.d.ts +3 -3
- package/lib/helpers/utils/void-warehouse-invoice-items-helpers.js +2 -2
- package/lib/helpers/utils/void-warehouse-invoice-items-report-helpers.d.ts +5 -5
- package/lib/helpers/utils/warehouse-catalog-conversion.d.ts +3 -3
- package/lib/helpers/utils/warehouse-catalog-conversion.js +9 -7
- package/lib/helpers/utils/warehouse-inventory.js +9 -0
- package/lib/helpers/utils/warehouse-invoice-order-engine.js +1 -1
- package/lib/helpers/utils/warehouse-invoice-x-report-helpers.d.ts +58 -0
- package/lib/helpers/utils/warehouse-invoice-x-report-helpers.js +1432 -0
- package/lib/helpers/utils/warehouse-purchase-order-engine.d.ts +9 -0
- package/lib/helpers/utils/warehouse-purchase-order-engine.js +34 -0
- package/lib/helpers/utils/warehouse-purchase-order-receipt-engine.d.ts +149 -0
- package/lib/helpers/utils/warehouse-purchase-order-receipt-engine.js +214 -0
- package/lib/helpers/utils/warehouse-purchase-order-x-report-helpers.d.ts +58 -0
- package/lib/helpers/utils/warehouse-purchase-order-x-report-helpers.js +1440 -0
- package/lib/helpers/utils/warehouse-sale-order-x-report-helpers.d.ts +30 -0
- package/lib/helpers/utils/warehouse-sale-order-x-report-helpers.js +2 -0
- package/lib/helpers/utils/warehouse-sale-x-report-helpers.d.ts +58 -0
- package/lib/helpers/utils/warehouse-sale-x-report-helpers.js +1456 -0
- package/lib/helpers/utils/warehouse-void-purchase-order-items-helpers.d.ts +3 -0
- package/lib/helpers/utils/warehouse-void-purchase-order-items-helpers.js +38 -0
- package/lib/helpers/utils/warehouse-void-purchase-order-items-report-helpers.d.ts +13 -0
- package/lib/helpers/utils/warehouse-void-purchase-order-items-report-helpers.js +22 -0
- package/lib/schemas/models/gift_cards.d.ts +108 -108
- package/lib/schemas/models/halfhalf_setup.d.ts +3 -3
- package/lib/schemas/models/index.d.ts +7 -7
- package/lib/schemas/models/index.js +7 -7
- package/lib/schemas/models/internal_invoices.d.ts +6 -6
- package/lib/schemas/models/inventory_lot_serial_numbers.d.ts +6 -6
- package/lib/schemas/models/inventory_transactions.d.ts +3 -3
- package/lib/schemas/models/item_transactions.d.ts +6 -6
- package/lib/schemas/models/offers.d.ts +146 -146
- package/lib/schemas/models/orders.d.ts +2573 -2573
- package/lib/schemas/models/printer_settings.d.ts +12 -12
- package/lib/schemas/models/reservations.d.ts +6 -6
- package/lib/schemas/models/rewards_usage.d.ts +6 -6
- package/lib/schemas/models/riders.d.ts +3 -3
- package/lib/schemas/models/tenants.d.ts +135 -135
- package/lib/schemas/models/void_order_items.d.ts +15 -15
- package/lib/schemas/models/void_warehouse_invoice_items.d.ts +25 -25
- package/lib/schemas/models/void_warehouse_invoice_items.js +2 -2
- package/lib/schemas/models/vouchers.d.ts +9 -9
- package/lib/schemas/models/warehouse-activity-logs.d.ts +13 -13
- package/lib/schemas/models/warehouse-activity-logs.js +4 -4
- package/lib/schemas/models/warehouse_categories.d.ts +4 -4
- package/lib/schemas/models/warehouse_categories.js +2 -2
- package/lib/schemas/models/warehouse_communications.d.ts +21 -21
- package/lib/schemas/models/warehouse_internal_movements.d.ts +33 -33
- package/lib/schemas/models/warehouse_internal_movements.js +8 -8
- package/lib/schemas/models/warehouse_inventory_lot_serial_numbers.d.ts +154 -0
- package/lib/schemas/models/warehouse_inventory_lot_serial_numbers.js +193 -0
- package/lib/schemas/models/warehouse_inventory_transactions.d.ts +6 -6
- package/lib/schemas/models/warehouse_invoices.d.ts +351 -351
- package/lib/schemas/models/warehouse_item_transactions.d.ts +9 -9
- package/lib/schemas/models/warehouse_items.d.ts +13 -13
- package/lib/schemas/models/warehouse_items.js +2 -2
- package/lib/schemas/models/warehouse_operational_roles.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_order_receipts.d.ts +165 -0
- package/lib/schemas/models/warehouse_purchase_order_receipts.js +151 -0
- package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +1959 -0
- package/lib/schemas/models/warehouse_purchase_order_rfqs.js +328 -0
- package/lib/schemas/models/warehouse_purchase_order_vendor_returns.d.ts +234 -0
- package/lib/schemas/models/warehouse_purchase_order_vendor_returns.js +188 -0
- package/lib/schemas/models/warehouse_purchase_orders.d.ts +2678 -0
- package/lib/schemas/models/warehouse_purchase_orders.js +336 -0
- package/lib/schemas/models/warehouse_sale_deliveries.d.ts +15 -15
- package/lib/schemas/models/warehouse_sale_deliveries.js +7 -4
- package/lib/schemas/models/warehouse_sale_invoices.d.ts +30 -30
- package/lib/schemas/models/warehouse_sale_invoices.js +8 -5
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +362 -362
- package/lib/schemas/models/warehouse_sale_order_rfqs.js +5 -5
- package/lib/schemas/models/warehouse_sale_orders.d.ts +367 -367
- package/lib/schemas/models/warehouse_sale_orders.js +5 -5
- package/lib/schemas/models/warehouse_void_invoice_items.d.ts +176 -0
- package/lib/schemas/models/warehouse_void_invoice_items.js +176 -0
- package/lib/schemas/models/warehouse_void_purchase_order_items.d.ts +176 -0
- package/lib/schemas/models/warehouse_void_purchase_order_items.js +177 -0
- package/lib/schemas/models/warehouses.d.ts +52 -52
- package/lib/schemas/models/warehouses.js +2 -2
- package/lib/schemas/types/index.d.ts +9 -9
- package/lib/schemas/types/index.js +9 -9
- package/lib/schemas/types/inventories.d.ts +2 -0
- package/lib/schemas/types/inventory_lot_serial_numbers.d.ts +5 -5
- package/lib/schemas/types/warehouse-activity-logs.d.ts +7 -7
- package/lib/schemas/types/warehouse_categories.d.ts +2 -2
- package/lib/schemas/types/warehouse_internal_movements.d.ts +9 -9
- package/lib/schemas/types/warehouse_inventory_lot_serial_numbers.d.ts +85 -0
- package/lib/schemas/types/warehouse_inventory_lot_serial_numbers.js +4 -0
- package/lib/schemas/types/warehouse_items.d.ts +5 -2
- package/lib/schemas/types/warehouse_purchase_order_common.d.ts +39 -0
- package/lib/schemas/types/warehouse_purchase_order_common.js +2 -0
- package/lib/schemas/types/warehouse_purchase_order_receipts.d.ts +39 -0
- package/lib/schemas/types/warehouse_purchase_order_receipts.js +21 -0
- package/lib/schemas/types/warehouse_purchase_order_rfqs.d.ts +33 -0
- package/lib/schemas/types/warehouse_purchase_order_rfqs.js +2 -0
- package/lib/schemas/types/warehouse_purchase_order_vendor_returns.d.ts +48 -0
- package/lib/schemas/types/warehouse_purchase_order_vendor_returns.js +2 -0
- package/lib/schemas/types/warehouse_purchase_orders.d.ts +33 -0
- package/lib/schemas/types/warehouse_purchase_orders.js +2 -0
- package/lib/schemas/types/warehouse_sale_deliveries.d.ts +29 -29
- package/lib/schemas/types/warehouse_sale_invoices.d.ts +17 -17
- package/lib/schemas/types/warehouse_sale_order_common.d.ts +39 -0
- package/lib/schemas/types/warehouse_sale_order_common.js +2 -0
- package/lib/schemas/types/warehouse_sale_order_rfqs.d.ts +7 -7
- package/lib/schemas/types/warehouse_sale_orders.d.ts +7 -7
- package/lib/schemas/types/warehouse_void_invoice_items.d.ts +37 -0
- package/lib/schemas/types/warehouse_void_invoice_items.js +2 -0
- package/lib/schemas/types/warehouse_void_purchase_order_items.d.ts +37 -0
- package/lib/schemas/types/warehouse_void_purchase_order_items.js +2 -0
- package/lib/schemas/types/warehouses.d.ts +2 -2
- package/package.json +1 -1
|
@@ -17,27 +17,27 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
17
17
|
updatedAt: NativeDate;
|
|
18
18
|
description: string;
|
|
19
19
|
order_number: number;
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
warehouse_id: string;
|
|
21
|
+
client_name: string;
|
|
22
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
22
23
|
subtotal: number;
|
|
24
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
23
25
|
void_reason: string;
|
|
24
|
-
|
|
26
|
+
quantity: number;
|
|
25
27
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
26
28
|
void_type: import("../../constants").VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM;
|
|
27
29
|
iteration: number;
|
|
28
30
|
total_adjusted_quantity: number;
|
|
29
31
|
total_adjusted_subtotal: number;
|
|
30
32
|
order_punched_at: NativeDate;
|
|
31
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
32
|
-
client_name: string;
|
|
33
33
|
adjustments?: import("mongoose").Types.DocumentArray<{
|
|
34
34
|
_id: import("mongoose").Types.ObjectId;
|
|
35
35
|
order_id: import("mongoose").Types.ObjectId;
|
|
36
36
|
staff_id: string;
|
|
37
37
|
staff_name: string;
|
|
38
38
|
order_number: number;
|
|
39
|
-
quantity: number;
|
|
40
39
|
subtotal: number;
|
|
40
|
+
quantity: number;
|
|
41
41
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
42
42
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
43
43
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -45,8 +45,8 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
45
45
|
staff_id: string;
|
|
46
46
|
staff_name: string;
|
|
47
47
|
order_number: number;
|
|
48
|
-
quantity: number;
|
|
49
48
|
subtotal: number;
|
|
49
|
+
quantity: number;
|
|
50
50
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
51
51
|
}> & {
|
|
52
52
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -54,8 +54,8 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
54
54
|
staff_id: string;
|
|
55
55
|
staff_name: string;
|
|
56
56
|
order_number: number;
|
|
57
|
-
quantity: number;
|
|
58
57
|
subtotal: number;
|
|
58
|
+
quantity: number;
|
|
59
59
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
60
60
|
}> | null | undefined;
|
|
61
61
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -72,27 +72,27 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
72
72
|
updatedAt: NativeDate;
|
|
73
73
|
description: string;
|
|
74
74
|
order_number: number;
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
warehouse_id: string;
|
|
76
|
+
client_name: string;
|
|
77
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
77
78
|
subtotal: number;
|
|
79
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
78
80
|
void_reason: string;
|
|
79
|
-
|
|
81
|
+
quantity: number;
|
|
80
82
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
81
83
|
void_type: import("../../constants").VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM;
|
|
82
84
|
iteration: number;
|
|
83
85
|
total_adjusted_quantity: number;
|
|
84
86
|
total_adjusted_subtotal: number;
|
|
85
87
|
order_punched_at: NativeDate;
|
|
86
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
87
|
-
client_name: string;
|
|
88
88
|
adjustments?: import("mongoose").Types.DocumentArray<{
|
|
89
89
|
_id: import("mongoose").Types.ObjectId;
|
|
90
90
|
order_id: import("mongoose").Types.ObjectId;
|
|
91
91
|
staff_id: string;
|
|
92
92
|
staff_name: string;
|
|
93
93
|
order_number: number;
|
|
94
|
-
quantity: number;
|
|
95
94
|
subtotal: number;
|
|
95
|
+
quantity: number;
|
|
96
96
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
97
97
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
98
98
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -100,8 +100,8 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
100
100
|
staff_id: string;
|
|
101
101
|
staff_name: string;
|
|
102
102
|
order_number: number;
|
|
103
|
-
quantity: number;
|
|
104
103
|
subtotal: number;
|
|
104
|
+
quantity: number;
|
|
105
105
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
106
106
|
}> & {
|
|
107
107
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -109,8 +109,8 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
109
109
|
staff_id: string;
|
|
110
110
|
staff_name: string;
|
|
111
111
|
order_number: number;
|
|
112
|
-
quantity: number;
|
|
113
112
|
subtotal: number;
|
|
113
|
+
quantity: number;
|
|
114
114
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
115
115
|
}> | null | undefined;
|
|
116
116
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -127,27 +127,27 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
127
127
|
updatedAt: NativeDate;
|
|
128
128
|
description: string;
|
|
129
129
|
order_number: number;
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
warehouse_id: string;
|
|
131
|
+
client_name: string;
|
|
132
|
+
client_id: import("mongoose").Types.ObjectId;
|
|
132
133
|
subtotal: number;
|
|
134
|
+
item_id: import("mongoose").Types.ObjectId;
|
|
133
135
|
void_reason: string;
|
|
134
|
-
|
|
136
|
+
quantity: number;
|
|
135
137
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
136
138
|
void_type: import("../../constants").VOID_WAREHOUSE_INVOICE_ITEM_TYPE_ENUM;
|
|
137
139
|
iteration: number;
|
|
138
140
|
total_adjusted_quantity: number;
|
|
139
141
|
total_adjusted_subtotal: number;
|
|
140
142
|
order_punched_at: NativeDate;
|
|
141
|
-
client_id: import("mongoose").Types.ObjectId;
|
|
142
|
-
client_name: string;
|
|
143
143
|
adjustments?: import("mongoose").Types.DocumentArray<{
|
|
144
144
|
_id: import("mongoose").Types.ObjectId;
|
|
145
145
|
order_id: import("mongoose").Types.ObjectId;
|
|
146
146
|
staff_id: string;
|
|
147
147
|
staff_name: string;
|
|
148
148
|
order_number: number;
|
|
149
|
-
quantity: number;
|
|
150
149
|
subtotal: number;
|
|
150
|
+
quantity: number;
|
|
151
151
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
152
152
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
153
153
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -155,8 +155,8 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
155
155
|
staff_id: string;
|
|
156
156
|
staff_name: string;
|
|
157
157
|
order_number: number;
|
|
158
|
-
quantity: number;
|
|
159
158
|
subtotal: number;
|
|
159
|
+
quantity: number;
|
|
160
160
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
161
161
|
}> & {
|
|
162
162
|
_id: import("mongoose").Types.ObjectId;
|
|
@@ -164,8 +164,8 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
164
164
|
staff_id: string;
|
|
165
165
|
staff_name: string;
|
|
166
166
|
order_number: number;
|
|
167
|
-
quantity: number;
|
|
168
167
|
subtotal: number;
|
|
168
|
+
quantity: number;
|
|
169
169
|
order_item_id: import("mongoose").Types.ObjectId;
|
|
170
170
|
}> | null | undefined;
|
|
171
171
|
}> & Required<{
|
|
@@ -173,4 +173,4 @@ export declare const VoidWarehouseInvoiceItemSchema: Schema<any, import("mongoos
|
|
|
173
173
|
}> & {
|
|
174
174
|
__v: number;
|
|
175
175
|
}>;
|
|
176
|
-
export declare const
|
|
176
|
+
export declare const WAREHOUSE_VOID_INVOICE_ITEMS_COLLECTION_NAME = "void_warehouse_invoice_items";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.WAREHOUSE_VOID_INVOICE_ITEMS_COLLECTION_NAME = exports.VoidWarehouseInvoiceItemSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const warehouse_clients_1 = require("./warehouse_clients");
|
|
@@ -173,4 +173,4 @@ exports.VoidWarehouseInvoiceItemSchema = new mongoose_1.Schema({
|
|
|
173
173
|
versionKey: false,
|
|
174
174
|
minimize: false,
|
|
175
175
|
});
|
|
176
|
-
exports.
|
|
176
|
+
exports.WAREHOUSE_VOID_INVOICE_ITEMS_COLLECTION_NAME = 'void_warehouse_invoice_items';
|
|
@@ -16,14 +16,14 @@ export declare const VouchersSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
16
16
|
brand_id: string;
|
|
17
17
|
active: boolean;
|
|
18
18
|
code: string;
|
|
19
|
+
is_public: boolean;
|
|
19
20
|
used_count: number;
|
|
20
21
|
assigned_count: number;
|
|
21
|
-
|
|
22
|
-
max_uses?: number | null | undefined;
|
|
22
|
+
max_assignments_per_customer?: number | null | undefined;
|
|
23
23
|
max_uses_per_customer?: number | null | undefined;
|
|
24
24
|
last_used_at?: NativeDate | null | undefined;
|
|
25
|
+
max_uses?: number | null | undefined;
|
|
25
26
|
max_assignments?: number | null | undefined;
|
|
26
|
-
max_assignments_per_customer?: number | null | undefined;
|
|
27
27
|
last_assigned_at?: NativeDate | null | undefined;
|
|
28
28
|
expire_at?: NativeDate | null | undefined;
|
|
29
29
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
@@ -39,14 +39,14 @@ export declare const VouchersSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
39
39
|
brand_id: string;
|
|
40
40
|
active: boolean;
|
|
41
41
|
code: string;
|
|
42
|
+
is_public: boolean;
|
|
42
43
|
used_count: number;
|
|
43
44
|
assigned_count: number;
|
|
44
|
-
|
|
45
|
-
max_uses?: number | null | undefined;
|
|
45
|
+
max_assignments_per_customer?: number | null | undefined;
|
|
46
46
|
max_uses_per_customer?: number | null | undefined;
|
|
47
47
|
last_used_at?: NativeDate | null | undefined;
|
|
48
|
+
max_uses?: number | null | undefined;
|
|
48
49
|
max_assignments?: number | null | undefined;
|
|
49
|
-
max_assignments_per_customer?: number | null | undefined;
|
|
50
50
|
last_assigned_at?: NativeDate | null | undefined;
|
|
51
51
|
expire_at?: NativeDate | null | undefined;
|
|
52
52
|
}>> & import("mongoose").FlatRecord<{
|
|
@@ -62,14 +62,14 @@ export declare const VouchersSchema: Schema<any, import("mongoose").Model<any, a
|
|
|
62
62
|
brand_id: string;
|
|
63
63
|
active: boolean;
|
|
64
64
|
code: string;
|
|
65
|
+
is_public: boolean;
|
|
65
66
|
used_count: number;
|
|
66
67
|
assigned_count: number;
|
|
67
|
-
|
|
68
|
-
max_uses?: number | null | undefined;
|
|
68
|
+
max_assignments_per_customer?: number | null | undefined;
|
|
69
69
|
max_uses_per_customer?: number | null | undefined;
|
|
70
70
|
last_used_at?: NativeDate | null | undefined;
|
|
71
|
+
max_uses?: number | null | undefined;
|
|
71
72
|
max_assignments?: number | null | undefined;
|
|
72
|
-
max_assignments_per_customer?: number | null | undefined;
|
|
73
73
|
last_assigned_at?: NativeDate | null | undefined;
|
|
74
74
|
expire_at?: NativeDate | null | undefined;
|
|
75
75
|
}> & Required<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'mongoose';
|
|
2
|
-
import {
|
|
2
|
+
import { WAREHOUSE_TActivityLogAction, WAREHOUSE_TActivityLogEntityType, WAREHOUSE_TActivityLogSeverity } from '../../constants';
|
|
3
3
|
import { WAREHOUSE_ACTIVITY_LOGS_COLLECTION_NAME } from '../types/warehouse-activity-logs';
|
|
4
4
|
export declare const WarehouseActivityLogSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
5
5
|
timestamps: true;
|
|
@@ -12,12 +12,12 @@ export declare const WarehouseActivityLogSchema: Schema<any, import("mongoose").
|
|
|
12
12
|
_id: import("mongoose").Types.ObjectId;
|
|
13
13
|
createdAt: NativeDate;
|
|
14
14
|
updatedAt: NativeDate;
|
|
15
|
+
title: string;
|
|
15
16
|
warehouse_id: string;
|
|
16
|
-
entity_type:
|
|
17
|
+
entity_type: WAREHOUSE_TActivityLogEntityType;
|
|
17
18
|
entity_id: string;
|
|
18
|
-
action:
|
|
19
|
-
|
|
20
|
-
severity: TActivityLogSeverity;
|
|
19
|
+
action: WAREHOUSE_TActivityLogAction;
|
|
20
|
+
severity: WAREHOUSE_TActivityLogSeverity;
|
|
21
21
|
changes: import("mongoose").Types.DocumentArray<{
|
|
22
22
|
field: string;
|
|
23
23
|
old_value?: any;
|
|
@@ -50,12 +50,12 @@ export declare const WarehouseActivityLogSchema: Schema<any, import("mongoose").
|
|
|
50
50
|
_id: import("mongoose").Types.ObjectId;
|
|
51
51
|
createdAt: NativeDate;
|
|
52
52
|
updatedAt: NativeDate;
|
|
53
|
+
title: string;
|
|
53
54
|
warehouse_id: string;
|
|
54
|
-
entity_type:
|
|
55
|
+
entity_type: WAREHOUSE_TActivityLogEntityType;
|
|
55
56
|
entity_id: string;
|
|
56
|
-
action:
|
|
57
|
-
|
|
58
|
-
severity: TActivityLogSeverity;
|
|
57
|
+
action: WAREHOUSE_TActivityLogAction;
|
|
58
|
+
severity: WAREHOUSE_TActivityLogSeverity;
|
|
59
59
|
changes: import("mongoose").Types.DocumentArray<{
|
|
60
60
|
field: string;
|
|
61
61
|
old_value?: any;
|
|
@@ -88,12 +88,12 @@ export declare const WarehouseActivityLogSchema: Schema<any, import("mongoose").
|
|
|
88
88
|
_id: import("mongoose").Types.ObjectId;
|
|
89
89
|
createdAt: NativeDate;
|
|
90
90
|
updatedAt: NativeDate;
|
|
91
|
+
title: string;
|
|
91
92
|
warehouse_id: string;
|
|
92
|
-
entity_type:
|
|
93
|
+
entity_type: WAREHOUSE_TActivityLogEntityType;
|
|
93
94
|
entity_id: string;
|
|
94
|
-
action:
|
|
95
|
-
|
|
96
|
-
severity: TActivityLogSeverity;
|
|
95
|
+
action: WAREHOUSE_TActivityLogAction;
|
|
96
|
+
severity: WAREHOUSE_TActivityLogSeverity;
|
|
97
97
|
changes: import("mongoose").Types.DocumentArray<{
|
|
98
98
|
field: string;
|
|
99
99
|
old_value?: any;
|
|
@@ -78,7 +78,7 @@ exports.WarehouseActivityLogSchema = new mongoose_1.Schema({
|
|
|
78
78
|
},
|
|
79
79
|
entity_type: {
|
|
80
80
|
type: String,
|
|
81
|
-
enum: Object.values(constants_1.
|
|
81
|
+
enum: Object.values(constants_1.WAREHOUSE_TActivityLogEntityType),
|
|
82
82
|
required: true,
|
|
83
83
|
},
|
|
84
84
|
entity_id: {
|
|
@@ -93,7 +93,7 @@ exports.WarehouseActivityLogSchema = new mongoose_1.Schema({
|
|
|
93
93
|
},
|
|
94
94
|
action: {
|
|
95
95
|
type: String,
|
|
96
|
-
enum: Object.values(constants_1.
|
|
96
|
+
enum: Object.values(constants_1.WAREHOUSE_TActivityLogAction),
|
|
97
97
|
required: true,
|
|
98
98
|
},
|
|
99
99
|
title: {
|
|
@@ -107,9 +107,9 @@ exports.WarehouseActivityLogSchema = new mongoose_1.Schema({
|
|
|
107
107
|
},
|
|
108
108
|
severity: {
|
|
109
109
|
type: String,
|
|
110
|
-
enum: Object.values(constants_1.
|
|
110
|
+
enum: Object.values(constants_1.WAREHOUSE_TActivityLogSeverity),
|
|
111
111
|
required: true,
|
|
112
|
-
default: constants_1.
|
|
112
|
+
default: constants_1.WAREHOUSE_TActivityLogSeverity.INFO,
|
|
113
113
|
},
|
|
114
114
|
actor: {
|
|
115
115
|
type: WarehouseActivityLogActorSchema,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema, Types } from 'mongoose';
|
|
2
|
-
import {
|
|
2
|
+
import { WAREHOUSE_REMOVAL_STRATEGY_ENUM } from '../../constants';
|
|
3
3
|
export declare const WarehouseCategorySchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
4
4
|
timestamps: true;
|
|
5
5
|
versionKey: false;
|
|
@@ -19,7 +19,7 @@ export declare const WarehouseCategorySchema: Schema<any, import("mongoose").Mod
|
|
|
19
19
|
sort_id: number;
|
|
20
20
|
ref_id: Types.ObjectId;
|
|
21
21
|
warehouse_id: string;
|
|
22
|
-
category_removal_strategy:
|
|
22
|
+
category_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
23
23
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
24
24
|
createdAt: NativeDate;
|
|
25
25
|
updatedAt: NativeDate;
|
|
@@ -35,7 +35,7 @@ export declare const WarehouseCategorySchema: Schema<any, import("mongoose").Mod
|
|
|
35
35
|
sort_id: number;
|
|
36
36
|
ref_id: Types.ObjectId;
|
|
37
37
|
warehouse_id: string;
|
|
38
|
-
category_removal_strategy:
|
|
38
|
+
category_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
39
39
|
}>> & import("mongoose").FlatRecord<{
|
|
40
40
|
createdAt: NativeDate;
|
|
41
41
|
updatedAt: NativeDate;
|
|
@@ -51,7 +51,7 @@ export declare const WarehouseCategorySchema: Schema<any, import("mongoose").Mod
|
|
|
51
51
|
sort_id: number;
|
|
52
52
|
ref_id: Types.ObjectId;
|
|
53
53
|
warehouse_id: string;
|
|
54
|
-
category_removal_strategy:
|
|
54
|
+
category_removal_strategy: WAREHOUSE_REMOVAL_STRATEGY_ENUM;
|
|
55
55
|
}> & Required<{
|
|
56
56
|
_id: Types.ObjectId;
|
|
57
57
|
}> & {
|
|
@@ -45,8 +45,8 @@ exports.WarehouseCategorySchema = new mongoose_1.Schema({
|
|
|
45
45
|
},
|
|
46
46
|
category_removal_strategy: {
|
|
47
47
|
type: String,
|
|
48
|
-
enum: constants_1.
|
|
49
|
-
default: constants_1.
|
|
48
|
+
enum: constants_1.ALL_WAREHOUSE_REMOVAL_STRATEGY_TYPES,
|
|
49
|
+
default: constants_1.WAREHOUSE_REMOVAL_STRATEGY_ENUM.NONE,
|
|
50
50
|
},
|
|
51
51
|
sort_id: {
|
|
52
52
|
type: Number,
|
|
@@ -12,17 +12,17 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
12
12
|
createdAt: NativeDate;
|
|
13
13
|
updatedAt: NativeDate;
|
|
14
14
|
description: string;
|
|
15
|
+
to: string;
|
|
15
16
|
warehouse_id: string;
|
|
16
17
|
document_kind: import("../../constants").EMAIL_DOCUMENT_KIND_ENUM;
|
|
17
18
|
document_id: string;
|
|
18
19
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
19
|
-
to: string;
|
|
20
20
|
subject: string;
|
|
21
21
|
metadata: {
|
|
22
22
|
grand_total: number;
|
|
23
|
+
currency_symbol: string;
|
|
23
24
|
subtotal: number;
|
|
24
25
|
support_email: string;
|
|
25
|
-
currency_symbol: string;
|
|
26
26
|
warehouse_name: string;
|
|
27
27
|
warehouse_logo_url: string;
|
|
28
28
|
counterparty_name: string;
|
|
@@ -31,20 +31,20 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
31
31
|
line_items: import("mongoose").Types.DocumentArray<{
|
|
32
32
|
name: string;
|
|
33
33
|
price: number;
|
|
34
|
-
quantity: number;
|
|
35
34
|
subtotal: number;
|
|
35
|
+
quantity: number;
|
|
36
36
|
currency_symbol?: string | null | undefined;
|
|
37
37
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
38
38
|
name: string;
|
|
39
39
|
price: number;
|
|
40
|
-
quantity: number;
|
|
41
40
|
subtotal: number;
|
|
41
|
+
quantity: number;
|
|
42
42
|
currency_symbol?: string | null | undefined;
|
|
43
43
|
}> & {
|
|
44
44
|
name: string;
|
|
45
45
|
price: number;
|
|
46
|
-
quantity: number;
|
|
47
46
|
subtotal: number;
|
|
47
|
+
quantity: number;
|
|
48
48
|
currency_symbol?: string | null | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
action_buttons: import("mongoose").Types.DocumentArray<{
|
|
@@ -68,11 +68,11 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
68
68
|
}>;
|
|
69
69
|
reference_number?: string | null | undefined;
|
|
70
70
|
order_number?: number | null | undefined;
|
|
71
|
-
|
|
71
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
72
72
|
gst?: number | null | undefined;
|
|
73
73
|
gst_amount?: number | null | undefined;
|
|
74
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
75
74
|
expected_deadline?: string | null | undefined;
|
|
75
|
+
notes?: string | null | undefined;
|
|
76
76
|
payment_terms_days?: number | null | undefined;
|
|
77
77
|
};
|
|
78
78
|
sent_at?: NativeDate | null | undefined;
|
|
@@ -84,17 +84,17 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
84
84
|
createdAt: NativeDate;
|
|
85
85
|
updatedAt: NativeDate;
|
|
86
86
|
description: string;
|
|
87
|
+
to: string;
|
|
87
88
|
warehouse_id: string;
|
|
88
89
|
document_kind: import("../../constants").EMAIL_DOCUMENT_KIND_ENUM;
|
|
89
90
|
document_id: string;
|
|
90
91
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
91
|
-
to: string;
|
|
92
92
|
subject: string;
|
|
93
93
|
metadata: {
|
|
94
94
|
grand_total: number;
|
|
95
|
+
currency_symbol: string;
|
|
95
96
|
subtotal: number;
|
|
96
97
|
support_email: string;
|
|
97
|
-
currency_symbol: string;
|
|
98
98
|
warehouse_name: string;
|
|
99
99
|
warehouse_logo_url: string;
|
|
100
100
|
counterparty_name: string;
|
|
@@ -103,20 +103,20 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
103
103
|
line_items: import("mongoose").Types.DocumentArray<{
|
|
104
104
|
name: string;
|
|
105
105
|
price: number;
|
|
106
|
-
quantity: number;
|
|
107
106
|
subtotal: number;
|
|
107
|
+
quantity: number;
|
|
108
108
|
currency_symbol?: string | null | undefined;
|
|
109
109
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
110
110
|
name: string;
|
|
111
111
|
price: number;
|
|
112
|
-
quantity: number;
|
|
113
112
|
subtotal: number;
|
|
113
|
+
quantity: number;
|
|
114
114
|
currency_symbol?: string | null | undefined;
|
|
115
115
|
}> & {
|
|
116
116
|
name: string;
|
|
117
117
|
price: number;
|
|
118
|
-
quantity: number;
|
|
119
118
|
subtotal: number;
|
|
119
|
+
quantity: number;
|
|
120
120
|
currency_symbol?: string | null | undefined;
|
|
121
121
|
}>;
|
|
122
122
|
action_buttons: import("mongoose").Types.DocumentArray<{
|
|
@@ -140,11 +140,11 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
140
140
|
}>;
|
|
141
141
|
reference_number?: string | null | undefined;
|
|
142
142
|
order_number?: number | null | undefined;
|
|
143
|
-
|
|
143
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
144
144
|
gst?: number | null | undefined;
|
|
145
145
|
gst_amount?: number | null | undefined;
|
|
146
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
147
146
|
expected_deadline?: string | null | undefined;
|
|
147
|
+
notes?: string | null | undefined;
|
|
148
148
|
payment_terms_days?: number | null | undefined;
|
|
149
149
|
};
|
|
150
150
|
sent_at?: NativeDate | null | undefined;
|
|
@@ -156,17 +156,17 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
156
156
|
createdAt: NativeDate;
|
|
157
157
|
updatedAt: NativeDate;
|
|
158
158
|
description: string;
|
|
159
|
+
to: string;
|
|
159
160
|
warehouse_id: string;
|
|
160
161
|
document_kind: import("../../constants").EMAIL_DOCUMENT_KIND_ENUM;
|
|
161
162
|
document_id: string;
|
|
162
163
|
communication_channel: COMMUNICATION_CHANNEL_ENUM;
|
|
163
|
-
to: string;
|
|
164
164
|
subject: string;
|
|
165
165
|
metadata: {
|
|
166
166
|
grand_total: number;
|
|
167
|
+
currency_symbol: string;
|
|
167
168
|
subtotal: number;
|
|
168
169
|
support_email: string;
|
|
169
|
-
currency_symbol: string;
|
|
170
170
|
warehouse_name: string;
|
|
171
171
|
warehouse_logo_url: string;
|
|
172
172
|
counterparty_name: string;
|
|
@@ -175,20 +175,20 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
175
175
|
line_items: import("mongoose").Types.DocumentArray<{
|
|
176
176
|
name: string;
|
|
177
177
|
price: number;
|
|
178
|
-
quantity: number;
|
|
179
178
|
subtotal: number;
|
|
179
|
+
quantity: number;
|
|
180
180
|
currency_symbol?: string | null | undefined;
|
|
181
181
|
}, import("mongoose").Types.Subdocument<import("mongoose").Types.ObjectId, any, {
|
|
182
182
|
name: string;
|
|
183
183
|
price: number;
|
|
184
|
-
quantity: number;
|
|
185
184
|
subtotal: number;
|
|
185
|
+
quantity: number;
|
|
186
186
|
currency_symbol?: string | null | undefined;
|
|
187
187
|
}> & {
|
|
188
188
|
name: string;
|
|
189
189
|
price: number;
|
|
190
|
-
quantity: number;
|
|
191
190
|
subtotal: number;
|
|
191
|
+
quantity: number;
|
|
192
192
|
currency_symbol?: string | null | undefined;
|
|
193
193
|
}>;
|
|
194
194
|
action_buttons: import("mongoose").Types.DocumentArray<{
|
|
@@ -212,11 +212,11 @@ export declare const WarehouseCommunicationsSchema: Schema<any, import("mongoose
|
|
|
212
212
|
}>;
|
|
213
213
|
reference_number?: string | null | undefined;
|
|
214
214
|
order_number?: number | null | undefined;
|
|
215
|
-
|
|
215
|
+
is_gst_inclusive?: boolean | null | undefined;
|
|
216
216
|
gst?: number | null | undefined;
|
|
217
217
|
gst_amount?: number | null | undefined;
|
|
218
|
-
is_gst_inclusive?: boolean | null | undefined;
|
|
219
218
|
expected_deadline?: string | null | undefined;
|
|
219
|
+
notes?: string | null | undefined;
|
|
220
220
|
payment_terms_days?: number | null | undefined;
|
|
221
221
|
};
|
|
222
222
|
sent_at?: NativeDate | null | undefined;
|