@managesome/eposmatic-toolkit 0.2.480 → 0.2.481

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.
@@ -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: string;
185
+ expected_deadline?: string | null;
186
186
  payment_terms_days?: number | null;
187
187
  counterparty_name: string;
188
188
  counterparty_email: string;
@@ -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 common_models_1 = require("./common-models");
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: [common_models_1.IncludedCategoriesSchema],
72
+ type: [TenantVendorIncludedCategoriesSchema],
55
73
  default: [],
56
74
  },
57
75
  createdAt: {
@@ -95,7 +95,6 @@ const WarehouseCommunicationMetadataSchema = new mongoose_1.Schema({
95
95
  expected_deadline: {
96
96
  type: String,
97
97
  required: false,
98
- default: null,
99
98
  },
100
99
  payment_terms_days: {
101
100
  type: Number,
@@ -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;
@@ -213,7 +213,7 @@ exports.PurchaseOrderRFQSchema = new mongoose_1.Schema({
213
213
  order_number: {
214
214
  type: Number,
215
215
  min: 0,
216
- required: false,
216
+ default: null,
217
217
  },
218
218
  order_status: {
219
219
  type: String,
@@ -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;
@@ -232,7 +232,7 @@ exports.SaleOrderRFQSchema = new mongoose_1.Schema({
232
232
  },
233
233
  expected_deadline: {
234
234
  type: String,
235
- default: '',
235
+ required: false,
236
236
  },
237
237
  payment_terms: {
238
238
  type: Number,
@@ -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 common_models_1 = require("./common-models");
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: [common_models_1.IncludedCategoriesSchema],
72
+ type: [WarehouseVendorIncludedCategoriesSchema],
55
73
  default: [],
56
74
  },
57
75
  createdAt: {
@@ -1,4 +1,7 @@
1
- import { IIncludedCategory } from './courses';
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: string;
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: string;
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
- import { IIncludedCategory } from './courses';
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 {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.480",
3
+ "version": "0.2.481",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",