@managesome/eposmatic-toolkit 0.2.480 → 0.2.482
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/helpers/types/email-templates.d.ts +1 -1
- package/lib/schemas/models/app_configs.d.ts +3 -3
- package/lib/schemas/models/app_configs.js +6 -6
- package/lib/schemas/models/tenant_vendors.js +20 -2
- package/lib/schemas/models/warehouse_communications.js +0 -1
- package/lib/schemas/models/warehouse_purchase_order_rfqs.d.ts +3 -3
- package/lib/schemas/models/warehouse_purchase_order_rfqs.js +1 -1
- package/lib/schemas/models/warehouse_sale_order_rfqs.d.ts +3 -3
- package/lib/schemas/models/warehouse_sale_order_rfqs.js +1 -1
- package/lib/schemas/models/warehouse_vendors.js +20 -2
- package/lib/schemas/types/app_configs.d.ts +2 -2
- package/lib/schemas/types/tenant_vendors.d.ts +5 -1
- package/lib/schemas/types/warehouse_purchase_order_rfqs.d.ts +1 -1
- package/lib/schemas/types/warehouse_sale_order_rfqs.d.ts +1 -1
- package/lib/schemas/types/warehouse_vendors.d.ts +5 -1
- package/package.json +1 -1
|
@@ -182,7 +182,7 @@ export interface IEmailTemplateForRFQ {
|
|
|
182
182
|
warehouse_logo_url?: string | null;
|
|
183
183
|
reference_number?: string | null;
|
|
184
184
|
issued_date: string;
|
|
185
|
-
expected_deadline
|
|
185
|
+
expected_deadline?: string | null;
|
|
186
186
|
payment_terms_days?: number | null;
|
|
187
187
|
counterparty_name: string;
|
|
188
188
|
counterparty_email: string;
|
|
@@ -7,25 +7,25 @@ export declare const AppConfigSchema: Schema<any, import("mongoose").Model<any,
|
|
|
7
7
|
pos_version: string;
|
|
8
8
|
rider_app_version: string;
|
|
9
9
|
reports_app_version: string;
|
|
10
|
+
force_pos_update: boolean;
|
|
10
11
|
custom_admin_notice: string;
|
|
11
12
|
custom_pos_notice: string;
|
|
12
|
-
force_pos_update: boolean;
|
|
13
13
|
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
14
14
|
_id: string;
|
|
15
15
|
pos_version: string;
|
|
16
16
|
rider_app_version: string;
|
|
17
17
|
reports_app_version: string;
|
|
18
|
+
force_pos_update: boolean;
|
|
18
19
|
custom_admin_notice: string;
|
|
19
20
|
custom_pos_notice: string;
|
|
20
|
-
force_pos_update: boolean;
|
|
21
21
|
}>> & import("mongoose").FlatRecord<{
|
|
22
22
|
_id: string;
|
|
23
23
|
pos_version: string;
|
|
24
24
|
rider_app_version: string;
|
|
25
25
|
reports_app_version: string;
|
|
26
|
+
force_pos_update: boolean;
|
|
26
27
|
custom_admin_notice: string;
|
|
27
28
|
custom_pos_notice: string;
|
|
28
|
-
force_pos_update: boolean;
|
|
29
29
|
}> & Required<{
|
|
30
30
|
_id: string;
|
|
31
31
|
}> & {
|
|
@@ -20,17 +20,17 @@ exports.AppConfigSchema = new mongoose_1.Schema({
|
|
|
20
20
|
type: String,
|
|
21
21
|
required: true,
|
|
22
22
|
},
|
|
23
|
+
force_pos_update: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
required: true,
|
|
26
|
+
},
|
|
23
27
|
custom_admin_notice: {
|
|
24
28
|
type: String,
|
|
25
|
-
|
|
29
|
+
default: null,
|
|
26
30
|
},
|
|
27
31
|
custom_pos_notice: {
|
|
28
32
|
type: String,
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
force_pos_update: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
required: true,
|
|
33
|
+
default: null,
|
|
34
34
|
},
|
|
35
35
|
}, {
|
|
36
36
|
timestamps: false,
|
|
@@ -2,7 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.VENDORS_COLLECTION_NAME = exports.TenantVendorsSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
const
|
|
5
|
+
const TenantVendorIncludedCategoriesSchema = new mongoose_1.Schema({
|
|
6
|
+
category_id: {
|
|
7
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
+
default: null,
|
|
9
|
+
ref: 'categories',
|
|
10
|
+
},
|
|
11
|
+
excluded_items: {
|
|
12
|
+
type: [
|
|
13
|
+
{
|
|
14
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
15
|
+
ref: 'items',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
default: [],
|
|
19
|
+
},
|
|
20
|
+
}, {
|
|
21
|
+
_id: false,
|
|
22
|
+
minimize: false,
|
|
23
|
+
});
|
|
6
24
|
exports.TenantVendorsSchema = new mongoose_1.Schema({
|
|
7
25
|
_id: {
|
|
8
26
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
@@ -51,7 +69,7 @@ exports.TenantVendorsSchema = new mongoose_1.Schema({
|
|
|
51
69
|
default: '',
|
|
52
70
|
},
|
|
53
71
|
included_categories: {
|
|
54
|
-
type: [
|
|
72
|
+
type: [TenantVendorIncludedCategoriesSchema],
|
|
55
73
|
default: [],
|
|
56
74
|
},
|
|
57
75
|
createdAt: {
|
|
@@ -152,6 +152,7 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
152
152
|
}>;
|
|
153
153
|
}>;
|
|
154
154
|
price: number;
|
|
155
|
+
order_number: number;
|
|
155
156
|
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
156
157
|
amount_earned: number;
|
|
157
158
|
grand_total: number;
|
|
@@ -634,7 +635,6 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
634
635
|
staff_email?: string | null | undefined;
|
|
635
636
|
};
|
|
636
637
|
payment_terms: number;
|
|
637
|
-
order_number?: number | null | undefined;
|
|
638
638
|
cancel_reason?: string | null | undefined;
|
|
639
639
|
special_instructions?: string | null | undefined;
|
|
640
640
|
tax_number?: string | null | undefined;
|
|
@@ -801,6 +801,7 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
801
801
|
}>;
|
|
802
802
|
}>;
|
|
803
803
|
price: number;
|
|
804
|
+
order_number: number;
|
|
804
805
|
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
805
806
|
amount_earned: number;
|
|
806
807
|
grand_total: number;
|
|
@@ -1283,7 +1284,6 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1283
1284
|
staff_email?: string | null | undefined;
|
|
1284
1285
|
};
|
|
1285
1286
|
payment_terms: number;
|
|
1286
|
-
order_number?: number | null | undefined;
|
|
1287
1287
|
cancel_reason?: string | null | undefined;
|
|
1288
1288
|
special_instructions?: string | null | undefined;
|
|
1289
1289
|
tax_number?: string | null | undefined;
|
|
@@ -1450,6 +1450,7 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1450
1450
|
}>;
|
|
1451
1451
|
}>;
|
|
1452
1452
|
price: number;
|
|
1453
|
+
order_number: number;
|
|
1453
1454
|
order_status: WAREHOUSE_PURCHASE_ORDER_RFQ_STATUS_ENUM;
|
|
1454
1455
|
amount_earned: number;
|
|
1455
1456
|
grand_total: number;
|
|
@@ -1932,7 +1933,6 @@ export declare const PurchaseOrderRFQSchema: Schema<any, import("mongoose").Mode
|
|
|
1932
1933
|
staff_email?: string | null | undefined;
|
|
1933
1934
|
};
|
|
1934
1935
|
payment_terms: number;
|
|
1935
|
-
order_number?: number | null | undefined;
|
|
1936
1936
|
cancel_reason?: string | null | undefined;
|
|
1937
1937
|
special_instructions?: string | null | undefined;
|
|
1938
1938
|
tax_number?: string | null | undefined;
|
|
@@ -638,7 +638,6 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
638
638
|
staff_mobile: string;
|
|
639
639
|
staff_email: string;
|
|
640
640
|
};
|
|
641
|
-
expected_deadline: string;
|
|
642
641
|
payment_terms: number;
|
|
643
642
|
cancel_reason?: string | null | undefined;
|
|
644
643
|
delete_reason?: string | null | undefined;
|
|
@@ -646,6 +645,7 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
646
645
|
is_gst_inclusive?: boolean | null | undefined;
|
|
647
646
|
gst?: number | null | undefined;
|
|
648
647
|
gst_amount?: number | null | undefined;
|
|
648
|
+
expected_deadline?: string | null | undefined;
|
|
649
649
|
requested_clients?: Map<string, {
|
|
650
650
|
status: WAREHOUSE_PURCHASE_ORDER_RFQ_VENDOR_STATUS_ENUM;
|
|
651
651
|
client_id: import("mongoose").Types.ObjectId;
|
|
@@ -1287,7 +1287,6 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1287
1287
|
staff_mobile: string;
|
|
1288
1288
|
staff_email: string;
|
|
1289
1289
|
};
|
|
1290
|
-
expected_deadline: string;
|
|
1291
1290
|
payment_terms: number;
|
|
1292
1291
|
cancel_reason?: string | null | undefined;
|
|
1293
1292
|
delete_reason?: string | null | undefined;
|
|
@@ -1295,6 +1294,7 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1295
1294
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1296
1295
|
gst?: number | null | undefined;
|
|
1297
1296
|
gst_amount?: number | null | undefined;
|
|
1297
|
+
expected_deadline?: string | null | undefined;
|
|
1298
1298
|
requested_clients?: Map<string, {
|
|
1299
1299
|
status: WAREHOUSE_PURCHASE_ORDER_RFQ_VENDOR_STATUS_ENUM;
|
|
1300
1300
|
client_id: import("mongoose").Types.ObjectId;
|
|
@@ -1936,7 +1936,6 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1936
1936
|
staff_mobile: string;
|
|
1937
1937
|
staff_email: string;
|
|
1938
1938
|
};
|
|
1939
|
-
expected_deadline: string;
|
|
1940
1939
|
payment_terms: number;
|
|
1941
1940
|
cancel_reason?: string | null | undefined;
|
|
1942
1941
|
delete_reason?: string | null | undefined;
|
|
@@ -1944,6 +1943,7 @@ export declare const SaleOrderRFQSchema: Schema<any, import("mongoose").Model<an
|
|
|
1944
1943
|
is_gst_inclusive?: boolean | null | undefined;
|
|
1945
1944
|
gst?: number | null | undefined;
|
|
1946
1945
|
gst_amount?: number | null | undefined;
|
|
1946
|
+
expected_deadline?: string | null | undefined;
|
|
1947
1947
|
requested_clients?: Map<string, {
|
|
1948
1948
|
status: WAREHOUSE_PURCHASE_ORDER_RFQ_VENDOR_STATUS_ENUM;
|
|
1949
1949
|
client_id: import("mongoose").Types.ObjectId;
|
|
@@ -2,7 +2,25 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WAREHOUSE_VENDORS_COLLECTION_NAME = exports.WarehouseVendorsSchema = void 0;
|
|
4
4
|
const mongoose_1 = require("mongoose");
|
|
5
|
-
const
|
|
5
|
+
const WarehouseVendorIncludedCategoriesSchema = new mongoose_1.Schema({
|
|
6
|
+
category_id: {
|
|
7
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
8
|
+
default: null,
|
|
9
|
+
ref: 'categories',
|
|
10
|
+
},
|
|
11
|
+
excluded_items: {
|
|
12
|
+
type: [
|
|
13
|
+
{
|
|
14
|
+
type: mongoose_1.Schema.Types.ObjectId,
|
|
15
|
+
ref: 'items',
|
|
16
|
+
},
|
|
17
|
+
],
|
|
18
|
+
default: [],
|
|
19
|
+
},
|
|
20
|
+
}, {
|
|
21
|
+
_id: false,
|
|
22
|
+
minimize: false,
|
|
23
|
+
});
|
|
6
24
|
exports.WarehouseVendorsSchema = new mongoose_1.Schema({
|
|
7
25
|
_id: {
|
|
8
26
|
type: mongoose_1.Schema.Types.ObjectId,
|
|
@@ -51,7 +69,7 @@ exports.WarehouseVendorsSchema = new mongoose_1.Schema({
|
|
|
51
69
|
default: '',
|
|
52
70
|
},
|
|
53
71
|
included_categories: {
|
|
54
|
-
type: [
|
|
72
|
+
type: [WarehouseVendorIncludedCategoriesSchema],
|
|
55
73
|
default: [],
|
|
56
74
|
},
|
|
57
75
|
createdAt: {
|
|
@@ -3,7 +3,7 @@ export interface IAppConfig {
|
|
|
3
3
|
pos_version: string;
|
|
4
4
|
rider_app_version: string;
|
|
5
5
|
reports_app_version: string;
|
|
6
|
-
custom_admin_notice: string;
|
|
7
|
-
custom_pos_notice: string;
|
|
8
6
|
force_pos_update: boolean;
|
|
7
|
+
custom_admin_notice: string | null;
|
|
8
|
+
custom_pos_notice: string | null;
|
|
9
9
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface IIncludedCategory {
|
|
2
|
+
category_id: string | null;
|
|
3
|
+
excluded_items: string[];
|
|
4
|
+
}
|
|
2
5
|
export interface ITenantVendor {
|
|
3
6
|
_id: string;
|
|
4
7
|
tenant_id: string;
|
|
@@ -14,3 +17,4 @@ export interface ITenantVendor {
|
|
|
14
17
|
createdAt: Date;
|
|
15
18
|
updatedAt: Date;
|
|
16
19
|
}
|
|
20
|
+
export {};
|
|
@@ -49,7 +49,7 @@ export interface IWarehousePurchaseOrderRFQ extends IWarehousePurchaseOrderRFQIt
|
|
|
49
49
|
requested_vendors?: Record<string, IWarehouseRFQVendorEntry> | null;
|
|
50
50
|
iterations: IWarehousePurchaseOrderRFQIteration[];
|
|
51
51
|
order_number: number | null;
|
|
52
|
-
expected_deadline
|
|
52
|
+
expected_deadline?: string | null;
|
|
53
53
|
payment_terms: number;
|
|
54
54
|
delete_reason?: string | null;
|
|
55
55
|
cancel_reason?: string | null;
|
|
@@ -49,7 +49,7 @@ export interface IWarehouseSaleOrderRFQ extends IWarehouseSaleOrderRFQIteration
|
|
|
49
49
|
requested_clients?: Record<string, IWarehouseRFQClientEntry> | null;
|
|
50
50
|
iterations: IWarehouseSaleOrderRFQIteration[];
|
|
51
51
|
order_number: number | null;
|
|
52
|
-
expected_deadline
|
|
52
|
+
expected_deadline?: string | null;
|
|
53
53
|
payment_terms: number;
|
|
54
54
|
delete_reason?: string | null;
|
|
55
55
|
cancel_reason?: string | null;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
interface IIncludedCategory {
|
|
2
|
+
category_id: string | null;
|
|
3
|
+
excluded_items: string[];
|
|
4
|
+
}
|
|
2
5
|
export interface IWarehouseVendor {
|
|
3
6
|
_id: string;
|
|
4
7
|
warehouse_id: string;
|
|
@@ -14,3 +17,4 @@ export interface IWarehouseVendor {
|
|
|
14
17
|
createdAt: Date;
|
|
15
18
|
updatedAt: Date;
|
|
16
19
|
}
|
|
20
|
+
export {};
|