@managesome/eposmatic-toolkit 0.2.578 → 0.2.580

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.
@@ -127,10 +127,10 @@ function getOfferRewardItem(item) {
127
127
  ...item,
128
128
  ...(item.item_special_hours != null
129
129
  ? {
130
- item_special_hours: {
131
- ...item.item_special_hours,
130
+ item_special_hours: item.item_special_hours.map((specialHour) => ({
131
+ ...specialHour,
132
132
  discount_amount: null,
133
- },
133
+ })),
134
134
  }
135
135
  : {}),
136
136
  discount_amount: null,
@@ -42,3 +42,11 @@ export declare const TenantCashDrawerSchema: Schema<any, import("mongoose").Mode
42
42
  __v: number;
43
43
  }>;
44
44
  export declare const TENANT_CASH_DRAWERS_COLLECTION_NAME = "tenant_cash_drawers";
45
+ export declare const TENANT_CASH_DRAWERS_COLLECTION_INDEXES: {
46
+ _id: {
47
+ _id: number;
48
+ };
49
+ tenant_id: {
50
+ tenant_id: number;
51
+ };
52
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TENANT_CASH_DRAWERS_COLLECTION_NAME = exports.TenantCashDrawerSchema = void 0;
3
+ exports.TENANT_CASH_DRAWERS_COLLECTION_INDEXES = exports.TENANT_CASH_DRAWERS_COLLECTION_NAME = exports.TenantCashDrawerSchema = void 0;
4
4
  const mongoose_1 = require("mongoose");
5
5
  exports.TenantCashDrawerSchema = new mongoose_1.Schema({
6
6
  _id: {
@@ -44,3 +44,9 @@ exports.TenantCashDrawerSchema = new mongoose_1.Schema({
44
44
  minimize: false,
45
45
  });
46
46
  exports.TENANT_CASH_DRAWERS_COLLECTION_NAME = 'tenant_cash_drawers';
47
+ exports.TENANT_CASH_DRAWERS_COLLECTION_INDEXES = {
48
+ _id: { _id: 1 }, // Unique Index
49
+ tenant_id: {
50
+ tenant_id: 1,
51
+ }, // compound index
52
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managesome/eposmatic-toolkit",
3
- "version": "0.2.578",
3
+ "version": "0.2.580",
4
4
  "description": "A Toolkit Library for Eposmatic",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",