@managesome/eposmatic-toolkit 0.2.536 → 0.2.538

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.
@@ -1,4 +1,4 @@
1
- import { IWarehouseSaleOrderItem, IWarehouseItem } from '../../schemas';
1
+ import { IWarehouseItem, IWarehouseSaleOrderItem } from '../../schemas';
2
2
  interface IConvertWarehouseItemToSaleOrderItemParams {
3
3
  clientId: string;
4
4
  item: IWarehouseItem;
@@ -7,7 +7,7 @@ exports.convertWarehouseItemToSaleOrderItem = convertWarehouseItemToSaleOrderIte
7
7
  exports.getCurrentWarehouseSaleOrderItemTotalPrice = getCurrentWarehouseSaleOrderItemTotalPrice;
8
8
  const bson_objectid_1 = __importDefault(require("bson-objectid"));
9
9
  function convertWarehouseItemToSaleOrderItem({ clientId, item, orderItem, }) {
10
- const { _id = (0, bson_objectid_1.default)().toHexString(), price = item.purchase_price?.[clientId] ?? item.purchase_price?.BASE_PRICE ?? 0, quantity = 1, special_instructions = '', is_ready, } = orderItem ?? {};
10
+ const { _id = (0, bson_objectid_1.default)().toHexString(), price = item.selling_price?.[clientId] ?? item.selling_price?.BASE_PRICE ?? 0, quantity = 1, special_instructions = '', is_ready, } = orderItem ?? {};
11
11
  const saleOrderItem = {
12
12
  _id,
13
13
  item_id: item._id,
@@ -116,7 +116,6 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
116
116
  alert_email_addresses: string[];
117
117
  alert_when: string[];
118
118
  auto_accept_order_for_platforms: PLATFORMS_ENUM[];
119
- kds_status_flow_platforms: PLATFORMS_ENUM[];
120
119
  custom_payment_types: string[];
121
120
  expense_payment_types: string[];
122
121
  reservation_enabled: boolean;
@@ -164,6 +163,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
164
163
  sms_processing_account_id?: string | null | undefined;
165
164
  email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
166
165
  email_processing_account_id?: string | null | undefined;
166
+ kds_status_flow_platforms?: PLATFORMS_ENUM[] | null | undefined;
167
167
  im_custom_payment_types?: string[] | null | undefined;
168
168
  po_custom_payment_types?: string[] | null | undefined;
169
169
  ms_clarity_id?: string | null | undefined;
@@ -297,7 +297,6 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
297
297
  alert_email_addresses: string[];
298
298
  alert_when: string[];
299
299
  auto_accept_order_for_platforms: PLATFORMS_ENUM[];
300
- kds_status_flow_platforms: PLATFORMS_ENUM[];
301
300
  custom_payment_types: string[];
302
301
  expense_payment_types: string[];
303
302
  reservation_enabled: boolean;
@@ -345,6 +344,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
345
344
  sms_processing_account_id?: string | null | undefined;
346
345
  email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
347
346
  email_processing_account_id?: string | null | undefined;
347
+ kds_status_flow_platforms?: PLATFORMS_ENUM[] | null | undefined;
348
348
  im_custom_payment_types?: string[] | null | undefined;
349
349
  po_custom_payment_types?: string[] | null | undefined;
350
350
  ms_clarity_id?: string | null | undefined;
@@ -478,7 +478,6 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
478
478
  alert_email_addresses: string[];
479
479
  alert_when: string[];
480
480
  auto_accept_order_for_platforms: PLATFORMS_ENUM[];
481
- kds_status_flow_platforms: PLATFORMS_ENUM[];
482
481
  custom_payment_types: string[];
483
482
  expense_payment_types: string[];
484
483
  reservation_enabled: boolean;
@@ -526,6 +525,7 @@ export declare const TenantSchema: Schema<any, import("mongoose").Model<any, any
526
525
  sms_processing_account_id?: string | null | undefined;
527
526
  email_processing_provider?: import("../../constants").EMAIL_PROCESSING_PROVIDERS_ENUM.NONE | null | undefined;
528
527
  email_processing_account_id?: string | null | undefined;
528
+ kds_status_flow_platforms?: PLATFORMS_ENUM[] | null | undefined;
529
529
  im_custom_payment_types?: string[] | null | undefined;
530
530
  po_custom_payment_types?: string[] | null | undefined;
531
531
  ms_clarity_id?: string | null | undefined;
@@ -585,7 +585,7 @@ exports.TenantSchema = new mongoose_1.Schema({
585
585
  },
586
586
  kds_status_flow_platforms: {
587
587
  type: [items_1.PlatformsSchema],
588
- default: [],
588
+ required: false,
589
589
  },
590
590
  custom_payment_types: {
591
591
  type: [String],
@@ -132,7 +132,7 @@ export interface ITenant {
132
132
  alert_email_addresses: string[];
133
133
  alert_when: ALERT_NOTIFICATIONS_TYPE_ENUM[];
134
134
  auto_accept_order_for_platforms: PLATFORMS_ENUM[];
135
- kds_status_flow_platforms: PLATFORMS_ENUM[];
135
+ kds_status_flow_platforms?: PLATFORMS_ENUM[] | null;
136
136
  custom_payment_types: string[];
137
137
  expense_payment_types: string[];
138
138
  im_custom_payment_types?: string[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.536",
3
+ "version": "0.2.538",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",